Skip to content

qwen3_5 cuda: report the prompt pass size the engine uses - #4600

Merged
ashhart merged 2 commits into
mainfrom
lead/q35-cuda-pass-rows
Nov 22, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/q35-cuda-pass-rows

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

Qwen3.5 dense on CUDA reported a prompt pass size it doesn't use. Since #3582, qwen3_5.native.prompt_rows was E.max_rows (8192), and the family's loaded value carried no prompt_rows, so the start-up line said "prompts in passes of up to 8192 rows" and passRules set rules.chunk = 8192. The engine's scratch is grid_rows (4096) unless TF_QWEN35_CHUNK_SOLO=8192.

The loaded value now carries prompt_rows from the engine's own scratch rows: 4096 by default, 8192 with TF_QWEN35_CHUNK_SOLO=8192. E.max_rows stays wherever it bounds a real buffer (#3582's MTP and drafter buffers); no buffer changes.

Every reader of the value and of rules.chunk for 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

  • Host tests: the start-up line and passRules(...).chunk say 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.

@ashhart
ashhart force-pushed the lead/q35-cuda-pass-rows branch from 3569951 to 2e07fad Compare November 22, 2026 11:28
@ashhart
ashhart merged commit eb07ee9 into main Nov 22, 2026
2 of 12 checks passed
@ashhart
ashhart deleted the lead/q35-cuda-pass-rows branch November 22, 2026 11:29
ashhart added a commit that referenced this pull request Nov 22, 2026
ashhart added a commit that referenced this pull request Nov 22, 2026
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