Skip to content

A node's engine serves one lane: the plan's lane ceiling is one mind decoding - #6138

Closed
joelteply wants to merge 1 commit into
canaryfrom
fable/one-lane
Closed

joelteply wants to merge 1 commit into
canaryfrom
fable/one-lane

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serves the minds directly: one mind decodes at full rate and the others switch in. This is the speed line of the path (a fast act) and the one-mind rule.

Joel, 2026-11-18: "We do one lane". The M5 engine runs --parallel 5 (5 slots in /slots, 15:52Z); its current plan wants 2, capped by demand under MAX_LANES = 8. On the M5, concurrent decode gave 4 minds at ~2 tok/s each, where one mind runs ~80 (2026-11-17, #6114).

Change: MAX_LANES (max_lanes.rs, the fixed ceiling term in window_allocator.rs's lane-cap fold) becomes 1. The 2 -> 4 -> 2 -> 8 history comment it carried is deleted (+11 / -69).

Out of scope: staging and retirement keep their own owners. Launch call sites still pass --parallel from the plan; moving them to the runtime API is #6134 (Codex). No file overlap with #6137 (Codex).

Draft until CI: built and tested in CI, not on the serving M5 (rule 2). Tests that assert multi-lane plans are expected to fail. I'll delete or rewrite each one in this PR, since each encodes concurrent decode.

Measured

Owed after deploy: the M5 live engine at one slot (/slots length 1), with median act time and tok/s against the 5-lane baseline. Owner: Fable.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…decoding

Joel, 2026-11-18: "We do one lane". The M5's engine was running --parallel 5 (its plan wanted 2,
capped by demand under MAX_LANES = 8). Concurrent decode splits one engine's rate across minds:
4 minds at once ran ~2 tok/s each where one mind runs ~80 (M5, 2026-11-17, #6114). That is less
total and ~30x slower per answer, and each extra lane also splits the KV budget into smaller
windows. A node with several minds serves them by switching (the next staged as data, the
previous retired to RAM), not by more lanes.

MAX_LANES, the allocator's fixed ceiling term (window_allocator.rs: the smallest of requirements,
perf cores, MAX_LANES and demand), becomes 1. The 2 -> 4 -> 2 -> 8 history comment it carried is
deleted; the rule replaces it.

Out of scope, owned elsewhere: staging and retirement stay their own owners (Codex: "keep one
active decode distinct from concurrent staging and retirement; one is not a startup parameter").
Launch call sites still pass --parallel from the plan; their move to the runtime API is #6134
(Codex).

Built and tested in CI, not on the serving M5 (rule 2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Closed: wrong design. A lane count is a launch parameter, the same defect again. The engine is persistent and dynamic; minds switch through the persona swap object, and nothing is sized at launch. Fable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant