Repository navigation
test(ENG-CHUNKED-PREFILL): the sequential-request chunk hand-off fixture and its record - #3606
Merged
Merged
Conversation
…uests ISSUE-LOCAL-01M8TBA3XW1Y284PBJTYV8PWXS (consumer-found on the kolibri-1.1 lane) reports that the chunk continuation corrupts model state across sequential requests: with chunking engaged, the 24-gate battery regresses 6/24 vs 7/24 unchunked and a standalone-exact prompt flips mid-battery. The report's root-cause class names this seam: the state hand-off was validated only on Inkling's GDN topology, and the chunk loop was suspected of skipping a per-request reset the whole-step path performs. This commit is the red-first reproduction the repair owed, and it reports the honest outcome: the defect does not reproduce at the seam. The T5 fixture (test_runner.cpp) extends the ChunkCountingModel fixture to the sequential battery shape: two 10-token prefills back-to-back on one chunked runner, request B admitted in the same step that retires A, then B's first decode. Every forward's input is recorded — token/position rows, chunk cams (query_start_loc, seq_lens, num_computed continuation markers, slot mappings, block tables), GDN state slots and has_initial_state masks, logits indices — and request B's chunked inputs are asserted to reassemble to the unchunked path's single-forward inputs for the same request, field for field. The fixture is GREEN before any repair, 66/66 assertions: the chunk loop derives every per-request artifact the whole-step path derives per step. The GDN metadata builder is constructed fresh per request-step, the chunk cams slice the step's own prepared per-group slot mappings, and the multi-cache channels (kolibri-1.1's actual topology, one KV group per KV source) ride through by shared pointer, so no per-request reset exists for the chunk loop to skip. A static audit of the consuming model agrees: the kolibri-1.1 forward holds no state across forwards, and its cache writes/reads are addressed by the same metadata both paths produce. Mutation: the F1 reachability mutation (chunk call site neutered at runner.cpp execute_model) reds the fixture (REQUIRE(chunked.size() == 5) fails, 1/7) and still reds the T2 forward-count test; the tree was restored byte-for-byte and all three focused suites (prefill_chunks 1291, prepare_inputs 61, test_runner 1993 assertions) are green on the restored head. Consequence: the battery delta (6/24 vs 7/24, one prompt flipping) does not localize to this seam's orchestration. It sits inside the ULP tie-cascade churn band the consuming lane itself adjudicated — it observed 5/24, 6/24 and 7/24 across its own builds WITHOUT this seam engaged. The chunked-vs-unchunked bitwise difference the lane measured is the MatmulBTQuant GEMM/GEMV dispatch by M, a shared-seam property, not a metadata hand-off defect. Localizing further needs the kolibri-1.1 model-local path or the shared quantized-GEMM tie seam; both are out of this row's scope, so no product change rides this commit. The spec's Tests section gains T5 recording the fixture, the green-before outcome and the escalation. FOLLOWING_AGENTS_PROTOCOL Following-Agents-Protocol: true AI-Assisted: true Assisted-by: AGENT:zai/glm-5.3-flash [task]
…k defect The T5 fixture commit references ISSUE-LOCAL-01M8TBA3XW1Y284PBJTYV8PWXS, which the consuming kolibri-1.1 lane filed in its own branched record tree; this worktree's check-agent-record refused the reference because the canonical file did not exist here yet. Import the file VERBATIM at its canonical row path so the reference validates offline and the two trees carry byte-identical authority for the issue. Open state unchanged; the consuming row owns its resolution and re-verification. FOLLOWING_AGENTS_PROTOCOL Following-Agents-Protocol: true AI-Assisted: true Assisted-by: AGENT:zai/glm-5.3-flash [task]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test(ENG-CHUNKED-PREFILL): the sequential-request chunk hand-off fixture and its record
Follow-up to the landed chunked-prefill seam (#3602): a consumer lane
(changed-request filed as ISSUE-LOCAL-01M8TBA3XW1Y284PBJTYV8PWXS,
"chunk continuation corrupts state across sequential requests")
reported state corruption in the chunk loop across back-to-back
requests. A runner-level fixture driving TWO sequential 10-token
chunked prefills on one engine - recording every forward's token
rows, chunk cams, slot mappings, block tables, state slots, and
logits indices - proves the second request's chunked inputs
reassemble FIELD-FOR-FIELD to the unchunked path's single-forward
inputs (66/66 assertions, GREEN with no repair needed). The
corruption claim is falsified by this evidence; the only
chunked-vs-unchunked bitwise difference is the MatmulBTQuant
GEMM/GEMV-by-M dispatch, which is the desired oracle-matching
behavior. The fixture stays as permanent reachability and
hand-off regression coverage for the seam; the consumer's issue
record is imported at its canonical row path so check-agent-record
resolves the reference offline.
FOLLOWING_AGENTS_PROTOCOL
Following-Agents-Protocol: true
AI-Assisted: true
Assisted-by: AGENT:zai/glm-5.3-flash [maki]