Repository navigation
qwen3_5 cuda: report the prompt pass size the engine uses - #4600
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/q35-cuda-pass-rows
branch
from
November 22, 2026 11:28
3569951 to
2e07fad
Compare
ashhart
added a commit
that referenced
this pull request
Nov 22, 2026
ashhart
added a commit
that referenced
this pull request
Nov 22, 2026
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
Qwen3.5 dense on CUDA reported a prompt pass size it doesn't use. Since #3582,
qwen3_5.native.prompt_rowswasE.max_rows(8192), and the family's loaded value carried noprompt_rows, so the start-up line said "prompts in passes of up to 8192 rows" andpassRulessetrules.chunk = 8192. The engine's scratch isgrid_rows(4096) unlessTF_QWEN35_CHUNK_SOLO=8192.The loaded value now carries
prompt_rowsfrom the engine's own scratch rows: 4096 by default, 8192 withTF_QWEN35_CHUNK_SOLO=8192.E.max_rowsstays wherever it bounds a real buffer (#3582's MTP and drafter buffers); no buffer changes.Every reader of the value and of
rules.chunkfor this family was traced: Qwen's cache is planned on the 4096 grid, so no prompt-cache, reserve, interior-mark, warm-pass or admission path read the old 8192. Only the start-up text and the rule's recorded chunk change. Tokens and behaviour are unchanged.Checks
passRules(...).chunksay 4096 with the switch unset and 8192 with it; another family's value is unchanged. fmt, ast-check, the 600-line cap; no pinned file changed.Still to run
The start-up line on a GB10 with Qwen3.8-27B, with and without
TF_QWEN35_CHUNK_SOLO=8192.