Repository navigation
Each mind's share is cut from the pool our fork reports, never from a capped slot window - #5722
Conversation
… capped slot window #5720 divided `/props default_generation_settings.n_ctx` by the sequences. Under --kv-unified the fork caps each slot's n_ctx at the trained window (server-context.cpp:1231-1234), so that field is not the pool: the IntelMac's 65,536 pool read 32,768 and each of 2 minds was published 16,384 (07:32Z); the M5's 346,880 pool would have published 52k instead of 69k. - The pool is our fork's `context_geometry.allocated_tokens` (llama_n_ctx), read through ONE typed `ContextGeometry` (weight_residency.rs). An engine without the fork's geometry is no reading and is not served; the "older managed engines" fallback is deleted. - The engine's geometry at ready is one `ObservedGeometry` (window, lanes, pool) on the owned target; publication, the verified capture and the academy batch charge the share of the pool. - A crash report names the engine log (the whole output, reachable) and its last line, in place of a fixed 20-line tail. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS at 07fb249 (Cormac, independent; author session 01LoTjvf…, not mine). Verified claim:
One fix to fold in, please (same file, same cap): Non-blocking, noted: on a fixed-slot engine whose slot n_ctx exceeds the trained window, the launch path publishes the raw slot window while |
…ly an equal one (Cormac on #5722) The server caps a slot's n_ctx at the trained window, below max_tokens_per_sequence whenever the pool is larger, so the equality marked every such node's footprint reading invalid. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Fold-in at 6c416dc (Cormac's note): |
|
PASS at 6c416dc (Cormac, re-check of the one-commit delta from 07fb249). Verified claim: |
Serves the minds' windows (order of work line 3b, one live engine): each mind is published her real share of the one shared pool. #5720 published a share computed from a field that is not the pool.
The defect
#5720's
sequence_sharedivided/props default_generation_settings.n_ctxby the sequences. Under--kv-unifiedour fork sets each slot'sn_ctxto the whole pool, then caps it at the model's trained window (server-context.cpp:1231-1234). So that field is not the pool:-c 65536 --parallel 2./props n_ctxreads 32,768 (trained), and each mind was published 16,384 instead of 32,768.The fix: our fork's report is the contract (Joel: "less hacks", "our own fork")
context_geometry.allocated_tokens(llama_n_ctx): the shared pool under--kv-unified, the sum of the slots without it. It is read through ONE typedContextGeometry(weight_residency.rs), the same parse the footprint reading uses. An engine without the fork's geometry is no reading and is not served: the "older managed engines" fallback (allocated = slots x n_ctx) is deleted.ObservedGeometry { context_window, lanes, pool_tokens }on the owned target. It replaces two loose fields and fixes clippy's 9-argumentrecord_verified_target. Publication (launch.rs), the verified capture (publication.rs) and the academy batch's restore charge (academy_batch.rs) all take the share of the pool.process.rswas touched, so its self-sized.take(20)stderr tail is gone. A crash report names the engine log (the whole output, reachable by path) and its last printed line.Live check (M5, 07:3xZ, b11007-6606d1aad):
/propsreportscontext_geometry {allocated_tokens: 165376, max_tokens_per_sequence: 82688, sequence_capacity: 2}on a fixed-slot engine, so the same formula holds on both kinds.Next, my follow-up (this is not an orphan; it is my next PR): delete the remaining pre-fork paths, the device-delta
EngineContextReading::AbsentandMeasuredCost.allocated_tokens: Nonerecords.Measured
cargo check --workspace --testsclean; clippy clean on every touched file; source-hygiene ratchets 83/83.the_pool_is_the_engines_allocated_tokens_never_the_capped_slot_window(the IntelMac shape: n_ctx 32,768 beside a 65,536 pool).serving/status served_context_window) with-c>= 346,880--kv-unified; the IntelMac publishes 32,768 per mind. 15-min live read: zero reloads, acts/hour >= canary.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo