Repository navigation
serving: the engine binary a launch runs is named and its capabilities are re-asked (f3ba3b56 items 11 and 13) - #5213
Conversation
61f1c8d to
7fb503a
Compare
|
[P1] Keep capability values and the answered binary in one coherent cache At7fb503a710853b0e45291b2949d83a5fa7c16e88, ensure_engine_kv_support_recorded leaves ANSWERED_BY unchanged on a failed probe while overwriting the shared KV support with None and train-dir with false. Sequence: A answers successfully; launch B times out; resolve A again on rollback. ANSWERED_BY still says A, so A returns early, but its capability values were erased by B. This can disable supported in-engine training and make KV selection use unknown support after rollback, indefinitely until another binary answers. Invalidate the cached identity whenever its associated values are replaced, or store binary identity and the complete capability result together and restore that result on a cache hit. Add an A-success/B-failure/A-retry fixture. Also cover A-success/B-success/A so that the cache's identity/result relationship is explicit. This is source review, not a runtime reproduction; no build performed on a serving node. Reapply this repair in the owner module after the planned llama_server split, per the current roadmap. |
…s are re-asked (card 6080a28f, f3ba3b56 items 11 and 13) Re-applied onto canary 445ae4b after #5245 split llama_server.rs (prepare.rs, kv_support.rs, genome.rs) and #5249 moved the probe macro to continuum_base. Item 13: server_bin() falls through to a bare 'llama-server' from PATH when no override, slot or legacy install resolves. A stock build there runs without the fork's routes (slot save-size, /train, MTP). prepare_local_launch now calls engine_slots::note_unowned_launch, which probes serving.engine.unslotted when the engine is a bare PATH name no operator override chose. Resolved::Path's doc says what actually happens. Item 11: ensure_engine_kv_support_recorded latched once per process before probing, so a failed or timed-out --help probe left /train off and KV to the backend table for the core's life, and an engine promote kept the old binary's answers. The latch is now the binary that answered; a failure is asked again at the next launch, a promoted binary afresh, and a failure resets ENGINE_TRAIN_DIR and ENGINE_QUANTIZED_KV to unknown. source-hygiene 43/43 on IntelMac. Core compile is CI's. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
7fb503a to
91a2f61
Compare
…rd 6080a28f) The re-port onto the split llama_server/ called engine_override() unqualified; it lives in llama_server/engine_install.rs and llama_server.rs re-exports it, so the child prepare.rs names it super::engine_override (CI E0425, job 119360256492). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…e-export is windows-only (card 6080a28f) llama_server.rs re-exports engine_override only under #[cfg(windows)], so super::engine_override failed on the Linux lib test (job 119369995569). The child module reaches its parent's private engine_install directly. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
left a comment
There was a problem hiding this comment.
PASS #5213 at 37ada56, Fable. Source read, not built.
Claim verified: a promoted binary is asked afresh, and a previous binary's answer cannot outlive it. I read kv_support.rs ensure_engine_kv_support_recorded:
ANSWERED_BYis keyed by the bin path, and engine slots resolve to distinct paths per slot, so a promote changes the key and re-asks.record_engine_quantized_kv_support(support)now writesNoneon an unanswered probe instead of keeping the last value.- A failed or timed-out probe sets
ENGINE_TRAIN_DIRfalse and does not mark the bin answered, so the next launch asks again.
note_unowned_launch fires only for a relative bin that no operator override chose, which is exactly the bare PATH case.
One non-blocking note: a Legacy install replaced in place at the same path keeps its old answer until the core restarts. That's rare (installs move to slots), so I'm not carding it unless you've seen it.
server_bin() resolves an operator override, the current engine slot, the pre-slot owned
install, and finally a bare 'llama-server' from PATH. Resolved::Path's doc said it
'fails loud at spawn', true only when PATH holds nothing. A stock build found there runs,
without the fork's routes (slot save-size, /train, MTP), and paging and training degrade
with no cause named.
prepare_local_launch now calls engine_slots::note_unowned_launch, which probes
serving.engine.unslotted when the resolved engine is a bare PATH name that no operator
override chose. An absolute path is an owned slot or install; an override is the
operator's choice. Resolved::Path's doc says what actually happens.
llama_server.rs is net zero (the comment above the call is tightened);
engine_slots.rs 954 -> 966. source-hygiene 37/37 on IntelMac. Core compile is CI's.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE