docs(kv): the 40000-token real-model run (job 312) and the multi-chunk publication fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-16 12:41:22 +02:00
co-authored by Claude Opus 5.5
parent 791a4fa8cb
commit 27c8ddf6b5
+13 -1
View File
@@ -65,9 +65,21 @@ pages and `page_table[block]` is the slot or -1.
`LELEKA_ORIGINAL_SERVE_MAX_CONTEXT=65536`, plus the usual model inputs. Compare the `long-smoke output ids` line
of a 20480 run with a 65536 run (no eviction): they must be identical.
* Real-model result 2026-10-16 (job 312, RTX 5090, branch `claude/long-context-fix` 791a4fa, budget 24 GiB,
capacity 2048, 40000-token prompt, greedy, 32 new tokens): both windows pass and print identical output ids
(20480 cells: 5120 pages/layer, 0.246 GiB VRAM; 65536 cells: no eviction, 0.780 GiB VRAM); 12 rounds,
~133 s per request after load. `needle_found=false` only because 32 tokens end inside the model's `<think>`
preamble (the text is already quoting the prompt's opening line); this is a correctness smoke, not a quality
or speed result.
* Jobs 310/311 had failed before that fix (`Failed(IdentityMismatch)`) at the publication of the SECOND
batched prefill chunk of any prompt longer than one chunk: `OriginalDraftSession::prepare_publication`
(`session_original_draft.rs`) checked the driver's per-chunk `first_materialized` (the chunk's start) against
`end - MTP_ORIGINAL_WINDOW`. Unrelated to KV streaming; fixed in 791a4fa with unit tests.
## Open
* The real-model long-context run and its A/B against the non-evicting window.
* A longer generation (or a no-think prompt) to read the passcode answer; parity against the Original on the
same ids.
* The freed VRAM is not yet handed to GPU expert slots (expert residency is ported separately); the prefill
chunk does not follow the Original's slot-derived ladder.
* Counters are not printed at the end of a request (the Original's `kv_stream` summary line).