Repository navigation
Conversation
fd7cf70 to
8de6cba
Compare
|
@jschmied, thanks. This is a clean first step for P3: every entry is the address the kernels computed before, so the arithmetic and its order are unchanged, and the host tests pin that. A few things before it lands:
|
8de6cba to
6ea5ca8
Compare
|
@jschmied, thanks for the follow-up and the full table. Finding each segment's table without waiting for the
|
|
@ashhart thanks. The head is
Checks on
|
|
Thanks @jschmied, this is a careful answer.
One small thing for the next push: the comment at |
|
@ashhart, converted to draft; Q3 is being built on it. Two questions before the table, each with what I'll do unless you say otherwise:
Streams without pages will keep main's kernels exactly: the table-reading kernels become a second instantiation used only by paged streams, so the pages-off cells run main's SASS and should be level by construction. |
|
Thanks @jschmied. On your two questions:
For the pages-off cells, please include the SASS (or fatbin) comparison against main that shows they run main's kernels, alongside the table. And on your next push, the comment at
|
3f044af to
ce657e4
Compare
|
@ashhart thanks.
Gates on ce657e4: test/golden, cuda-host, ci set, x86 cross, pr_check (0 errors), fmt, lean 0 new; tf-cuda-test qwen-pending, qwen-pages and kernel-contract equal main plus all |
|
@jschmied, thanks; this answers everything we asked:
Since
Otherwise the plan stands: keep this as a draft, build Q3 on it, and post the main-against-pair table with the SASS comparison for the pages-off cells beside it.
|
|
@ashhart thanks.
Still a draft. The body has both. |
|
@jschmied thanks, both are answered. Zero of 114 keys differing in all 12 page-on/page-off pairs, with the seeded replies in the set and drafting, resume and concurrency covered, is the comparison we were after.
|
c4ba435 to
0a49c0a
Compare
Under TF_QWEN_KV_PAGES a lane's recurrences and tails, its verify log rows and the rollback copy are pieces on whole pages taken from its lease (cuda_state_pieces.zig over core kv_pieces): no consecutive run, so a pool with no two free pages side by side still admits a lane. The copy lies in the bytes of log rows 1.., as the Overlay does: a one-row window uses row 0 and the copy, a wider window the rows and no copy. The taps and a drafter's ring, wider than a page, are a lane's own block outside the pool, counted in its fixed part. The lane's state table is written once at open from the piece map; a closed lane's table is refused (version 0, and a lane without blocks or pieces has no entries to read), so no forward copies entries that point at the pages it gave back. Kernels are ashhart#2620's: a forward with a lane on pieces runs the _table kernels. A page must hold the largest piece (a log row or a layer's recurrence): a smaller TF_QWEN_KV_PAGES is refused at load with the smallest size that works (27B: 67 rows; 35B-A3B: 103).
|
@ashhart this PR is rebased onto main f0d8c8d, because #2939 asked for a rebase and is stacked on it. The new head is 0a49c0a; the commits and messages are unchanged. Gates rerun on 0a49c0a:
The body names the new head. Main has moved again since the rebase: on 000b534 the pipeline-stage commits (4dd870b to 799ae94) touch |
|
Thanks @jschmied for rebasing the pair and rerunning every gate on 0a49c0a, including the SASS comparison and the conformance kit. We compared it with c4ba435, and all twelve commits carry the same changes, so our earlier review stands and the code needs nothing new. On another rebase: yes, one more is needed before the pair can land, because both heads now conflict with main's pipeline-stage commits in
GitHub ran no CI on 0a49c0a, because it doesn't start pull request jobs while a branch conflicts with main. The rebased head will get its first run. This stays a draft and lands with #2939 in one train.
|
0a49c0a to
74140af
Compare
Under TF_QWEN_KV_PAGES a lane's recurrences and tails, its verify log rows and the rollback copy are pieces on whole pages taken from its lease (cuda_state_pieces.zig over core kv_pieces): no consecutive run, so a pool with no two free pages side by side still admits a lane. The copy lies in the bytes of log rows 1.., as the Overlay does: a one-row window uses row 0 and the copy, a wider window the rows and no copy. The taps and a drafter's ring, wider than a page, are a lane's own block outside the pool, counted in its fixed part. The lane's state table is written once at open from the piece map; a closed lane's table is refused (version 0, and a lane without blocks or pieces has no entries to read), so no forward copies entries that point at the pages it gave back. Kernels are ashhart#2620's: a forward with a lane on pieces runs the _table kernels. A page must hold the largest piece (a log row or a layer's recurrence): a smaller TF_QWEN_KV_PAGES is refused at load with the smallest size that works (27B: 67 rows; 35B-A3B: 103).
|
Thanks @jschmied for rebasing the pair onto
CI is green on Next is a run on our GB10, main
|
…te table's readers are _table copies
Main's gdn_pre, conv_commit, gdn_chain, gdn_slots_{1,2,4,8,16}, k_apply, k_apply_pend and k_conv keep main's
code and read Seg's blocks again. Each is built a second time as name_table, reading the stream's state table:
the kernel's source is included twice (qwen35_gdn.cuh, qwen35_slots.cuh, qwen35_keep_state.cuh) with
TF_Q35_TABLE 0 and 1, and #if TF_Q35_TABLE picks the table reads, so the TF_Q35_TABLE 0 pass is main's text
token for token and main's names compile to main's SASS on sm_80, 86, 89, 120 and 121 (a template parameter
did not: nvcc reordered the address math on sm_80-89).
Only a forward with a pool lane among its parts (TF_QWEN_KV_PAGES, Cache.on_table) runs the _table kernels
(Shape.table, its own captured graphs); every other forward builds main's Seg and launches main's kernels, and
its keep, pending rows and prompt delta read the stream's blocks as on main. The _table kernels' contract rows
carry the numbers the table readers had under main's names; main's rows are main's again.
…tate table A cache holds its state table beside its blocks since the first commit (one more device allocation and its bytes in streamBytes), and Cache.seg can fail; the nightly host steps test-qwen35-shared-host and test-qwen35-recurrent's 27B checks now expect both.
…ive SMs The other ten _table launches carry a 13.2 row in measurements/qwen_lanes_132.zig; apply_pend_table had none, so kernel-contract-limits found no 13.2 record for it. Measured with nvcc 13.2.86 on this head's fatbins.
…_table on pieces against main's on blocks qwen-table runs each _table kernel on a state split into one allocation a layer's region and a log row, two segments, and compares its outputs and both streams' state with main's kernel on the blocks; a planted table entry (layer 1's tail or recurrence naming layer 0's, or the kept log row naming another row) in segment 1 must change them.
…a_round.zig (cuda_engine.zig 600 lines) main moved deltaScan to cuda_forward.zig itself; the table switch joins it there. stateEntries moves beside the state table's offsets, and admit (main's, unchanged) beside the round's limits it checks, so cuda_engine.zig stays under 600 lines.
…from the records after the slot-scan fix
A plain part of a mixed forward can have no rollback copy: its table entry is zero. Forming the offset before the undo check was a pointer offset on null. The entry is loaded early, the offset is formed only where the undo runs, and the undo tests the entry as well.
Under TF_QWEN_KV_PAGES a lane's recurrences and tails, its verify log rows and the rollback copy are pieces on whole pages taken from its lease (cuda_state_pieces.zig over core kv_pieces): no consecutive run, so a pool with no two free pages side by side still admits a lane. The copy lies in the bytes of log rows 1.., as the Overlay does: a one-row window uses row 0 and the copy, a wider window the rows and no copy. The taps and a drafter's ring, wider than a page, are a lane's own block outside the pool, counted in its fixed part. The lane's state table is written once at open from the piece map; a closed lane's table is refused (version 0, and a lane without blocks or pieces has no entries to read), so no forward copies entries that point at the pages it gave back. Kernels are ashhart#2620's: a forward with a lane on pieces runs the _table kernels. A page must hold the largest piece (a log row or a layer's recurrence): a smaller TF_QWEN_KV_PAGES is refused at load with the smallest size that works (27B: 67 rows; 35B-A3B: 103). TF_QWEN_KV_HOST (main's host capacity mode, one stream) keeps the KV pages in mapped host memory and the state on the device: its pieces lie on a device block of a lane's state pages (Pages.run_dev, ids 0..), mapped by the same piece map, and the pool holds KV pages only, as on main.
Under TF_QWEN_KV_PAGES a lane's recurrences and tails, its verify log rows and the rollback copy are pieces on whole pages taken from its lease (cuda_state_pieces.zig over core kv_pieces): no consecutive run, so a pool with no two free pages side by side still admits a lane. The copy lies in the bytes of log rows 1.., as the Overlay does: a one-row window uses row 0 and the copy, a wider window the rows and no copy. The taps and a drafter's ring, wider than a page, are a lane's own block outside the pool, counted in its fixed part. The lane's state table is written once at open from the piece map; a closed lane's table is refused (version 0, and a lane without blocks or pieces has no entries to read), so no forward copies entries that point at the pages it gave back. Kernels are ashhart#2620's: a forward with a lane on pieces runs the _table kernels. A page must hold the largest piece (a log row or a layer's recurrence): a smaller TF_QWEN_KV_PAGES is refused at load with the smallest size that works (27B: 67 rows; 35B-A3B: 103). TF_QWEN_KV_HOST (main's host capacity mode, one stream) keeps the KV pages in mapped host memory and the state on the device: its pieces lie on a device block of a lane's state pages (Pages.run_dev, ids 0..), mapped by the same piece map, and the pool holds KV pages only, as on main.
Under TF_QWEN_KV_PAGES a lane's recurrences and tails, its verify log rows and the rollback copy are pieces on whole pages taken from its lease (cuda_state_pieces.zig over core kv_pieces): no consecutive run, so a pool with no two free pages side by side still admits a lane. The copy lies in the bytes of log rows 1.., as the Overlay does: a one-row window uses row 0 and the copy, a wider window the rows and no copy. The taps and a drafter's ring, wider than a page, are a lane's own block outside the pool, counted in its fixed part. The lane's state table is written once at open from the piece map; a closed lane's table is refused (version 0, and a lane without blocks or pieces has no entries to read), so no forward copies entries that point at the pages it gave back. Kernels are ashhart#2620's: a forward with a lane on pieces runs the _table kernels. A page must hold the largest piece (a log row or a layer's recurrence): a smaller TF_QWEN_KV_PAGES is refused at load with the smallest size that works (27B: 67 rows; 35B-A3B: 103). TF_QWEN_KV_HOST (main's host capacity mode, one stream) keeps the KV pages in mapped host memory and the state on the device: its pieces lie on a device block of a lane's state pages (Pages.run_dev, ids 0..), mapped by the same piece map, and the pool holds KV pages only, as on main.
3899d00 to
bcc3bb7
Compare
Under TF_QWEN_KV_PAGES a lane's recurrences and tails, its verify log rows and the rollback copy are pieces on whole pages taken from its lease (cuda_state_pieces.zig over core kv_pieces): no consecutive run, so a pool with no two free pages side by side still admits a lane. The copy lies in the bytes of log rows 1.., as the Overlay does: a one-row window uses row 0 and the copy, a wider window the rows and no copy. The taps and a drafter's ring, wider than a page, are a lane's own block outside the pool, counted in its fixed part. The lane's state table is written once at open from the piece map; a closed lane's table is refused (version 0, and a lane without blocks or pieces has no entries to read), so no forward copies entries that point at the pages it gave back. Kernels are ashhart#2620's: a forward with a lane on pieces runs the _table kernels. A page must hold the largest piece (a log row or a layer's recurrence): a smaller TF_QWEN_KV_PAGES is refused at load with the smallest size that works (27B: 67 rows; 35B-A3B: 103). TF_QWEN_KV_HOST (main's host capacity mode, one stream) keeps the KV pages in mapped host memory and the state on the device: its pieces lie on a device block of a lane's state pages (Pages.run_dev, ids 0..), mapped by the same piece map, and the pool holds KV pages only, as on main.
|
@ashhart this PR is now at bcc3bb7, still on main 6af9f19. Since 3899d00:
Gates on bcc3bb7:
Speed (in the body, shared with #2939): the fix did not clear the slower cell. These are 3 rounds, not 5:
Next I'd try the full 3 + 5 run of the three 256 cells, then nsys on that c=4 cell. Don't land yet. The body names the new head. |
|
Thanks for the slot-scan fix and for keeping the SASS-equality discipline (the The state: the source is done and the open item is one speed cell that the fix did not clear. On The speed picture (3 rounds, not 5): 11 of the 12 cells within noise or faster, the 35B-A3B at 256 and c=4 +0.55% faster, and one cell slower - the 27B without a drafter at One design point the review confirms as sound: pages off (the default) runs main's kernels and main's SASS, and only a forward with a pool lane among its parts runs the Main-state check: main's GDN kernels assume one contiguous block a stream and compute addresses from it; the per-stream state table ( Status: waiting on the 3+5 rerun and the nsys cause for the 27B c=4 cell (and the 35B cells shared with #2939), then re-review. "Don't land yet" is the right verdict and the review holds it. The conflicts with main are ours; do not rebase.
|
…nputs, not before each recorded store
|
Status on the 27B-without-drafter cell at
So this stays at "don't land yet". I'll come back with the kernel fix, a control that covers it, and the rerun. |
|
Thank you — the rerun and the nsys trace name the cause: the table builds' own launch cost, about 1.2 µs on the slot scan and 0.4 µs on the pre kernel, over every layer. The row-log load you tried brings the cell to 0.061% but it is still slower and its control does not fire yet, so that fix is not ready to take. The one item left is yours: land the kernel fix with a control that covers that path, and we will rerun the cell. The code review is otherwise complete — the table design, the SASS equality with pages off and the conformance results all stand.
|
…n blocks, a log row entry planted
…qwen-table launch's snapshot of them
…s, seven blocks an SM over the cold table entries
… 128-thread bound
… SMs, after the bound and the log-entry load
|
This PR is now at The control:
The kernel fix:
Gates (GPU on
The cell (27B, no drafter, 256, c=4; 3 A-vs-A + 5 A-B-B-A; tokens equal): The body names the new head and has the details. |
|
Thanks, @jschmied. The fix and the control landed the way the review asked: the register-pressure fix on the one- and two-slot table scans with the bench gap closed, the control extended to the slot scans so the row-log plant goes red, the SASS and contract gates equal to main, and the limits current. The cell reading within noise by the rule, with the per-round residual disclosed rather than smoothed over, is the honest report — the bench gain did not fully carry into the served cell and you say so. The pair rerun with #2939 is the confirmation run; we will review both together when it lands. The code review on this PR is complete.
|
What this changes
The first kernel step of #2444 P3 for Qwen 3.5/3.6 on CUDA (Q1 in the P3 plan). Main's GDN kernels assume one
contiguous block a stream and compute their addresses from it: a layer's recurrence at
sg.rec + layer * rec(), itsconv tail at
sg.conv + layer * conv_rows(), the one-row rollback copy's tail pastnlrecurrences, and a windowrow's record at
(row * nl + layer) * log_bytes. This branch adds a per-stream table of those addresses(
cuda_states.zigStates: nl recurrences, nl tails, nl + nl copies, 64 log rows; 2 KiB on the 27B, 1.4 KiB on the35B-A3B) and a second build of each of those kernels,
name_table, that takes every address from the table. That iswhat lets P3 put the state on separate pool pages (Q3) without touching a kernel again.
gdn_pre,conv_commit,gdn_chain,gdn_slots_{1,2,4,8,16},k_apply,k_apply_pendandk_convare main's code, compiled to main's SASS on all five SMs (table below). Only aforward with a pool lane among its parts (
TF_QWEN_KV_PAGES,Cache.on_table) runs the_tablekernels(
Shape.table, its own captured graphs); every other forward builds main'sSegand launches main's kernels, and itskeep, pending rows and prompt delta read the stream's blocks as on main.
qwen35_gdn.cuh,qwen35_slots.cuh,qwen35_keep_state.cuh), withTF_Q35_TABLE0 and 1;#if TF_Q35_TABLEpicks the table reads (1 to 4 lines akernel) and
TF_Q35_K(name)names the kernel. TheTF_Q35_TABLE 0pass is main's text token for token, so the mainnames compile to main's SASS. A
template <bool TABLE>body was tried first and is not used: on sm_80, 86 and 89nvcc reordered the address math of main's instantiation (same instruction count and registers, different order) in
gdn_chain, the slot scans,k_applyandk_apply_pend.lane's
mapRun, the dense 27B's adaptive scratch leases). The forward kernels find segment s's table in theengine's tables buffer after its staged planes (
cuda_round.zigstates_at,qwen35.cuhforward_states), copieddevice to device only when the stream at that position or its blocks change, so a captured forward needs no
recapture and the entry load issues beside the
Segload. Keep launches, which take theirSegby value, read thestream's own table.
TF_QWEN_KEEP_LATEpending buffer (Seg.plog) stays a direct pointer (P3 Q5).Cost: pages off (the default) is main's SASS, see the table. Under
TF_QWEN_KV_PAGESthe_tablekernels run;the speed table below names the cells that came out slower than main.
pr_checkwarns that no Unreleased bullet names this PR.Proposed CHANGELOG line (for you to place):
Rebase onto main 6af9f19 (3899d00)
From 6587e14 (main 328a566), through main d6a5ae2, each conflict fitted into the commit that brought the line,
taking main's code where main moved:
gdn_pre'sqwen_pdl::enter()sits in the shared source(
qwen35_gdn.cuh), so main's kernel and its_tablecopy both take it;cuda_forward.ziglaunchesgdn_pre(_table)and
gdn_postthroughrunPdlas main does, andtools/pdl_early_loads.pylistsconv_commit_tableandgdn_chain_tableas plain launches beside main's two.Engine's doc comments into trailing ones to stay at 600 lines;prompt_statesandforward_fromfollow that style.finishallocates the tables beside main's newtfq3errdefer.dense_serving_test.zig):qwen35.cunow pins this PR's bytes with main's all-rows BF16 attentionargument (4f28cca);
qwen35.cuh,qwen35_keep.cuand the launch sequence pin the same bytes as before.cuda_engine.zigstays at 600 lines or under.Main has moved again: 33e7164 conflicts with this head in
dense_serving_test.zig,qwen35.cu,cuda_engine.zig,cuda_engine_tail.zig,cuda_forward.zigandtests/cuda/contract_after.zig. I haven't rebased onto it: the pair lands in one train,so say when you want it and I'll fold it in.
Since 3899d00 (head bcc3bb7)
qwen35_slots.cuh): the_tablescan loads the rollback copy's tableentry beside the recurrence's, at the top of the kernel, instead of after the state's loads and the pending rows.
Only the
_tableslot scans change;slots_1_tablegoes from 80 to 94 registers on sm_120/121.and on the table path the guard also tests the entry. A plain part of a mixed forward can have no rollback copy,
which the table holds as zero, and adding an offset to that null pointer was undefined even with the store skipped.
_tablerows incuda_lane_pending.zig(13.0) andqwen_lanes_132.zig(13.2) arethe new 5-SM fatbins' registers; nothing else in them changed.
forwardStates(bcc3bb7): compares the optional table addresses withstd.meta.eql, the same decision.Since bcc3bb7 (head 2f6d72d), new commits only
qwen35_slots.cuh): the_tableslot scan loads the nextrow's log entry together with that row's inputs, not right before each recorded store.
qwen-tablecovers the slot scans (6aa4689, 8ad9432):tf_q35_gdn_slots_{1,2}_tableon pieces againstmain's
slots_{1,2}on blocks, every recorded window whose tree fits the slots, outputs and both streams' state,log rows included. Its planted control moves the window's last log row entry. Separately, a plant of ecdb2f1's
load (every row's log entry taken from row 0) turns it red at
tf_q35_gdn_slots_1_table, a 4-row chain._tablescans (e55ddd9, 422dbdb):__launch_bounds__(128, 7)on those two
_tablekernels only (72 registers instead of 92, 7 blocks an SM instead of 5, no spills); the 4-, 8-and 16-slot
_tablescans keep their SASS, and main's kernels keep__launch_bounds__(128). In a micro bench ofthe 27B's no-drafter c=4 shape (4 one-row recorded segments, 48 layers, 64 MiB written between launches so the
table entries are cold, as they are in the model)
slots_1_tablewas +4.7 to +5.7 us a launch over main's at 92registers and -0.9 to +1.3 us at 72. With L2 warm the two were equal either way.
_tableslot-scan rows incuda_lane_pending.zig(13.0) andqwen_lanes_132.zig(13.2), from the 5-SM builds of this head. Only registers changed.dense_serving_test.zigpinsqwen35.cuh's new bytes (ecdb2f1'slog_row_at). It's ahost test only, so no kernel or binary changes; the GPU gates and the speed cell below ran on 04a18b5.
SASS against main (pages off runs main's kernels)
tools/zig/cuda_sass_compare.py 6af9f191e bcc3bb761(nvcc 13.0.88, every emitted function, sm_80/86/89/120/121).On 04a18b5 (2f6d72d changes no kernel): qwen35_kv8 60 functions equal under the same tool; qwen35 and qwen35_keep compiled from both trees with
the build's flags and compared function by function: main's 33 and 4 functions equal on all five SMs, added only the
same 8 and 3
_tablekernels.The change reaches three images: qwen35, qwen35_keep and qwen35_kv8.
_tablekernels a SM (40)_tablekernels a SM (15)added function as a difference, so qwen35 and qwen35_keep were compared in runs of their own and the verdict is
"main's functions equal, only the expected
_tablekernels added"; qwen35_kv8 runs to the tool's own SUMMARY PASS.compared-functions.tsvand the per-run logs, kept with the run.Checks on this head
On 04a18b5 (main 6af9f19; 2f6d72d adds only the host pin), clean builds (
tensorfold-nativemd5 2c2c965c,tf-cuda-testd9a1df43):qwen-pending49 lines equal main's plus 49_tablePASS;qwen-pages26 equal;kernel-contract qwen35 q35140 equal plus 11
_tablelimit lines, all PASS;qwen-table30 PASS lines, every planted control red.kernel-contract-limits(nvcc 13.0.88 and 13.2.86, 5-SM fatbins): no_tablerow stale. The 13.0 stale linesare main's own set plus
tf_moe_router_tileson sm_80 (199 registers against 182 recorded), frommoe.cu, whichthis branch doesn't touch.
--final): on 04a18b5 everything passed exceptdense_serving_test'sqwen35.cuhpin (stale since ecdb2f1); on 2f6d72d the rerun of that step is 2714/2714 steps, 29195/29375 tests (180 skipped).pr_check0 errors,zig fmt,git diff --check, lean 123 vs 123 (0 new),check-native-cuda-host compile-cuda-tests21/21.Unchanged from bcc3bb7, on bcc3bb7 (main 6af9f19), nvcc 13.0.88 (13.2.86 for the 13.2 records), one GB10 (sm_121):
-hoststep withtest-cuda-host: 814/814 steps,11656/11702 tests (46 skipped);
install compile-cuda-tests check-native-cuda-host254/254.--final, umask 022):pr_check0 errors (the CHANGELOG warning; lean 123 against 123, 0 new),zig fmt --check,git diff --check;-Dfixed-cpu test-host test test-golden test-kernel-contract test-server-security test-pull-security fuzz-cortheon check-release-paths2714/2714 steps, 28545/28723 tests(178 skipped);
check-native-cuda-host compile-cuda-tests21/21.Shape.key:tableonjoin's bit 32 turns the Rollback conformance tests #2138 key test red by name.tf-cuda-testoutcome lines:qwen-pending49 lines equal main's, plus the 49_tablecases, all PASS;qwen-pages26 equal;kernel-contract qwen35 q35140 equal plus 11_tablelimit lines,all PASS;
qwen-table25 PASS lines, every planted control red.kernel-contract-limitson 5-SM fatbins (nvcc 13.0.88 and 13.2.86): no_tablerow stale or failing. The otherstale rows (193 lines under 13.0, 1815 under 13.2) are exactly the lines main's own
tf-cuda-testgives on the samefatbins: pre-existing on main, unchanged.
Speed on 04a18b5 (= 2f6d72d's binaries): the 27B without a drafter, 256, c=4
Main 6af9f19 (md5 988048f6) against #2620 04a18b5 (md5 2c2c965c),
abba5: 3 A-vs-A rounds for the floor, then5 rounds of A,B,B,A. Tokens equal in every run.
VERDICT c4_tok_s: WITHIN NOISE (median -0.104%, floor 0.093%, B worse 4 of 5), with c=1 at 0.0 %.the head won is main's dip in round 2. In the other four the head is 0.08 to 0.16 % behind.
abba5's every-round rule. The median is where it was on bcc3bb7 (-0.102 %),and the micro bench gain from the register bound did not show up served. I report it as within noise and don't
claim the cell is fixed.
Speed: main 6af9f19 against the pair (#2620 bcc3bb7 + #2939 6517021)
tensorfold-nativeof each,zig build native -Dsm=121; one GB10, GPU clock capped, page cache dropped before eachserver,
--parallel 8 --context 16384 --prompt-cache-gib 0. c=1 is the median of 3 x 256 tokens (tok/s from the donelines), c=4 the median of 3 rounds of 4 x 256 with a distinct prompt per stream. Gap: + = the pair faster. The greedy
token shas are equal to main's in every run of every cell.
TF_QWEN_KV_PAGES=256, measured on these heads:abba5with a warm-up per arm, 1 round of main againstmain for the floor and 3 rounds of A,B,B,A. That is 3 rounds, not the 5 the earlier rows used, so these floors are
thin.
SASS-identical on all five SMs at bcc3bb7 (below on qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) #2620), and the host changes since then sit behind the table
switch, which a forward without a pool lane never takes.
Don't land yet. On the previous heads it was -0.113 % (floor 0.077 %, 5 of 5 worse). With the slot-scan fix
alone on those heads it was -0.07 % against a 0.137 % floor (5 of 5 worse), so the fix did not clear it.
5 rounds, the same cells were 0.0 % (floor 1.20 %) and +0.554 % (faster).
abba5calls them within noise becausenot every round is worse; I count them with the slower cell until a full run says otherwise.
to see whether
slots_1_tableat 94 registers still costs the +2 us a layer.model.safetensors.index.local-no-mtp-20261021.json):the local copy's
model_mtp.safetensorslink is missing, and none of these cells uses the MTP head (copies only, orDFlash2). Both arms read the same view.
Receipt
tools/conformance.py, profileqwen35-cuda), main 6af9f19 and qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) #2620 bcc3bb7, bothrun in this pass: the 27B + DFlash2, the 27B without a drafter and the 35B-A3B + MTP, each with
TF_QWEN_KV_PAGESunset, at 256 and at 256with
TF_QWEN_KV_SHARE=16:seeded sampling, refusals, evict and overlap; 116 for the 27B without one);
concurrency 1/2/4/8, drafting);
evict(its fill evicts nothing in those caches) and, for the27B without a drafter, the older copies profile's missing blocks.
13.2 rows), sm_121; one NVIDIA GB10 (128 GB unified); checkpoints Qwen3.8-27B NVFP4 (Unsloth FP8 head) with the
Qwen3.8-27B DFlash2 drafter, and Qwen3.6-35B-A3B MLX 4-bit with its MTP head.
and XPU are not reached.
Checklist