Repository navigation
qwen3_5 CUDA prompts: the a and b projections share one launch from 2,048 rows (#2911) - #2925
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/q35-cuda-ab-one-launch
branch
from
November 14, 2026 03:26
81dc587 to
bd541d8
Compare
ashhart
added a commit
that referenced
this pull request
Nov 14, 2026
ashhart
force-pushed
the
lead/q35-cuda-ab-one-launch
branch
from
November 14, 2026 14:20
bd541d8 to
69d63e8
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.
Fixes #2911.
From 2,048 prompt rows, Qwen3.8-27B's DeltaNet layers launched their four input projections one by one on the 2x2 prefill tile. The 48-column a and b launches each filled only a fraction of a GB10's block slots.
qwen38PairShapeadmits only prompt passes with PDL, no int8, 2,048 rows or more, and the 27B's affine-4 group (k 5,120, widths 10,240 / 6,144 / 48 / 48). It has its own host test, including every wrong width, input count and row edge.promptManylaunch with their own output pointers. That path is already contract-tested to give each projection its own bytes. No kernel changes.tests/cuda/contract_qmm_prefill_many.zig,contract_qmm_prefill_tile22.zig) gain the two 48-column outputs at k 5,120 and 2,048 / 4,096 rows.Tests: the recording driver runs the real adapter at 2,048 and 4,096 rows (qkv and z once each, then one a/b launch) and checks every binding, argument, grid and thread count. Disabling the pair branch, or removing the int8 gate, turns a runtime comparison red. Full CUDA host 6195/6234 (39 skipped), and the arm64 Linux CUDA tests compile.
Not yet checked on a device: the two contracts on a GB10, cold 2K and 32K greedy and seeded replies byte-equal, and a GB10 2K/8K/32K A/B (expected +0.3-0.5% at 2K). It lands at +0.2% or better at 2K with nothing slower.