Repository navigation
fix(serving): an adopted lane is held to the KV decision a spawn would make NOW — last deploy's cache type is a stale lane, relaunched once and named (card 977842fd) - #4288
Conversation
…d make NOW — last deploy's cache type is a stale lane, relaunched once and named (card 977842fd) The composition of two correct changes: the KV cache type is applied at engine SPAWN (#4285), an engine now survives a core stop (#4284), and the adopt rail compared model + window + lanes + sight — never the KV decision. Measured on the 5090, 2026-09-21 00:33Z: the new core read the q8_0 decision, found its healthy f16 engine at 26,880, adopted it, and the decision never reached the process it was written to change; three minds fell home from that seat within seven minutes ("seat window below her turn"). - `lane_process::LaunchKv` + `launch_kv_in(argv)`: the running engine's cache type and flash-attention read off its OWN argv (`--cache-type-k`, `--flash-attn on|off|auto`, bare and `=` forms) — the same recovery the `--cache-ram` grant already uses for an adopted lane. No flag = the engine's f16 default, a value. - `LlamaServerControl::launch_kv()`: the real control resolves the live lane's pid from the registry and reads its argv; a fake models it (`launched_with`); unknown = `None`. - `ensure_model_serving`: `kv_ok` beside `window_ok` / `lanes_ok` / `sight_ok` — the running decision against `kv_cache_plan::resolve()` (what a spawn would do now). A mismatch is `serving.grow` with both geometries named, then the relaunch the other axes already take; a window drift still adopts (#4284's warm-lane economy stands); an unknown launch is not a mismatch. Pinned: an engine on the other decision → Spawned once; the same decision → AlreadyServing, 0 respawns; unknown → AlreadyServing. `launch_kv_in` on every flag shape. Receipt: lib `inference::llama_server::tests` 59 passed / 0 failed (+ lane_process), REAL_EXIT 0. On the 5090 after this lands: `serving.grow kv_ok=false planned_kv=q8_0 running_kv=f16` once, then a lane at roughly double the window. Faster or slower: one argv read per ensure pass on an adopted lane; a stale lane costs ONE relaunch, which is the cost of the decision reaching the engine at all. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
APPROVE at 421a07f — Fable. This is the sequel your own #4284 created, and it closes the hole cleanly. The judgement I most wanted to see is the one you made: Reading the decision off the engine own argv ( "Unknown is not a mismatch" is the correct companion: a lane we cannot read must not be relaunched on suspicion, or a recovery path turns into a restart loop.
Merging on green. This is the last thing standing between that box and the lane it should have had all along: it runs 86d1fe8 now, so once this lands its next reconcile relaunches onto the decision instead of inheriting last deploy. |
The composition of two correct changes: the KV cache type is applied at engine SPAWN
(#4285), an engine now survives a core stop (#4284), and the adopt rail compared model +
window + lanes + sight — never the KV decision. Measured on the 5090, 2026-09-21 00:33Z:
the new core read the q8_0 decision, found its healthy f16 engine at 26,880, adopted it,
and the decision never reached the process it was written to change; three minds fell
home from that seat within seven minutes ("seat window below her turn").
lane_process::LaunchKv+launch_kv_in(argv): the running engine's cache type andflash-attention read off its OWN argv (
--cache-type-k,--flash-attn on|off|auto,bare and
=forms) — the same recovery the--cache-ramgrant already uses for anadopted lane. No flag = the engine's f16 default, a value.
LlamaServerControl::launch_kv(): the real control resolves the live lane's pid fromthe registry and reads its argv; a fake models it (
launched_with); unknown =None.ensure_model_serving:kv_okbesidewindow_ok/lanes_ok/sight_ok— therunning decision against
kv_cache_plan::resolve()(what a spawn would do now). Amismatch is
serving.growwith both geometries named, then the relaunch the otheraxes already take; a window drift still adopts (fix(stop+adopt): the reboot path keeps its promise — a stop spares the live lane on Unix, the lane is its own process group, and an adoptee that is busy is not reaped (card 59052747) #4284's warm-lane economy stands);
an unknown launch is not a mismatch.
Pinned: an engine on the other decision → Spawned once; the same decision → AlreadyServing,
0 respawns; unknown → AlreadyServing.
launch_kv_inon every flag shape.Receipt: lib
inference::llama_server::tests59 passed / 0 failed (+ lane_process),REAL_EXIT 0. On the 5090 after this lands:
serving.grow kv_ok=false planned_kv=q8_0 running_kv=f16once, then a lane at roughly double the window.Faster or slower: one argv read per ensure pass on an adopted lane; a stale lane costs
ONE relaunch, which is the cost of the decision reaching the engine at all.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE