Skip to content

tests: GB10 proof for capped prompt cuts on Qwen CUDA - #4586

Merged
ashhart merged 3 commits into
mainfrom
lead/q35-chunk-cut-proof
Nov 23, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/q35-chunk-cut-proof

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

Adds the device proof that #4579 found missing: for Qwen3.5/3.8 on CUDA, the same 12K-token prompt run (a) in one pass at today's 4,096-row steps and (b) cut at 512 rows while a second stream decodes must give byte-identical final hidden state or logits and the same next 64 greedy tokens, with cuts placed across attention-layer boundaries and a partial last chunk. No default changes; if the check passes on device, capped chunks can become the default while other streams are live.

Checks

  • fmt, ast-check; host compile of the test runner.

Still to run

The cell on a GB10 (commands in the commit's report).

Add `tf-cuda-test qwen-prefill-cap MODEL IDS_FILE`. It runs a 12,000-row
prompt uncut at 4,096-row steps, capped at 512 rows alone, and capped at
512 rows with a second stream decoding between steps.

Each pass compares the last prompt row's logits, 63 decode rows and 64
greedy tokens byte for byte. Four cut layouts cover cuts inside 256-row
attention key chunks, tile-size edges and a short last piece. A control
checks that one changed prompt token changes the compared bytes.

No default changes.
@ashhart
ashhart force-pushed the lead/q35-chunk-cut-proof branch from c484e99 to 427a16a Compare November 23, 2026 21:40
@ashhart
ashhart merged commit 7bd4b68 into main Nov 23, 2026
2 of 12 checks passed
@ashhart
ashhart deleted the lead/q35-chunk-cut-proof branch November 23, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant