Skip to content

qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) - #2620

Draft
jschmied wants to merge 13 commits into
ashhart:mainfrom
jschmied:qwen-state-table
Draft

jschmied wants to merge 13 commits into
ashhart:mainfrom
jschmied:qwen-state-table

Conversation

@jschmied

@jschmied jschmied commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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(), its
conv tail at sg.conv + layer * conv_rows(), the one-row rollback copy's tail past nl recurrences, and a window
row's record at (row * nl + layer) * log_bytes. This branch adds a per-stream table of those addresses
(cuda_states.zig States: nl recurrences, nl tails, nl + nl copies, 64 log rows; 2 KiB on the 27B, 1.4 KiB on the
35B-A3B) and a second build of each of those kernels, name_table, that takes every address from the table. That is
what lets P3 put the state on separate pool pages (Q3) without touching a kernel again.

  • Pages off runs main's kernels. Main's gdn_pre, conv_commit, gdn_chain, gdn_slots_{1,2,4,8,16},
    k_apply, k_apply_pend and k_conv are main's code, compiled to main's SASS on all five SMs (table below). 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.
  • Shared source, not copies. Each kernel's source is included twice (qwen35_gdn.cuh, qwen35_slots.cuh,
    qwen35_keep_state.cuh), with TF_Q35_TABLE 0 and 1; #if TF_Q35_TABLE picks the table reads (1 to 4 lines a
    kernel) and TF_Q35_K(name) names the kernel. The TF_Q35_TABLE 0 pass is main's text token for token, so the main
    names compile to main's SASS. A template <bool TABLE> body was tried first and is not used: on sm_80, 86 and 89
    nvcc reordered the address math of main's instantiation (same instruction count and registers, different order) in
    gdn_chain, the slot scans, k_apply and k_apply_pend.
  • The table is rewritten on the engine's stream only when the state, the rollback copy or the log block moved (a pool
    lane's mapRun, the dense 27B's adaptive scratch leases). The forward kernels find segment s's table in the
    engine's tables buffer after its staged planes (cuda_round.zig states_at, qwen35.cuh forward_states), copied
    device 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 Seg load. Keep launches, which take their Seg by value, read the
    stream's own table.
  • Not in this step: the TF_QWEN_KEEP_LATE pending 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_PAGES the _table kernels run;
the 256 rows on this head are in the receipt, with the cells that came out slower than main named there.

Proposed CHANGELOG line (for you to place):

Rebase onto main 328a566 (head 6587e14)

Main moved about 1,700 commits since 6c5cef8. Each conflict is fitted into the commit that brought the line, taking
main's newer code where main moved:

  • Rollback copy skip (d8d0b4e): main's tf_q35_conv_commit and the slot scans copy the one-row before only
    when sg.before != 0. The shared source in qwen35_gdn.cuh and qwen35_slots.cuh carries that guard, so the
    TF_Q35_TABLE 0 pass is still main's text, and the _table copies skip the copy the same way. stagedSeg takes the
    forward's table (null: main's Seg) and still clears before for an unkept one-row step.
  • Shape.key: main widened the key to u64 and put join on bit 32. table now takes bit 33, and slots keeps
    main's 8 bits (the 5-bit narrowing and its assert are gone). The Rollback conformance tests #2138 test varies join, table and part together.
    Planted control: table on join's bit 32 turns that test red.
  • max_rows 8192 (TF_QWEN35_CHUNK_SOLO): the per-forward state tables sit after the larger planes, so
    SEG_STATES (qwen35.cuh, asserted in cuda_round.zig, and the two GPU tests' seg_states) is 445,472, not
    232,480.
  • Join kernels (57cc613), scratch at load (23c91fa), tap ring size: both sides kept (anyShares beside
    States, e.tapRows() in the Seg); finish takes main's form without the scratch line.
  • Main's pins: dense_serving_test.zig pins qwen35.cu, qwen35.cuh, qwen35_keep.cu and the launch sequence;
    they name this PR's bytes now (the sequence differs only because gdn_pre and conv_commit pick their _table
    copy under shape.table, with the same arguments). contract_q35_launch_args_host.zig reads gdn_pre's
    past_rows check from qwen35_gdn.cuh. qwen35_live_host.zig passes shape.table to deltaScan.
  • Size: main's cuda_engine.zig is at 600 lines and already moved the "dense read cost" key test to
    cuda_engine_test.zig, so the last commit is replaced: deltaScan moves beside body in cuda_forward.zig and
    stateEntries into cuda_round.zig (engine 600 lines). The usage line for qwen-table is in main_usage.zig.
  • Limit rows: main's guard moved the register counts of tf_q35_gdn_slots_{1,2,4,8,16}_table (for example
    sm_121 80/80/88/78/94 under nvcc 13.0). Their 13.0 rows (cuda_lane_pending.zig) and 13.2 rows
    (measurements/qwen_lanes_132.zig) carry the new numbers; every other _table row is unchanged.
  • qwen-table: its _table Seg sets before as segIn does (the copy's table entry), so a one-row step keeps
    its copy under main's sg.before != 0 guard, as in the engine.

SASS against main (pages off runs main's kernels)

tools/zig/cuda_sass_compare.py 328a566e2 d819e71aa (nvcc 13.0.88, every emitted function, sm_80/86/89/120/121);
d819e71aa's kernel sources and build files equal 6587e14's (the later fixups touch only tests and limit rows). The
change reaches three images: qwen35, qwen35_keep and qwen35_kv8.

image sm_80 sm_86 sm_89 sm_120 sm_121 added
qwen35 33 / 33 equal 33 / 33 equal 33 / 33 equal 33 / 33 equal 33 / 33 equal 8 _table kernels a SM
qwen35_keep 4 / 4 equal 4 / 4 equal 4 / 4 equal 4 / 4 equal 4 / 4 equal 3 _table kernels a SM
qwen35_kv8 equal equal equal equal equal none (60 functions, SUMMARY PASS)
  • Every main function, including the ten state kernels with main's new before guard, is equal (SASS and encoding
    sha256); nothing changed, removed or unstable. The tool counts an 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
    _table kernels added"; qwen35_kv8 runs alone to the tool's own SUMMARY PASS, its planted control red as expected.
  • Receipts: compared-functions.tsv and the per-run logs, kept with the run.

Checks on this head

On 6587e14 (main 328a566), nvcc 13.0.88 (13.2.86 for the 13.2 records), one GB10 (sm_121):

  • Build and test (aarch64, on 469dd42dc; 6587e14 changes one line of the GPU-only qwen-table test): zig build -Dfixed-cpu test test-golden (781/781 steps), test-cuda-host (438/438
    steps), the CI set test-kernel-contract test-server-security test-pull-security fuzz-cortheon (54/54 steps,
    340/340), test-kv-pool (100/100), test-qwen35-stage-host (24/24), every qwen/recurrent -host step (331/331
    steps), tools/zig/cuda_common_check.py, pr_check (0 errors), zig fmt --check, git diff --check, no changed file
    over 600 lines, lean 0 new (168 against 168 on main).
  • x86-64 host: check-native-cuda-host compile-cuda-tests (17/17), the full host set with check-release-paths
    (2287/2287 steps, 22441/22597 tests, 156 skipped), pr_check (0 errors, the CHANGELOG warning), zig fmt --check.
    Run with umask 022: under the box's umask 0002 main 328a566 fails its own cli_config_test mode check
    (serve --config: expand reads the file...) the same way.
  • Planted control on Shape.key: table put on join's bit 32 turns the Rollback conformance tests #2138 key test red by name.
  • GPU, main's tf-cuda-test and the head's, outcome lines compared: qwen-pending 49 lines equal main's, and
    the same 49 cases on the _table instantiation all PASS; qwen-pages 26 equal; kernel-contract qwen35 q35 125
    equal plus 11 _table limit lines PASS.
  • kernel-contract-limits on 5-SM fatbins: nvcc 13.0.88 0 failing and no _table row stale; nvcc 13.2.86 0
    failing and no _table row stale. The stale lines left (86 under 13.0, 1349 under 13.2) are the same lines main
    328a566 gives on the same fatbins, for launches this PR does not touch.
  • tf-cuda-test qwen-table (test only, zig/tests/cuda/contract_qwen_table.zig): gdn_pre_table,
    conv_commit_table, gdn_chain_table and tf_q35k_conv_table on a state split into one allocation a layer's region
    and a log row (two segments, layer 1) give main's kernels' bytes on the blocks: outputs and both streams' whole
    state, a decode row, a 4-row chain and an 8-row drafted tree, recorded and not, 3 repeats, guards. Planted controls
    in segment 1's table go red in every case that reads the entry. 25 PASS lines.

Receipt

  • Exactness: main's conformance kit (tools/conformance.py, profile qwen35-cuda: drafted == plain, repeat ==
    first, concurrent == solo at 1/2/4/8, resumed == fresh, refusals, cancel, evict) on main 328a566
    (tensorfold-native md5 7f498d79) and this head (md5 6801b1a7; 6587e14 builds the same binary as d819e71aa),
    both zig build native -Dsm=121, --parallel 8 --context 16384: Qwen3.8-27B NVFP4 + DFlash2, the 27B without a
    drafter, Qwen3.6-35B-A3B + MTP, each with TF_QWEN_KV_PAGES unset, at 256, and at 256 with
    TF_QWEN_KV_SHARE=16.
    • In all 9 cells the reply keys are equal on main and this head (139 a cell with a drafter: 60 greedy, 61 seeded
      sampling, 4 refusals, 14 evict and overlap; 116 for the 27B without one), and each gate's verdict is the same.
    • Pages on (256) and 256 + share against pages unset: 0 keys differ in all 12 pairs (3 models, main and this head).
    • Gates: 27B + DFlash2 7/7 (6/7 with share); 35B-A3B 6/7. evict fails on main too: its 10 fill prompts evict
      nothing (cached 4096 -> 4096; 3/3 equal against cache-off). The 27B without a drafter uses the earlier copies
      profile: 4/7 on main and here (no cancel or evict block, and concurrent == solo, 76/76 equal, flags that no draft was
      accepted).
  • Speed, on these binaries (--parallel 8 --context 16384, clock capped, page cache dropped before each server;
    c=1 is 3 x 256 tokens, tok/s from the done lines, one decimal; c=4 is 3 rounds of 4 x 256; greedy shas of solo,
    c=4, c=8, decode and the c=4 rounds equal to main's in every arm):
  • Environment: TensorFold 6587e14 on main 328a566; Zig 0.17.0; nvcc 13.0.88 (and 13.2.86 for the 13.2
    rows), sm_121; one NVIDIA GB10 (128 GB unified), GPU clock capped, page cache dropped before each server;
    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.
  • Paths and platforms: CUDA sm_121 run; SASS and kernel limits on sm_80, 86, 89, 120 and 121; x86-64 host set.
    Metal, HIP and XPU are not reached.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.

jschmied added a commit to jschmied/TensorFold that referenced this pull request Nov 8, 2026
jschmied added a commit to jschmied/TensorFold that referenced this pull request Nov 8, 2026
@ashhart

ashhart commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@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:

  1. Records past 13.0. Only the nvcc 13.0 rows changed (cuda_lane_pending.zig). The ten changed launches' 13.2 rows in measurements/qwen_lanes_132.zig are untouched, though the description says 13.2 was updated; please post the 13.2 limits output, and update those rows or show they're unchanged. Their 13.3 rows in nvcc_133_records.zig:125-131 still carry the old numbers; please measure them, or move them to measurements/pending_133.zig so they're pending rather than stale.
  2. File size. cuda_cache.zig goes from 417 to 542 lines; could States and its two tests move to their own file?
  3. Speed. 4-stream decode is 0.2-0.6% slower in every round of your table. Please push the follow-up that loads the entry with the Seg, and post the same main-against-branch table for it: both models, pages off and at 256, one and four streams.

@ashhart

ashhart commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@jschmied, thanks for the follow-up and the full table. Finding each segment's table without waiting for the Seg is a neat fix, and the host tests check every address against the old formulas. Two earlier asks are still open, and there's one speed question:

  1. Records past 13.0. The 13.3 rows in nvcc_133_records.zig:125-131 still carry the old numbers. Please move them to measurements/pending_133.zig, which needs no 13.3 install. For the 13.2 rows in measurements/qwen_lanes_132.zig, either update them or post their limits output. The description's Environment line still says "13.0 and 13.2, records updated", which doesn't match.
  2. File size. States and its two tests would be better in their own file, since cuda_cache.zig grows from 417 to 551 lines.
  3. Speed. The 27B with DFlash2 is still 0.2 to 0.4% slower at four streams in every round. The plain 27B's second round at 256 pages shows -0.68% decode, where the summary says -0.08 to -0.16%. Could you correct the summary and say whether you see anything left to recover? We hold slower cells back, so a step that is level at four streams is what lands.

@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart thanks. The head is 3f044af90: three plain commits on 6ea5ca844, no rebase. The kernels are unchanged from 6ea5ca844.

  • Records past 13.0
    • nvcc 13.3 (3a526ac25): the seven rows from nvcc_133_records.zig:125-131 (conv_commit, gdn_pre, slots_1/2/4/8/16) are now in measurements/pending_133.zig, unchanged. tf_q35k_apply_pend's 13.3 row was already there and also predates the table.
    • nvcc 13.2 (3f044af90): I measured the ten rows in measurements/qwen_lanes_132.zig with kernel-contract-limits on five-SM fatbins (zig build fatbins kernel-contract-fatbins -Dnvcc=/usr/local/cuda-13.2/bin/nvcc -Dsm=80,86,89,120,121), the same way as the 13.0 rows. Nine change and tf_q35k_apply is unchanged; the slot scan's selection test in pending_132_test.zig follows them. Their limits output is below.
    • One caveat: this machine's nvcc is 13.2.86. Against the repo's 13.2 set it marks 319 launches stale, including launches this PR doesn't touch (tf_q35_tap, tf_q35_rope, tf_q35k_compact: 32/34/34/23/23 here, 18/17/17/34/34 recorded). So the repo's 13.2 set came from another 13.2 build. Every row I changed is current against 13.2.86. If you'd rather keep the 13.2 numbers from the compiler the set came from, say so and I'll move the ten rows to pending instead.
    • The description's Environment line now says nvcc 13.0.88 and 13.2.86 measured, 13.3 pending.
  • File size (5dae99674, pure move): States and its two tests are in families/qwen3_5/cuda_states.zig (116 lines). cuda_cache.zig keeps States as a name for it, so no caller changes, and goes from 551 to 446 lines (417 on main). cuda.zig's test block imports the new file, so both tests still run.
  • Speed
    • The summary was wrong for the 27B without a drafter. With the -0.68 % round it reads -0.08 to -0.68 %; that round's arms also show prompt TTFT +0.76 %. The description now says so.
    • What is left to recover: I looked at every changed launch in SASS on sm_121 (nvcc 13.0, main e5889236b against this head):
launch registers main / head the table load depends on
gdn_pre 38 / 38 conv tail entry, one LDG.E.64.CONSTANT rowseg only (as sg.conv did)
conv_commit 24 / 30 tail and copy entries blockIdx only
gdn_chain 56 / 56 recurrence entry; with a recording, one per row blockIdx only
slots_1 / 2 / 4 / 8 / 16 72 / 78, 72 / 78, 84 / 88, 90 / 90, 94 / 92 recurrence, copy, and one log entry per recorded row blockIdx (row: the step's row)
k_apply, k_apply_pend, k_conv 40 / 40, 39 / 39, 24 / 18 the stream's own table: one extra hop (Seg by value) the kernel argument
  • The table address is already uniform. In the slot scan, segs + SEG_STATES + s * len is computed with UIMAD.WIDE from SR_CTAID.Z and the argument, and the entry's LDG.E.64.CONSTANT is the kernel's first global load, issued before the Seg fields' loads. So there is nothing left to hoist there.
  • The constant bank would mean putting each stream's entries in the launch arguments. Each block move would then change a captured graph's arguments, which is what Q3's moving pages must avoid, and the 64 log rows don't fit a launch argument.
  • The data arithmetic is identical (FFMA/FMUL/FADD/MUFU/F2FP per function); only HFMA2 immediate moves and integer index conversions differ.
  • Three things tried, none of them better:
    1. Launch bounds bringing the slot scans back to main's registers (posted before).
    2. Loading each recorded row's log entry one row early, with its inputs (43308eaca). The SASS confirms the load left the store path (slots_1: from 0x3200, in front of the stores, to 0x2e20 beside the next row's loads). It is not in the branch, because it recovered nothing; table below.
    3. Before that, the first commit's Seg hop, which the forward tables removed (the 35B-A3B went from -0.4…-0.6 % to level).
  • So I can't make the 27B with DFlash2 level at four streams. I'd put the remaining 0.1 to 0.3 % on the two places that still add a load or registers: the slot scans' registers on sm_121 (one block fewer an SM for slots_1/2) and the keep launches' extra hop. The launch bound put the registers back without moving the number; I haven't isolated the keep hop.
  • Re-measured: c=4, main e5889236b (tensorfold-native md5 0fce9528) against the prefetch variant 43308eaca (md5 09b186f9; the same tables and loads as this head plus the early log load). One server an arm, --parallel 8 --context 16384 --prompt-cache-gib 0, the page cache dropped before each start, A-B-B-A twice, three 4 x 256-token rounds an arm, on the dispatcher's timing lane:
27B NVFP4, 4 streams TF_QWEN_KV_PAGES round 1 main / head round 2 main / head
+ DFlash2 off 70.44 / 70.28 (-0.22 %) 70.42 / 70.21 (-0.30 %)
+ DFlash2 256 70.42 / 69.89 (-0.75 %) 69.99 / 69.91 (-0.11 %)
no drafter off 34.93 / 34.90 (-0.08 %) 34.93 / 34.89 (-0.13 %)
no drafter 256 34.84 / 34.78 (-0.17 %) 34.84 / 34.81 (-0.07 %)
  • Greedy reply sha256s alone and four at once are equal to main in all 32 arms. The earlier rounds on 6ea5ca844: DFlash2 -0.36 / -0.24 / -0.33 / -0.17 %.
  • So this step is 0.1 to 0.3 % slower at four streams with DFlash2, and up to 0.17 % without a drafter. If that holds it back, I'd suggest keeping it open and landing it together with Q3, which needs the table anyway. Or I can close it until then, if you prefer.

Checks on 3f044af90 (nvcc 13.0.88, sm_121):

  • zig build -Dfixed-cpu test test-golden (7588/7654, 66 skipped), test-cuda-host (2650/2658, 8 skipped), test-kernel-contract test-server-security test-pull-security fuzz-cortheon.
  • x86: check-native-cuda-host compile-cuda-tests, the host set and check-release-paths on an x86-64 host.
  • cuda_common_check.py, pr_check (0 errors), zig fmt --check, git diff --check, lean 398 against 398 on the base (0 new).
  • GPU: qwen-pending 49 pass, qwen-pages 26 pass, and kernel-contract qwen35 q35 (13 kernels pass gates 1-4, 6 controls red as planted, 0 limit problems). Outcome lines equal main's.
  • kernel-contract-limits 13.0: 0 stale, 0 failing. 13.2 for the ten launches:
PASS limits sm_80 qwen35 tf_q35_gdn_slots_1: 72 registers, 4096 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_slots_1: 78 registers, 4096 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_slots_1: 78 registers, 4096 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_slots_1: 88 registers, 4096 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_slots_1: 88 registers, 4096 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35 tf_q35_gdn_slots_2: 72 registers, 8192 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_slots_2: 78 registers, 8192 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_slots_2: 78 registers, 8192 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_slots_2: 88 registers, 8192 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_slots_2: 88 registers, 8192 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35 tf_q35_gdn_slots_4: 72 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_slots_4: 80 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_slots_4: 80 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_slots_4: 90 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_slots_4: 90 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35 tf_q35_gdn_slots_8: 64 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_slots_8: 68 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_slots_8: 68 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_slots_8: 88 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_slots_8: 88 registers, 16384 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35 tf_q35_gdn_slots_16: 107 registers, 32768 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_slots_16: 109 registers, 32768 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_slots_16: 109 registers, 32768 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_slots_16: 92 registers, 32768 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_slots_16: 92 registers, 32768 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35 tf_q35_gdn_chain: 64 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_chain: 64 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_chain: 64 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_chain: 56 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_chain: 56 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35_keep tf_q35k_apply: 32 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_86 qwen35_keep tf_q35k_apply: 40 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_89 qwen35_keep tf_q35k_apply: 40 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_120 qwen35_keep tf_q35k_apply: 40 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_121 qwen35_keep tf_q35k_apply: 40 registers, 0 static shared bytes, bound 128 (record current)
PASS limits sm_80 qwen35 tf_q35_gdn_pre: 40 registers, 0 static shared bytes, bound 32 (record current)
PASS limits sm_86 qwen35 tf_q35_gdn_pre: 42 registers, 0 static shared bytes, bound 32 (record current)
PASS limits sm_89 qwen35 tf_q35_gdn_pre: 42 registers, 0 static shared bytes, bound 32 (record current)
PASS limits sm_120 qwen35 tf_q35_gdn_pre: 38 registers, 0 static shared bytes, bound 32 (record current)
PASS limits sm_121 qwen35 tf_q35_gdn_pre: 38 registers, 0 static shared bytes, bound 32 (record current)
PASS limits sm_80 qwen35 tf_q35_conv_commit: 28 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_86 qwen35 tf_q35_conv_commit: 30 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_89 qwen35 tf_q35_conv_commit: 30 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_120 qwen35 tf_q35_conv_commit: 30 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_121 qwen35 tf_q35_conv_commit: 30 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_80 qwen35_keep tf_q35k_conv: 20 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_86 qwen35_keep tf_q35k_conv: 20 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_89 qwen35_keep tf_q35k_conv: 20 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_120 qwen35_keep tf_q35k_conv: 18 registers, 0 static shared bytes, bound 0 (record current)
PASS limits sm_121 qwen35_keep tf_q35k_conv: 18 registers, 0 static shared bytes, bound 0 (record current)

@ashhart

ashhart commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied, this is a careful answer.

  1. Records. The 13.3 rows are pending now, unchanged (measurements/pending_133.zig), and the 13.2 rows are measured
    on this source with their limits output. Please keep your 13.2.86 numbers; that's what we asked for. The wider drift
    you found in the 13.2 set (319 launches stale on 13.2.86) is ours to sort out, not this PR's.
  2. File size. Done, and a clean move: cuda_states.zig is 116 lines and cuda_cache.zig is back to 446.
  3. Speed. The SASS reading is convincing. The table entry is already the slot scan's first global load, the data
    arithmetic is unchanged, and your three tries rule out the easy fixes. That still leaves 0.1 to 0.3% at four streams
    with DFlash2, and we hold back a step that makes a served cell slower. So let's take your first suggestion. Could you
    convert this to a draft and build Q3 on it? Then post one main-against-pair table: the 27B with and without DFlash2,
    pages off and at 256, one and four streams, and the 35B-A3B with MTP. Please don't close it.

One small thing for the next push: the comment at qwen3_5/cuda_pages_init_test.zig:133 runs to 127 columns; it fits on
the line above.


@jschmied
jschmied marked this pull request as draft November 10, 2026 09:49
@jschmied

Copy link
Copy Markdown
Contributor Author

@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:

  1. Flag. Q3 replaces the consecutive run inside the existing TF_QWEN_KV_PAGES path (still opt-in; with pages unset a server runs main's code), rather than adding a TF_QWEN_STATE_PAGES flag under it. A new flag would add a third arm to every 256 row of the table.
  2. "main" in the table. Current main, since the pair lands together. That means rebasing qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) #2620 onto main once before the table; the alternative is qwen3_5 cuda: the GDN kernels read the state, its rollback copy and the log through a stream's state table (#2444 P3) #2620's base e5889236b, which every earlier table used.

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.

@ashhart

ashhart commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied. On your two questions:

  1. Building Q3 inside TF_QWEN_KV_PAGES is fine: it stays opt-in and needs no new setting.
  2. Please use current main. This head no longer applies cleanly there: the last commit's hunk in measurements/qwen_lanes_132.zig meets main's changed qwen35_draft rows. Your nine rows match main's old values, so the rebase should be simple.

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 qwen3_5/cuda_pages_init_test.zig:133 (127 columns) can go on the line above.

  • Synthena (Ash's Agent)

@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart thanks.

  1. Rebase. Rebased onto current main (cc0bb1f); the measurements/qwen_lanes_132.zig hunk now sits on main's qwen35_draft rows and only adds the _table rows. Head ce657e4.
  2. Pages off runs main's kernels. Changed rather than only documented: main's ten state kernels (gdn_pre, conv_commit, gdn_chain, gdn_slots_{1,2,4,8,16}, k_apply, k_apply_pend, k_conv) are main's code again, and the table readers are _table builds of the same source (each kernel's source included twice, #if TF_Q35_TABLE picks the 1 to 4 table lines), launched only by a forward holding a TF_QWEN_KV_PAGES lane. cuda_sass_compare.py cc0bb1f67 ce657e4db on sm_80/86/89/120/121: every main function equal (qwen35 32/32, qwen35_keep 4/4, qwen35_kv8 11/11 with the tool's SUMMARY PASS), only the 11 _table kernels added, and those equal the earlier head's table readers (b6ff841) on all five SMs. The table is in the PR body. A template parameter was tried first and dropped: nvcc reordered main's address math on sm_80-89.
  3. cuda_pages_init_test.zig:133. The comment is on its own line now (b6ff841).

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 _table cases PASS; limits 13.0 0 stale, 13.2 _table rows current; Qwen conformance 18/18 arms, reply keys equal main. Three nightly host tests that counted the cache's allocations without the state table are fixed in 75b440f.

@ashhart

ashhart commented Nov 11, 2026

Copy link
Copy Markdown
Owner

@jschmied, thanks; this answers everything we asked:

  1. Rebase: the contract changes only add rows now: 11 _table rows in zig/src/core/contract/measurements/qwen_lanes_132.zig, 11 in cuda_lane_pending.zig:31-41 and 8 pending in measurements/pending_133.zig:49-58, with main's rows, qwen35_draft included, untouched.
  2. Pages off: with TF_Q35_TABLE 0, qwen35_gdn.cuh, qwen35_keep_state.cuh and qwen35_slots.cuh come out as main's text for all ten kernels, the include guard and the #undef aside, and the host picks _table only through on_table (zig/src/families/qwen3_5/cuda_cache.zig:128, set only in mapRun at :219). Sharing the source between the two builds was a good call.
  3. The comment is on its own line at cuda_pages_init_test.zig:133.

Since TF_QWEN_KV_PAGES already reaches users, the opt-in path needs two more things:

  1. Page-on against page-off: from your conformance runs on ce657e4db, could you compare the reply keys of the 256 and 256 + TF_QWEN_KV_SHARE=16 cells against the unset cells, greedy and seeded, with resume and concurrency, and say whether seeded replies are among the 114 keys?
  2. Controls for four _table kernels: contract_qwen_pending.zig:284-359 covers the slot scans and apply_pend_table with planted controls, but we couldn't find device checks with controls for gdn_pre_table, conv_commit_table, gdn_chain_table or tf_q35k_conv_table. If they're there, a file:line would settle it; if not, a control for each would help.

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.

  • Synthena (Ash's Agent)

@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart thanks.

  1. Pages on against pages off. From the ce657e4 runs, each of the 256 and 256 + TF_QWEN_KV_SHARE=16 cells against the unset cell, key by key: 0 of 114 differ in all 12 pairs (27B + DFlash2, 27B without a drafter, 35B-A3B + MTP; main's binary and the head's). Seeded replies are among the 114: 55 greedy, 55 seeded sampling (seed 7), 4 refusals, across solo, drafted, repeat, concurrent at 1/2/4/8, mixed, and fresh against resumed.
  2. Controls for the four _table kernels. There were none, so I added tf-cuda-test qwen-table (zig/tests/cuda/contract_qwen_table.zig, head c4ba435, test only). gdn_pre_table, conv_commit_table, gdn_chain_table and tf_q35k_conv_table run on a state split into one allocation per layer region and per log row (two segments, layer 1). Their outputs and both streams' state must equal main's kernels' bytes on the blocks, for a decode row, a 4-row chain and an 8-row drafted tree, recorded and not, 3 repeats, with guards. Each case plants a fault in segment 1's table and must go red: layer 1's tail entry naming layer 0's (gdn_pre, conv_commit), its recurrence entry (gdn_chain), and the kept log row naming another row (tf_q35k_conv). The plant is at :126, the check at :288. Result on sm_121: 24 cases PASS, every control red. The one exception is a recorded window of 2+ rows, where conv_commit returns early; that case is checked as unchanged. The x86 compile, fmt, pr_check and lean checks are green (0 new). It also runs in a full kernel-contract (contract_after.zig).

Still a draft. The body has both.

@ashhart

ashhart commented Nov 11, 2026

Copy link
Copy Markdown
Owner

@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. contract_qwen_table.zig gives each of the four _table kernels a planted fault in segment 1's table (:125-130) that must turn the output red (:284-292), with the recorded-window exception for conv_commit explained beside it. So every _table kernel now has a control. Nothing more is needed on P3 from our side; as planned, it stays a draft for Q3, and the main-against-pair table with the SASS comparison goes beside Q3 when it's up.

  • Synthena (Ash's Agent)

@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart Q3 is up as #2939, stacked on this PR (c4ba435). Its body has the main-against-pair table, with the SASS comparison for the pages-off cells beside it, as planned. This PR stays a draft.

jschmied added a commit to jschmied/TensorFold that referenced this pull request Nov 12, 2026
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).
@jschmied

Copy link
Copy Markdown
Contributor Author

@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:

  • Host and x86: test/golden, cuda-host, the CI set, x86 with pr_check, and lean (0 new).
  • Limits: kernel-contract-limits with 13.0 is clean.
  • GPU, against main's outcome lines: qwen-pending 49 + 49 _table, qwen-pages 26 and kernel-contract qwen35 q35 123 + 11 _table all match main; qwen-table gives 25 PASS lines with every control red.
  • SASS against main on sm_80/86/89/120/121: every main function is equal (qwen35 32/32, qwen35_keep 4/4, qwen35_kv8 11/11 PASS), and only the _table kernels are added.
  • Conformance kit: all 18 arms pass, with 0 of 114 keys differing between main and this head; pages on against off differs in 0 of 114 keys in all 12 pairs.

The body names the new head.

Main has moved again since the rebase: on 000b534 the pipeline-stage commits (4dd870b to 799ae94) touch cuda_engine.zig and cuda_shapes.zig, so both PRs show a conflict there. Say if you want another rebase; the gates on both heads take about 8 h.

@ashhart

ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

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 qwen3_5/cuda_engine.zig and qwen3_5/cuda_shapes.zig. To save you two 8-hour gate runs, please rebase both PRs together once we've answered your latest update on #2939. Two points need care beyond the text:

  1. Shape.key in cuda_shapes.zig has run out of bits. This PR puts table at bit 31, and main's 4dd870b already puts part == .head there, with a test pinning the head piece to bit 31 alone. If both share the bit, a _table shape and a head-piece shape can share a captured graph. Please give table a bit of its own. slots only takes 1, 2, 4, 8 or 16, so five bits would free three; widening the key to u64 also works. Please also extend the key test so that table and part each flip a bit of their own.
  2. cuda_engine.zig comes out at about 602 lines with both sides kept (599 here, 585 on main), so a few lines have to move out to stay at 600 or under, as on cuda_native.zig in qwen3_5 cuda: a pool lane's state as pieces on any whole pages of its lease, no run (#2444 P3, Q3) #2939.

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.

  • Synthena (Ash's Agent)

jschmied added a commit to jschmied/TensorFold that referenced this pull request Nov 12, 2026
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

ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied for rebasing the pair onto 6c5cef894 and rerunning the gates. On this PR's head, 74140afe9, the three merge points read right:

  • Shape.key (zig/src/families/qwen3_5/cuda_shapes.zig:30-31): slots has bits 19-23, with an assert that it's 16 or under. table is on bit 26, and the head piece keeps bit 31. The Rollback conformance tests #2138 test now varies part and table together (:93-99), and your planted control turned it red.
  • forward reads !record for the state tables and in the useMt2 call (cuda_engine.zig:469, :506). The file is at 591 lines.
  • The test helper sets e.g.first and e.g.whole (cuda_pages_init_test.zig:92-93).

CI is green on 74140afe9 and on #2939's 250994a85. Nothing more is needed on the code.

Next is a run on our GB10, main 6c5cef894 against the pair (#2939's head): the 27B with and without DFlash2, pages unset and at 256, one and four streams, and the 35B-A3B with MTP. If it's level, we'll land #2620 and #2939 together in one train. This can stay a draft until then.

  • Synthena (Ash's Agent)

…og through a stream's state table

The GDN kernels assumed one contiguous block a stream: a layer's recurrence at `sg.rec + layer * rec()`, its tail
at `sg.conv + layer * conv_rows()`, the rollback copy's tail past `nl` recurrences, a window row's record at
`(row * nl + layer) * log_bytes`. Seg.rec, .conv, .before and .log now point into a per-stream table of addresses
(cuda_cache.zig States: nl recurrences, nl tails, 2 nl copies, 64 log rows; 2 KiB on the 27B), so the pieces can
later live on separate pages without another kernel change. Seg keeps its layout, so kernels that do not touch the
state compile as before.

The table is filled from today's blocks, so every entry is the address the kernels computed before and the
placement is unchanged. Cache.seg rewrites it on the engine's stream only when the state, before or log block moved
(a pool lane's mapRun, the 27B's adaptive scratch leases); a captured forward reads it from device memory, so no
graph is recaptured. The prompt chunk's delta rule and the pending keep copy take their addresses from the host
copy. Its bytes count in streamBytes and a pool lane's fixed bytes.
kernel-contract-limits on 5-SM fatbins (sm_80, 86, 89, 120, 121) built with nvcc 13.0.88 printed these for the ten
launches that now read a stream's state table; every other launch's record is current. nvcc 13.2's and 13.3's
receipts for them are not measured here and stay as they are.
…compute

Each GDN launch read its Seg, then the table entry, then the state: one more dependent load than before the table.
The engine's tables buffer now holds a state table for each forward segment after its staged planes (cuda_round.zig
states_at), copied from the stream's own when the stream or its blocks change, and the forward kernels find segment
s's table at segs + SEG_STATES + s tables, so the entry load does not wait for the Seg. Keep launches, which take
their Seg by value, read the stream's own table as before.
…a_states.zig

A pure move: cuda_cache.zig keeps States as a name for it, so no caller changes.
…g receipts, not records

The seven rows predate the state table and nvcc 13.3 is not on the machine that changed the kernels, so they
move from nvcc_133_records.zig to measurements/pending_133.zig until 13.3 measures them.
…ve SMs

Measured with nvcc 13.2.86 on five-SM fatbins (kernel-contract-limits); the ten launches' rows in
qwen_lanes_132.zig take its numbers, and the slot scan's selection test follows them.
…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.
… in cuda_round.zig (cuda_engine.zig 600 lines)
jschmied added a commit to jschmied/TensorFold that referenced this pull request Nov 21, 2026
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).
@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart this PR and #2939 are rebased onto main 328a566; both were conflicting with main. The new head is 6587e14. Each conflict is fitted into the commit that brought the line, taking main's code where main moved:

  • Rollback-copy guard (d8d0b4e): the shared kernel source carries main's sg.before != 0 guard, so the TF_Q35_TABLE 0 pass is still main's text, and stagedSeg still clears before for an unkept one-row step.
  • Shape.key on u64: table moves to bit 33 beside main's join on bit 32, and slots keeps main's 8 bits. Planted control: table on bit 32 turns the Rollback conformance tests #2138 key test red.
  • max_rows 8192: SEG_STATES is now 445,472.
  • Main's pins: the dense_serving_test.zig hashes name this PR's bytes.
  • Line cap: cuda_engine.zig stays at 600 lines (deltaScan moves to cuda_forward.zig, stateEntries to cuda_round.zig).
  • Limit rows: the _table slot scans' limit rows carry the register counts that main's guard changed.

Gates on 6587e14:

  • Host and x86: test/golden, cuda-host, the CI set, kv-pool, the qwen -host steps, the x86 host set with pr_check, fmt, and lean (0 new) all pass. On the x86 box, main itself fails cli_config_test's file-mode check under umask 0002, so that run used umask 022.
  • SASS against main (sm_80/86/89/120/121): every main function is equal (qwen35 33/33, qwen35_keep 4/4, qwen35_kv8 PASS), and only the _table kernels are added.
  • Limits: with nvcc 13.0 and 13.2, no _table row is stale or failing.
  • GPU, against main's outcome lines: qwen-pending (49 + 49 _table), qwen-pages (26) and kernel-contract qwen35 q35 (125 + 11 _table) all match main. qwen-table gives 25 PASS lines with every control red.
  • Conformance kit (27B + DFlash2, 27B, 35B-A3B + MTP; pages unset, 256 and 256 + share): reply keys equal main's in all 9 cells (greedy, seeded, resume, concurrency 1/2/4/8), each gate gives the same verdict as on main, and pages on against off differs in 0 keys in all 12 pairs.
  • Speed (A-B-C-C-B-A): at 256 this PR is slower than main in 3 of 6 c=4 blocks (27B + DFlash2 -1.03 % in one block, the 27B without a drafter -0.06 / -0.11 %). With pages unset, which runs main's kernels, the 35B's c=4 is -0.37 / -0.17 %. Under the no-slower-cell rule: don't land yet. The table is in the body.

The body names the new head.

This branch has not been deployed

No deployments
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.

2 participants