From 27c8ddf6b529bb4c724a3a499b534fea06f321c8 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 16 Oct 2026 12:41:22 +0200 Subject: [PATCH] docs(kv): the 40000-token real-model run (job 312) and the multi-chunk publication fix Co-Authored-By: Claude Opus 5.5 --- docs/kv-streaming.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/kv-streaming.md b/docs/kv-streaming.md index f999f0a6..e136729d 100644 --- a/docs/kv-streaming.md +++ b/docs/kv-streaming.md @@ -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 `` + 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).