Repository navigation
tests: GB10 proof for capped prompt cuts on Qwen CUDA - #4586
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/q35-chunk-cut-proof
branch
from
November 23, 2026 12:57
449bb6b to
c484e99
Compare
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
force-pushed
the
lead/q35-chunk-cut-proof
branch
from
November 23, 2026 21:40
c484e99 to
427a16a
Compare
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.
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
Still to run
The cell on a GB10 (commands in the commit's report).