Files
leleka/docs/experiments/step-ledger.md
T

51 KiB

Step ledger: every place where Leleka (LEL) loses to vanilla Strata (VANL), in pipeline order, request to decode

Owner rule (2026-11-09): every step where we lose is recorded, even 0.02 ms. A row is never dropped as "below noise", "under 1 %", "neutral" or "NO-GO because small". This file is the single register; the narrative and the measurements behind it stay in docs/experiments/codex-compare-speed-gap.md (cited as gap doc).

Arms. LEL = release package leleka-0.1.0-17e372944279 (CUPTI CL.1: plus the lever 1 switches ATTN_DAILY, GU_SWIGLU). VANL = vanilla 0.2.6, tail skip and CPU prefill share off. Differences are LEL minus VANL: positive = we are slower. "ms/round" means per speculation round of the verify window; one round is 17.9 ms in LEL and 15.9 ms in VANL in the CUPTI window.

Closing rule. A row is fixed only with (1) a measured section delta of that very step (CUPTI window or PROFILE lines of the step, not the end-to-end A/B, which cannot see 0.05 ms), (2) identity (bitwise for non-lossy changes: draftround-id.sh top-16 logprob rows and draft trace; placement-class changes need the gate against the control placement), and (3) the end-to-end paired A/B of the whole set of fixes. Statuses: open (nothing done), fixing (code or run exists, closing evidence incomplete), fixed, proved-equal (measured equal, or measured in our favour: the sign is in the difference column).

Owners. device = verify graph and everything on the GPU (this register, session hexagonal-44f3f4); hex-finish = host, draft and prefill.

Sources. CUPTI = one 15 s window over replay request 29 (67k context), runs /data/leleka-e2e/spd-gap/runs/cupti/{CL.1,CM.1,VANL}/win-r29.lct, scripts scripts/e2e/codex/speed/{cupti_layer_phases,cupti_doorbell_latency,cupti_verify_graph,cupti_stream_overlap,kernel_roles}.py and decode_rounds.py. One window per arm: the greedy trajectories differ a little (hit mix, window width), so a per-kernel mean can carry the entry mix. PROFILE = the product's own LELEKA_SERVE_PROFILE lines (runs/main/P). LOG = engine logs of the replay cells. ORCH = figure given by the orchestrator session, not re-derived here.

Order (owner rule 2026-11-09). The ledger follows the request linearly, from the request into the engine, through prefill, to the decode round (draft, verify graph, accept, commit, publication of the tokens, next round). Work goes in this order: step N is closed (fixed, or proved-equal with a section measurement) before step N+1. Prefill and host are led by hex-finish, the decode part (verify graph, accept on the device, branch overlap, their streams) by device; both run in parallel, each in its own order. After each group of steps comes the end-to-end paired A/B of the group.

Row ids are stable (they are cited in codex-compare-speed-gap.md and in reports); the section decides the order, not the number.

A. Request into the engine (HTTP and gateway, tokenizer, prefix cache)

No per-step figure exists for A1-A3; each is a not measured row that needs a section measurement before it can be closed.

id step LEL VANL difference source owner status
A1 HTTP, gateway and proxy time per request not measured per step not measured per step the sum 'rest' per request is Q10: 22 ms against 32 ms LOG hex-finish open
A2 tokenizer and prompt assembly not measured not measured n/a none hex-finish open
A3 prefix-cache lookup and import (cached tokens per request, import time) not measured not measured n/a (replay logs cached_tokens; import time only in last_import_split) none hex-finish open
Q10 gateway, proxy, serialization ("rest" per request) 22 ms 32 ms -10 ms LOG hex-finish proved-equal (LEL ahead)

B. Prefill (chunks, expert ring and copies, refill, QSA, GDN, first token), then the hand-over to decode

id step LEL VANL difference source owner status
Q8 request time per output token, prefill + decode 0.59 + 5.63 = 6.22 ms 0.36 + 4.61 = 4.97 ms +1.25 ms (decode +1.02, prefill +0.23) LOG both open
Q1 prefill per request at equal uncached tokens 726 ms 431 ms +295 ms LOG hex-finish open
Q2 prefill latency by uncached tokens (< 64, 64-256, 256-1024, 1024-4096, >= 4096), median ms 430, 530, 722, 1002, 4405 268, 292, 435, 715, 2184 +162, +238, +287, +287, +2221 LOG hex-finish open
Q3 prefill throughput over uncached tokens 930-1050 tok/s 1460-1560 tok/s -35 % LOG hex-finish open
Q4 prefill.read fixed part (581 ms + 0.134 ms per token; 485 ms for 239 tokens) 485-581 ms whole prefill of that size class 292 ms +193 and more PROFILE hex-finish open
Q5 moe.ring in a small tail (72-80 % of the chunk, 48 layers x 7.4 ms, 355 ms for 238 tokens) 355 ms vanilla reads tails of up to 64 tokens through verify windows +355 ms for the smallest tails PROFILE prof-l5 hex-finish open
B1 prefill GDN and QSA stages of a small tail (per stage split) prof-l5/Q.1 has moe, moe.ring, gdn, qsa, input per chunk none for vanilla n/a PROFILE hex-finish open
B2 first token sampling and publication after prefill not measured not measured n/a none hex-finish open
Q6 prefill.refill of the lent expert slots (2,226 copy spans) 137-140 ms per request none +138 ms; deferring it into the decode assembly (LELEKA_REFILL_DEFER): decode -0.92 % (CI -1.63..-0.21), end-to-end +0.56 % (CI -0.15..+1.27) PROFILE, A/B ab-l5v2 hex-finish fixing
Q7 decode.assemble (graph re-recording per request: record_all 83 ms of 98-109 ms, nine graphs, 54-62 capture + 27-30 instantiate) 98-109 ms per request none (vanilla keeps its graphs) +98-109 ms PROFILE both fixing (device part DONE and merged, branch claude/verify-decode-graph-reuse-handles tip 0e8472968: DeviceRef, park/rearm/reseed, note docs/experiments/verify-decode-graph-reuse-handles.md; open: identity on a GPU, hex-finish part (owner loan, weights_epoch, drafter binding, enabling); original plan was: device = shared DeviceRef handle in the verify-window/qwen_dispatch operand files plus park/rearm/reseed API, branch after the three side-stream merges; hex-finish = owner loan, drafter binding, enabling LELEKA_DECODE_GRAPH_REUSE in the stack; spec docs/experiments/decode-graph-reuse.md B1 and Part 2 in claude/prefill-latency a4a8d597f; section = decode.assemble per request)

C. Decode round: summary, then draft, verify graph, accept, commit, publication, next round

Round-level totals first (they are the sum of the steps below).

id step LEL VANL difference source owner status
R1 round wall (graph start to start) 17.864 15.886 +1.978 CUPTI device open
R4 GPU idle over the round 2.574 3.103 -0.529 (busy 85.6 % against 80.5 %) CUPTI device proved-equal (LEL ahead)
Q9 round count: tokens per round 3.59-3.66 2.95 +0.64..+0.71 tokens per round (+22 %): our adaptive window pays +3.1 ms for +0.65 tokens LOG device proved-equal (net +2.8 % decode, kept)

C1. Draft (chain from the previous commit to the verify window's tokens)

id step LEL VANL difference source owner status
O9 draft chain steps and idle between them 0.27 not given +0.27 ORCH hex-finish open
O8 draft finite and q8 guard checks (mtp_original_finite 158.8 x 0.87 us, mtp_original_q8_guard 28 x 0.87 us per round, 186.8 launches) 0.162 none +0.162 CUPTI hex-finish open
K13 draft chain role total (chain GR kernels, mtp_*) 3.544 2.471 +1.073 (includes the draft head and checks of R3 and O8; VANL books its draft in the shared GR kernels) CUPTI role table hex-finish open
O12 draft finish follows the window width (0.93 ms at T 3.0, 2.5 ms at T 6.2) window price part of the +3.1 ms for +0.65 tokens per round PROFILE hex-finish open
O2 kernels outside big graphs 630 147 +483 CUPTI hex-finish open
O3 graph executions per round 5.38 4.47 +0.91 CUPTI hex-finish open

C2. Verify graph: embed, 48 layers (mixer half, FFN half), final write and head

Structure first, then the layer steps in graph order: embed (R7), mixer half (V3 and the kernels in it), FFN half (V2/V4 and the kernels in it), tail (R8).

id step LEL VANL difference source owner status
V1 streams in the verify graph 1 11 wall time with two or more streams active: 0 against 2.03 ms CUPTI device fixing
R2 verify graph GPU span 13.561 11.743 +1.818 CUPTI device open
V9 verify graph kernel time sum 13.349 13.728 -0.379 (VANL runs kernels concurrently: its span is shorter than its sum) CUPTI device proved-equal (LEL ahead)
V8 launches per verify graph 2061 2098 -37 CUPTI device proved-equal (LEL ahead)
R5 verify graph launch call (host) 1.485 1.509 -0.024 CUPTI device proved-equal (LEL ahead)
R6 idle inside the verify graph (2052 gaps against 1193 per round, mean 0.1 us) 0.213 0.119 +0.094 CUPTI device open
R7 first doorbell after graph start (embed, first layer mixer) 0.132 0.117 +0.015 CUPTI device open
V3 mixer phase (add_hits end to next doorbell) 6.366 5.963 +0.403 CUPTI device fixing
verify: side branch of the GDN mixer (V3a) GDN gates and gate projection on side streams (LELEKA_SM120_SIDE_MIXER=1, existing, off) mixer 5.913, round 17.508 (CM.1) mixer 5.963 section delta mixer -0.453, round -0.356; mixer phase now equal to VANL CUPTI device fixed (identity spd-sqid1 P2 PASS: 2057 top-16 rows bit-identical, 0 argmax flips, draft trace 518/518; A/B ab-sm n=10 decode +1.39 %, CI +0.46..+2.32 %; default ON in the 5090 profiles; closed 2026-11-09 by section delta + identity (owner method); set A/B verify-side-branches-ab-mixer-only-vs-all-branches (M mixer only against U all three side parts, n=10 pairs, 27 requests a block, 2026-11-10): decode tok/s 179.11 -> 182.90, +2.11 %, CI +1.18..+3.04 % (ms/token 5.583 -> 5.467); end-to-end 162.29 -> 164.70, +1.49 %, CI +0.17..+2.80 %; ms/round 20.06 -> 19.90, -0.80 %, CI -3.80..+2.21 % (not significant); tokens/round 3.59 -> 3.64, CI -2.01..+4.60 %; no regression; out_sha equal in 15 of 300 live requests, which is replay placement noise, the identity gate is the teacher-forced spd-sqid1)
verify: side branches of the QSA indexer and query chains (V3b) QSA indexer chain and query chain on side streams (LELEKA_SM120_SIDE_QSA, code 0c30105d4, off) in line 0.509 ms of overlap with the main stream (main+qsa) section delta (CN.1 against CL.1, same replay window r29): mixer phase of a QSA layer 184.5 -> 169.7 us p50 (-14.8 us x 12 = -0.18 ms/round); CT.1 (all three) 169.2 us. FFN phase rose in CN.1 on GDN layers too (109 -> 131 us), which the branch does not touch, so the whole-graph time of that window (14.62 against 13.56 ms mean) is window drift, not the branch; the A/B decides CUPTI (VANL) device fixed (A/B ab-sqn L against N, n=10: decode tok/s +0.35 %, CI -0.23..+0.93 % (not significant, no regression); ms/token 5.635 -> 5.616; ms/round +0.11, CI -2.99..+4.11 %; end-to-end +0.87 %, CI -0.16..+1.90 %; default ON in the 5090 profiles; closed 2026-11-09 by section delta + identity (owner method); set A/B verify-side-branches-ab-mixer-only-vs-all-branches (M mixer only against U all three side parts, n=10 pairs, 27 requests a block, 2026-11-10): decode tok/s 179.11 -> 182.90, +2.11 %, CI +1.18..+3.04 % (ms/token 5.583 -> 5.467); end-to-end 162.29 -> 164.70, +1.49 %, CI +0.17..+2.80 %; ms/round 20.06 -> 19.90, -0.80 %, CI -3.80..+2.21 % (not significant); tokens/round 3.59 -> 3.64, CI -2.01..+4.60 %; no regression; out_sha equal in 15 of 300 live requests, which is replay placement noise, the identity gate is the teacher-forced spd-sqid1)
K6 attention role in total (norm/RoPE, appends, scores, top-k, resolve, chunk, merge, gate) 1.357 1.125 +0.232 CUPTI role table device fixed (switch LELEKA_SM120_FUSED_QSA_PRELUDE, ON in the three 5090 profiles since 2026-11-10; verify-new-switches-identity: top-16 rows 2057/2057 identical, draft trace 1036/1036 identical, argmax flips 0, A/A identical (P2, P3, P8). Section verify-new-switches-cupti-windows (2026-11-10, windows of request 29, 15 s, new binary bin-verify-switches, per-T within one variant: T 2..6 have 77-376 graphs; the control CL.2 and each variant ran in separate sessions, so the expert-tier (FFN) phase differs between them and is NOT compared): QSA prelude launches per graph at T 3..6 204/216/228/240 -> 192 (the per-row verify_qsa_append_analytic goes, leleka_verify_qsa_kv_rows + leleka_verify_qsa_index_rows 12 each come); QSA kernel time per graph +23 / +21 / +11 / +3 / -18 us at T 2..6 (CQ.1 against CL.2), mixer phase per layer -0.6 / -1.1 / -1.6 / -2.2 / -2.8 us = -0.03 / -0.05 / -0.08 / -0.10 / -0.13 ms per graph (x47). set A/B verify-qsa-prelude-set-ab-profile-vs-profile-plus-prelude (PB profile set against ZQ = PB + prelude, n=10 pairs, 27 requests a block, 2026-11-10): decode tok/s 183.52 -> 184.46, +0.51 %, CI -0.02..+1.05 % (ms/token 5.449 -> 5.421); end-to-end 166.32 -> 166.72, +0.24 %, CI -1.22..+1.69 %; ms/round 19.55 -> 19.53, -0.12 %, CI -3.62..+3.37 %; tokens/round 3.59 -> 3.60; no regression, the section gain (-0.056 ms) is below what n=10 resolves; closed 2026-11-10 by section delta + identity + set A/B (owner method))
K1 attention decode chunk (leleka_qsa_decode_chunk_daily 18.3 us, 12 per graph) against attn_chunk_kernel_pre75 (17.1 us) 0.220 0.206 +0.014 CUPTI device fixed (no code of its own: chunk kernel at parity (+0.014 ms); in the CQ.1 and CY.1 windows leleka_qsa_decode_chunk_daily stays 17.9-18.3 us, 12 per graph, unchanged by the prelude; rides with K6; set A/B verify-qsa-prelude-set-ab-profile-vs-profile-plus-prelude (PB profile set against ZQ = PB + prelude, n=10 pairs, 27 requests a block, 2026-11-10): decode tok/s 183.52 -> 184.46, +0.51 %, CI -0.02..+1.05 % (ms/token 5.449 -> 5.421); end-to-end 166.32 -> 166.72, +0.24 %, CI -1.22..+1.69 %; ms/round 19.55 -> 19.53, -0.12 %, CI -3.62..+3.37 %; tokens/round 3.59 -> 3.60; no regression, the section gain (-0.056 ms) is below what n=10 resolves; closed 2026-11-10 by section delta + identity + set A/B (owner method))
K2 indexer block scores (leleka_qsa_decode_scores 14.2 us against block_scores_multi 17.1 us) 0.170 0.205 -0.035 CUPTI device proved-equal (LEL ahead)
K3 block top-k cluster (17.3 us against 18.0 us) 0.208 0.216 -0.008 CUPTI device proved-equal (LEL ahead)
K4 KV miss copy / copy kernel (11.1 us against 11.6 us) 0.133 0.139 -0.006 CUPTI device proved-equal (LEL ahead)
K5 KV resolve (7.8 us against 8.4 us) 0.094 0.100 -0.006 CUPTI device proved-equal (LEL ahead)
K7 GDN role in total (step, conv, ab, commit) 0.914 0.759 +0.155 CUPTI role table device open (switch LELEKA_SM120_FUSED_GDN built, identity PASS (P4, P5, P8: verify-new-switches-identity: top-16 rows 2057/2057 identical, draft trace 1036/1036 identical, argmax flips 0, A/A identical), OFF in the profiles. Section verify-new-switches-cupti-windows (2026-11-10, windows of request 29, 15 s, new binary bin-verify-switches, per-T within one variant: T 2..6 have 77-376 graphs; the control CL.2 and each variant ran in separate sessions, so the expert-tier (FFN) phase differs between them and is NOT compared): without side streams (CG.1 against CL.2) GDN kernel time per graph -78 / -74 / -82 / -70 / -60 us at T 2..6, launches 108 -> 36, mixer phase -1.6 / -1.3 / -1.6 / -1.3 / -0.8 us per layer (-0.04..-0.075 ms per graph). With the profile's SIDE_MIXER (CY.1) the a/b projection stays a separate chain_gdn_ab_multi_kernel on the side stream (10.1 us x 36) and the fused kernel is step+norm+conv only: 7.18 us against verify_gdn_step_norm_multi_kernel 5.66 + verify_gdn_conv_l2_multi_kernel 1.34 = 7.00 us, so no gain on the profile's critical path. The remaining +0.155 ms of the GDN role is the step kernel itself: next step is the step kernel's own time, not launch count)
K7a GDN step/norm in the verify graph (verify_gdn_step_norm_multi 6.1 us against gdn_step_norm_multi 6.2 us, but 36 against 30.9 launches) 0.220 0.191 +0.029 CUPTI device open (as K7: the step/norm kernel stays 7.18 us fused against 7.00 us separate under SIDE_MIXER, so the gap to gdn_step_norm_multi 6.1 us is in the kernel body)
K7b GDN alpha/beta (chain_gdn_ab_multi 36 x 8.5 us against gdn_ab_multi 22.9 x 10.5 us plus the rest) 0.307 0.344 -0.037 CUPTI device proved-equal (LEL ahead)
K12 dense projections, lm head, MMVQ/MMVF role (head_n*, bf16_f32_mmvf_multi) 3.892 4.589 -0.697 CUPTI device proved-equal (LEL ahead)
S1 ATTN_DAILY (decode attention) on since lever 1 on paired decode +1.85 % with S2 (CI excludes zero), identity PASS (teacher-forced, 2057 of 2057 rows); no section delta of its own gap doc lever 1 device fixing (needs a CUPTI section delta)
verify: side-stream mixer switch (SIDE_MIXER=2) (S3) SIDE_MIXER=2 GDN part off by default, QSA part not ported before 0c30105d4 on V3a, V3b CUPTI device fixed (closed by V3a/V3b/V4a)
S8 MMVQ_IL (2-4 and 5-8 columns) not ported on estimate 0.10-0.40; CUPTI role K12 shows our dense projections faster by 0.70 in total upstream plan device open
verify: batched K/V and indexer append (S10) batched K/V append and indexer append per row (verify_qsa_append_analytic 138 x 1.04 us, mtp_original_append 49 x 1.6 us) batched (append 12 x 3.0 us, kv_append_q8 14.6 x 2.2 us) estimate 0.05-0.10 upstream plan, CUPTI device fixed (as K6: batched K/V and indexer append inside the QSA prelude fusion, CQ.1 shows verify_qsa_append_analytic 36 x 1.05 us (0.038 ms) replaced by kv_rows 12 x 1.93 us + index_rows 12 x 2.47 us (0.053 ms): fewer launches, more kernel time, net in the mixer phase as K6; set A/B verify-qsa-prelude-set-ab-profile-vs-profile-plus-prelude (PB profile set against ZQ = PB + prelude, n=10 pairs, 27 requests a block, 2026-11-10): decode tok/s 183.52 -> 184.46, +0.51 %, CI -0.02..+1.05 % (ms/token 5.449 -> 5.421); end-to-end 166.32 -> 166.72, +0.24 %, CI -1.22..+1.69 %; ms/round 19.55 -> 19.53, -0.12 %, CI -3.62..+3.37 %; tokens/round 3.59 -> 3.60; no regression, the section gain (-0.056 ms) is below what n=10 resolves; closed 2026-11-10 by section delta + identity + set A/B (owner method))
V2 FFN phase (doorbell to add_hits end) 6.600 5.293 +1.307 CUPTI device open (analysis 2026-11-11, docs/experiments/ffn-phase-loss-design.md, windows CY.1 against VANL, per T and per layer class: with SIDE_SHARED the device chain of the layers without a wait is at parity, -0.010 ms at CY.1's own T mix; the rest, +0.94 ms of +0.95, is the arrival of the CPU rows and PCIe copies after the doorbell (+0.76 / +0.99 / +2.03 ms at T 2 / 3 / 4), which belongs to V5/V7 (host/tier, hex-finish); small device options D1-D3 below, 0.20-0.23 ms upper range)
verify: doorbell to first routed expert (V4) doorbell to first routed expert (gate/up) start, us 27.6 15.0 +12.6 us x 48 = +0.60 ms; with SIDE_SHARED (CE.1) 10.9 us, i.e. below VANL (CT.1 11.5 us) CUPTI device fixed (closed by V3a/V3b/V4a)
verify: shared expert on a side stream (V4a) shared expert on a side stream, forked after the doorbell, joined before the combine (LELEKA_SM120_SIDE_SHARED, code 255159a89, off) 27.6 us before the first expert 15.0 us section delta (CE.1 against CL.1): doorbell to first expert 27.6 -> 10.9 us (VANL 15.0), FFN phase 6.600 -> 6.267 ms (-0.333; qsa layers 99.8 -> 87.6, gdn 109.3 -> 102.7 us p50), graph p50 12.386 -> 11.944 ms (-0.44); identity spd-sqid1 P4 PASS: 2057 rows bit-identical, draft trace 518/518; A/B ab-sqe (L against E, n=10): decode tok/s +0.29 %, CI -0.43..+1.01 % (not significant); ms/round -0.61 (-2.97 %), CI -6.08..+0.15 %; tokens/round 3.64 -> 3.54 (live replay placement noise, numerics are identical); stays OFF; the CUPTI section gain (-0.33 ms) is of the size the replay cannot resolve at n=10, so 10 more pairs (spd-sqe2) and the set A/B M against all side parts (verify-side-branches-ab-mixer-only-vs-all-branches) are queued CUPTI device fixed (closed 2026-11-09 by section delta + identity (owner method); set A/B verify-side-branches-ab-mixer-only-vs-all-branches (M mixer only against U all three side parts, n=10 pairs, 27 requests a block, 2026-11-10): decode tok/s 179.11 -> 182.90, +2.11 %, CI +1.18..+3.04 % (ms/token 5.583 -> 5.467); end-to-end 162.29 -> 164.70, +1.49 %, CI +0.17..+2.80 %; ms/round 20.06 -> 19.90, -0.80 %, CI -3.80..+2.21 % (not significant); tokens/round 3.59 -> 3.64, CI -2.01..+4.60 %; no regression; out_sha equal in 15 of 300 live requests, which is replay placement noise, the identity gate is the teacher-forced spd-sqid1)
V4b routed experts on their own branch (VANL: plan wait, VRAM experts, fetch_blobs, CPU wait, add_hits on a side stream; main stream does the shared expert and the next norm) all on the capture stream branch none left: SIDE_SHARED is the same stream structure (fork after the doorbell, join before the combine); the windows CT.1/CY.1 show the VANL pattern and no serial time before the routed chain CUPTI device fixed (closed 2026-11-11 by V4a, docs/experiments/ffn-phase-loss-design.md section 4.0)
V4c norms and hyper-connection reads (gr_norm_split, gr_down, gr_up) as separate branches main stream main stream (VANL does not branch them; a layer's gr_* chain stays on the main stream) no structural difference; kernels in K8..K10 CUPTI device proved-equal
V5 flag waits on the CPU leg (verify_wait_flag_ge 96 x 26.9 us + chain_wait_copy_i32 48 x 5.4 us against wait_flag_ge 144 x 8.1 us) 2.836 1.160 +1.676 CUPTI device open (analysis 2026-11-10, no code and no switch: the wait kernels have no overhead part to remove; script scripts/e2e/codex/speed/cupti_flag_waits.py, windows verify-new-switches-cupti-windows/CL.2 (LEL) and cupti/VANL, request 29. Per graph from the window: LEL A 0.215 + B 0.718 + M 1.816 = 2.748 ms (the cell 2.836 is the earlier graph set), VANL 0.266 + 0.099 + 0.791 = 1.156 ms. What is waited on: A = flag A, the plan the host publishes after the doorbell; B = flag B, the PCIe copies landed (DMA mode: raised behind the copy batch, the wait ends 3.3 us (p50 3.0) after the last copy ends); M = flag M, the CPU rows in mapped memory. Three waits a layer in both (144 nodes) and the same poll loop (while (*flag < v) __nanosleep(100); __threadfence_system() in original_verify.cu, chain_window.cu, upstream dp4a.hpp). Overhead part: a wait whose flag is already set when it starts lasts 1.3-1.4 us for B and M in both sessions (VANL B median 2.2) and 2.2 us for A with the plan copy fused (VANL: wait 1.7 + separate copy 3.2-3.7), i.e. 48 x (2.2 + 1.3 + 1.4) = 0.24 ms a graph against about 0.25 ms in VANL; the poll latency after the flag is set is at most the same 1.4 us on about 35 blocked waits a graph, <= 0.05 ms, also in VANL. The rest is real waiting. By wait, LEL minus VANL: A -0.051, B +0.619, M +1.025 ms. B: 13.9 % of LEL layers have a DMA PCIe leg (3.9 MB p50, B wait 99 us mean there); in VANL 21.3 % of layers have a fetch_blobs above 2 us and pay the PCIe time as kernel time on the GPU stream (V6, -1.621), so V5 and V6 move the same time between wait and kernel (V7). M: the wait does not start early (M start after the doorbell, layers without a PCIe leg: LEL 70.7 us, VANL 60.1 us); the CPU rows arrive later: layers with CPU work (M wait > 4 us) 37.1 % against 24.3 %, M end after the doorbell 133.5 against 98.9 us mean (p50 111.6 against 92.8); at equal T the same (T=4: 45.5 % / 142.1 us against 24.4 % / 109.2 us; T=3: 36.5 % / 125.2 against 24.8 % / 95.6). So the loss is the arrival time of the CPU leg, not the graph kernels; to look at on the host/tier side (hand-over to hex-finish): the PCIe/CPU split (LEL engine.log pcie_frac=0.45 fixed; VANL's PcieAuto in the same session went 0.55, 0.40, 0.35), tier state (request stats of the window's request: LEL VRAM 92.6 %, PCIe 2.2 %, CPU 5.2 %; VANL about 93.7 / 1.3 / 5.0 % from its strata serve lines, windows not matched), host pickup and plan latency (not visible: the trace has no timestamp of the flag word; upstream wait_flag_ge_stamped, verify_kernels.cu:1250, would give flag arrival against poll latency and needs a GPU run, not done))
V6 PCIe fetch and CPU-row hand-over (doorbell, mapped copies, fetch_blobs, add_hits, rebase_ptrs) 0.488 2.109 -1.621 CUPTI device proved-equal (LEL ahead)
V7 V5 + V6, the whole miss-leg handling 3.324 3.269 +0.055 (+0.17 by an earlier count of the same sets) CUPTI device open (analysis 2026-11-10 with V5: V5 +1.676 and V6 -1.621 are the same PCIe time counted as wait in LEL (DMA, flag B) and as kernel time in VANL (fetch_blobs, rebase_ptrs, copy_rows_from_mapped), so the sum is flat and no graph kernel is left to change; what remains is the CPU leg arriving 25-35 us later after the doorbell in the layers that have CPU work (V5), a host/tier/split question; closes when that is A/B'd or the tier states of the two sessions are matched)
K11 routed experts in the verify graph, role total (gate/up/SwiGLU, down) 2.507 2.484 +0.023 (entry mix differs; at equal entry counts LEL is faster: window_moe_down_20 13.6 us with 40 entries against 17.4 us, sm120_moe_gu_swiglu_22 12.3 us with 50 entries against 26 us with 40) CUPTI device open (2026-11-11 per layer pair, T 2-4: window_moe_down_* is 3.4-7.1 us slower than VANL in 48 of 48 layers, the gate/up kernel 3-4 us faster, and the empty PCIe pass launches at full grid every layer (about 5.5 us against about 0.7); the role total hides this in the entry mix; docs/experiments/ffn-phase-loss-design.md section 4.1 D1)
K15 hit tally add_hits (48 x 1.2 us against 48 x 1.3 us) 0.059 0.063 -0.004 CUPTI device proved-equal (LEL ahead)
S2 GU_SWIGLU (routed expert gate/up + SwiGLU + q8_1) on since lever 1 on as S1 gap doc lever 1 device fixing (needs a CUPTI section delta)
S7 sub16 routed-expert kernels beyond GU_SWIGLU warp-per-row sub16 estimate 0.20-0.35; the CUPTI pair K11 does not show LEL slower, so this must be re-measured by kernel before any work upstream plan device fixing (task D1 LELEKA_SM120_DOWN_SUB16, estimate refined to 0.17-0.23 ms a graph; docs/experiments/ffn-phase-loss-design.md)
D2 add_hits folded into the combine (LELEKA_SM120_HITS_IN_COMBINE, upstream combine_k10_vec4_hits) add_hits 48 x 1.2-1.3 us a graph folded upper bound 0.06 ms a graph (T 2-4) design ffn-phase-loss-design.md 4.1 device open (task T2, not started)
D3 wait on flag M folded into the copy of the CPU rows (LELEKA_SM120_WAIT_M_ROWS) 2 launches a layer folded 0.04-0.06 ms a graph; risk: upstream measured -1.5 % decode on Turing for the same fold design ffn-phase-loss-design.md 4.1 device open (task T3, not started)
S11 float4 combine not ported combine_k10_vec4 50.6 x 1.2 us estimate 0.05-0.10 (the code has no launch saving, one launch a layer both ways: expect 0.01-0.02) upstream plan device fixing (switch LELEKA_SM120_COMBINE_VEC4 (off), sealed sm120_combine_vec4, branch claude/s11-s9-combine-headmix merged; jobs verify-s11-s9-u5a-bitwise-probes, -identity P2/P5, -cupti-windows CS/CZ queued; look at mtp_full_combine against leleka_verify_combine_k10_vec4 per launch). Identity 2026-11-10 (verify-s11-s9-u5a-identity P2): top-16 rows 2057/2057 bit-identical, draft trace 1036/1036, A/A identical: PASS. Stays OFF until the window CS shows a delta)
K8 hyper-connection down (chain_gr_down_t2w8_nb4 11.1 us against gr_down_staged 11.5 us) 1.063 1.112 -0.049 CUPTI device proved-equal (LEL ahead)
K9 hyper-connection up (chain_gr_up8 8.5 us against gr_up75 + gr_up_multi variants) 0.817 0.877 -0.060 CUPTI device proved-equal (LEL ahead)
K10 hyper-connection split (chain_gr_split 96 x 3.1 us against gr_norm_split 97 x 2.9 us) 0.299 0.280 +0.019 CUPTI device open
S4 GR_DOWN_TG 9.7 us (chain_gr_down_t2w8_nb4) 18.4 us -8.7 us gap doc device proved-equal (LEL ahead)
S5 GR_UP75 (hoisted row loads) partial on estimate 0.05-0.10 upstream plan device open
K14 small kernels (norms, PLE, copies, sampler) 0.049 0.253 -0.204 CUPTI role table device proved-equal (LEL ahead)
R8 tail after the last layer's add_hits (final write, head, argmax) 0.463 0.373 +0.090 CUPTI device open
S9 HEAD_MIX_MULTI not ported on estimate 0.06-0.10 upstream plan device fixing (switch LELEKA_SM120_HEAD_MIX_MULTI (off), one multi-token hc read for the head, 3 launches a token instead of 5 (-(5T-3) a graph), branch claude/s11-s9-combine-headmix merged; bitwise rests on upstream's claim until verify-s11-s9-u5a-bitwise-probes and identity P3/P5 run; window CH/CZ queued). Identity 2026-11-10 (P3): NOT bitwise. 25 of 2057 top-16 rows differ against the reference (same 25 in both arms, A/A identical, so it is the switch, not noise), d_top1 max 0.0015, p99 0.0013, argmax flips 0, draft trace 1036/1036 identical. The multi-token head read changes the summation order of the head mix. A lossy-class change: OFF, and it needs its own quality gate and a delta before it can be considered (the window CH; expected gain is only the 5T-3 launches)

C2u. Upstream cc 12.0 defaults after 0.2.6 (owner 2026-11-09: +0.3 % and +0.5 % are tokens too)

These are in upstream strata-upstream/main (October 31 to November 1) and not in the vanilla 0.2.6 arms (VANL 202.1 tok/s), so they widen upstream's lead; we take them when we have no equivalent. Columns LEL = what our tree has, VANL = the upstream claim.

id step LEL VANL difference source owner status
verify: programmatic dependent launch on the all-resident verify graph (U1) PDL (081d1c04d): kernels carry griddepcontrol.wait after their constant-weight loads and are launched with the programmatic stream-serialization attribute inside the graph capture, only kernel-to-kernel edges, cc >= 9 not present: the verify window issues ordinary launches (launch_ex.rs has only the cluster attribute); our sealed PTX has no griddepcontrol claim +0.3..0.5 % decode, bit-identical, RTX PRO 5000, all-resident graph; -1.6..-4.5 % in the doorbell graph of a partly resident cache (our serve graph is the doorbell graph, hit rate 90.8 %) not measured upstream commit, pdl.hpp device open (plan: kernel edits in the dense kernels that upstream opted in - native_mmvq x4, native_bf16 x1, verify_kernels x2 - behind LELEKA_SM120_PDL, off; section = gap between consecutive kernels in a CUPTI window; only worth keeping if the doorbell graph does not lose)
verify: unrolled bf16 router read (U2) STRATA_SMALL_UNR bit 0 (bf16_f32_mmvf_multi, constant-trip loops), default 3 on cc 12.0 (08b20b104) no (our router read is the Original-literal kernel) claim +0.18 % agent, +0.28 % code_py, 5/5 pairs, bitwise not measured upstream commit device open
verify: unrolled GDN a/b projection (U3) STRATA_SMALL_UNR bit 1 (gdn_ab_body; ours verify_gdn_ab_multi_kernel) no same A/B as U2 (bits 0 and 1 together) not measured; part of the GDN role K7 upstream commit device open (switch LELEKA_SM120_GDN_AB_UNROLL built, identity PASS (P6, P8: verify-new-switches-identity: top-16 rows 2057/2057 identical, draft trace 1036/1036 identical, argmax flips 0, A/A identical), OFF in the profiles. Section verify-new-switches-cupti-windows (2026-11-10, windows of request 29, 15 s, new binary bin-verify-switches, per-T within one variant: T 2..6 have 77-376 graphs; the control CL.2 and each variant ran in separate sessions, so the expert-tier (FFN) phase differs between them and is NOT compared) without side streams (CV.1 against CL.2): GDN kernel time per graph -63 / -93 / -137 / -177 / -168 us at T 2..6 (chain_gdn_ab_multi_kernel 7.72 us x 36 -> leleka_gdn_ab_unrolled_t1..t8 2.97 .. 15.56 us), mixer phase -1.3 / -1.8 / -2.8 / -3.3 / -3.7 us per layer = -0.06 .. -0.17 ms per graph. With SIDE_MIXER on (CY.1) the unrolled kernel does not run at all (the side stream keeps chain_gdn_ab_multi_kernel), so the profile set does not take it. Next step: use the unrolled a/b kernel on the side stream and check whether the join then waits less)
verify: batched staging and read loads of the HC read (U4) STRATA_GR_V3_PF bits 0 and 2 of gr_down_v3/gr_up_v3 (08b20b104) no GR_V3 port (upstream-port-plan.md 5.7); our HC kernels are the chain kernels (chain_gr_down_t2w8_nb4 11.1 us, chain_gr_up8 8.5 us), ahead of vanilla 0.2.6 by K8/K9 no number of its own not measured against the chain kernels upstream commit device open (needs the same-T kernel table of upstream's variant against the chain kernel)
verify: HC down kernel, two rows a warp for windows of 5+ rows (U5) STRATA_GR_V3_PF bit 7, default mask 133 on sm_120 (4ab81c796, 5f24b96db, merged as 27a3e056a; bitwise, same dots in the same order) not present; chain down kernel by window rows in CL.1 (gy = rows/2): T 1-2 9.35 us, T 3-4 10.65 us, T 5-6 13.11 us, T 7-8 15.33 us (vanilla 0.2.6 VANL by its own grid-y 1/2/3/4/6: 8.80 / 9.04 / 10.18 / 12.54 / 15.92 us; a different row mapping) down kernel 16.1 / 16.2 / 17.6 / 19.5 -> 13.3 / 14.1 / 14.7 / 15.6 us at T 5-8 (upstream's own table); serve A/B spec 6 +1.21 %, spec 8 +1.4 %, ids identical 96/96 RTX 5090 micro-benchmark verify-hc-down-kernel-microbench-vs-upstream (2026-11-10, upstream 504b1433, ours 6b2a69f1d; 64-node graph, 7 rounds x 40 replays, weights cold from DRAM): the whole read, ours (split + down + up8) against upstream (down + up, mask 133), is slower by 3.9 / 4.4 / 3.4 / 3.1 / 3.9 / 5.2 / 5.9 / 5.2 us per layer half at T 1..8 (+15..+29 %, every point above the round spread); against mask 0 by 3.2 / 3.1 / 2.5 / 1.3 / 0.8 / 1.1 / 0.2 / -0.9 us. Our down kernel alone is slower by 2.8..5.1 us (warm); the split kernel adds 2.3..2.6 us that upstream's down kernel does itself (norm sum of squares and staging). At 96 launches a graph (48 layers x 2 halves, docs/experiments/verify-hc-down-kernel-microbench-vs-upstream.md) that is 0.30 (T 4) .. 0.56 ms (T 7) per verify graph. Bitwise: NOT established, the harness inputs give NaN in most outputs (nonfinite in the DIFF lines), so the byte compare says nothing; the finite rows show rs differing by 1 ulp from upstream. upstream commit device fixing (measured: upstream faster at every T, so the earlier "level within 1 us" reading was wrong; steps: U5a. Section delta to confirm in the CUPTI window: chain_gr_down_t2w8_nb4 + chain_gr_split -> one fused down kernel, per-layer-half time)
verify: HC down plus split fused into one upstream-style kernel (U5a) gr_down_v3_kernel mask 133: staging, norm sum of squares and the dots in one launch, no chain_gr_split chain_gr_split + chain_gr_down_t2w8_nb4 (+ chain_gr_up8): two launches, split 2.3..2.6 us (warm) microbench (U5): ours slower by 3.1..5.9 us per layer half cold, 96 launches a graph = 0.30..0.56 ms a graph not measured on the engine microbench verify-hc-down-kernel-microbench-vs-upstream device fixing (built, off; branch claude/u5a-gr-down-fused merged; jobs verify-s11-s9-u5a-bitwise-probes, -identity P4/P5, -cupti-windows CD/CZ queued 2026-11-10; no separate A/B, owner rule of 2026-11-10). LELEKA_SM120_GR_DOWN_FUSED=1 (needs LELEKA_CHAIN with gr, staged read, 81,920 B shared) records leleka_gr_down_fused_t2w8 (sm120_gr_down_fused.cu, sealed PTX, 191 registers, no spill) in place of chain_gr_split + chain_gr_down_t2w8_nb4: the block stages R' * w_norm of its two tokens into shared memory, adds the sum of squares in the split kernel's order, scales, and runs the down kernel's dots; rs is written by the blocks of column 0; the arithmetic order is the two kernels' (bitwise by construction, unlike upstream's v3), so the weights' DRAM fetch (about 4 us cold) overlaps the staging instead of waiting behind the split launch. Probe tools/gr-down-fused/gr_down_fused_probe.cpp compares every output byte against the pair for T 1..8. Microbench inputs were finite all along; its NaN came from a race between the poison memsets (legacy default stream) and the kernels (non-blocking stream), fixed with a device synchronize; the byte compare of the earlier run is invalid and the microbench has to be re-run. Section to look at: chain_gr_split + chain_gr_down_t2w8_nb4 (96 + 96 launches a graph) -> leleka_gr_down_fused_t2w8 (96 a graph)). Identity 2026-11-10 (P4): 2057/2057 rows bit-identical, draft trace 1036/1036, A/A identical: PASS. Enabled by default only after window CD shows a delta

C2v. CUPTI windows of the new verify switches (verify-new-switches-cupti-windows, 2026-11-10)

Windows of request 29 of the VANL nestng-crm-r2 replay, 15 s each, binary bin-verify-switches. CL.2 = control (lever 1, no side streams), CQ.1 = + QSA prelude, CG.1 = + fused GDN, CV.1 = + a/b unroll, CA.1 = + accept on device, CY.1 = profile set (side streams) + all new switches. Every row is within one variant per window row count T (graphs T2/T3/T4/T5/T6 in CL.2: 312/235/77/139/19); the FFN phase (expert tier) differs between sessions and is not compared. The VANL column is the role table of the earlier VANL window (rows K6, K7), not re-measured.

section (per graph) CL.2 T2 / T3 / T4 / T5 / T6 CQ.1 prelude, delta CG.1 fused GDN, delta CV.1 unroll, delta CA.1 accept, delta VANL
mixer phase, us per layer 117.2 / 127.1 / 138.8 / 156.4 / 171.5 -0.6 / -1.1 / -1.6 / -2.2 / -2.8 -1.6 / -1.3 / -1.6 / -1.3 / -0.8 -1.3 / -1.8 / -2.8 / -3.3 / -3.7 +0.2 / +0.2 / 0 / 0 / -0.3 not windowed
same, ms per graph (x47) 5.5 / 6.0 / 6.5 / 7.4 / 8.1 -0.03 / -0.05 / -0.08 / -0.10 / -0.13 -0.075 / -0.06 / -0.075 / -0.06 / -0.04 -0.06 / -0.085 / -0.13 / -0.155 / -0.17 0
QSA kernels, us per graph (launches) 871 (192) / 974 (204) / 1046 (216) / 1118 (228) / 1255 (240) +23 (192) / +21 (192) / +11 (192) / +3 (192) / -18 (192) +5 / +7 / +5 / +1 / +1 +1 / 0 / 0 / +6 / -24 +6 / +5 / -1 / -1 / -21 attention role 1.125 ms against ours 1.357 (K6)
GDN kernels, us per graph (launches) 430 (108) / 529 / 628 / 721 / 816 +1 / +1 / +1 / +2 / +2 -78 (36) / -74 / -82 / -70 / -60 -63 / -93 / -137 / -177 / -168 +1 / +1 / 0 / +1 / +1 GDN role 0.759 ms against ours 0.914 (K7)
accept: graph end to first draft kernel, us 275 / 297 / 353 / 324 / 386 n/a n/a n/a 287 / 291 / 296 / 354 / 346 (no consistent sign) vanilla decides on the host as well
profile set CY.1 (side streams + everything), mixer us per layer CY.1: 108.4 / 116.6 / 126.3 / 143.2 / 155.6 (-8.8 .. -15.9 against CL.2, mostly the side streams)

Under the profile's SIDE_MIXER the a/b projection runs as chain_gdn_ab_multi_kernel on the side stream (10.1 us x 36 in CY.1), so the fused GDN step is step+norm+conv only (7.18 us against 7.00 us separate) and the unrolled a/b kernel does not run: fused GDN and unroll give nothing on the profile and stay off. Only the QSA prelude has a delta on the profile path: weighted by CL.2's graph mix, -0.056 ms per graph (one graph a round), about 2.4 % of VANL's attention-role gap of 0.232 ms. Against the +1.98 ms a round at 67 k that is 0.06 ms closer (3 %), before the set A/B confirms it.

C3. Accept (verdict of the window on the device) and the hand-over to the next draft

id step LEL VANL difference source owner status
O7 verify end to first draft kernel, ms (design note docs/experiments/verify-accept-on-device.md: vanilla decides the accept count on the HOST too, generate.cpp:15255; what vanilla keeps on the device is the finite check of the head logits, one sync; ours does a second launch pair, a stream sync, a DtoH and a context sync) 0.32 0.08 +0.24 ORCH hex-finish (finite check: device) fixing (LELEKA_SM120_ACCEPT_ON_DEVICE (off), branch claude/verify-accept-on-device merged, identity PASS (P7, P8: verify-new-switches-identity: top-16 rows 2057/2057 identical, draft trace 1036/1036 identical, argmax flips 0, A/A identical). Section verify-new-switches-cupti-windows (2026-11-10, windows of request 29, 15 s, new binary bin-verify-switches, per-T within one variant: T 2..6 have 77-376 graphs; the control CL.2 and each variant ran in separate sessions, so the expert-tier (FFN) phase differs between them and is NOT compared) (CA.1 against CL.2): verify_clear_status 0.59 us + verify_scan_logits 2.0-2.3 us added to the graph; graph end to first draft kernel 275 -> 287 / 297 -> 291 / 353 -> 296 / 324 -> 354 / 386 -> 346 us at T 2..6: no consistent sign (differences -57..+30 us, window T mixes differ), no measurable section gain, so OFF in the profiles; the host chain (0.2 ms) is hex-finish)

C4. Commit (accepted-prefix graph, GDN replay, QSA tail restore, re-append, PLE history)

id step LEL VANL difference source owner status
verify: fused commit graph (accepted-prefix commit) (S6) COMMIT_BATCH + state-only GDN commit (commit graph 158 kernels, 0.463 ms) not ported on (gdn_step_commit_layers 0.9 per round, 0.095 ms) estimate 0.25-0.35 upstream plan, CUPTI device fixed (the fused commit graph exists since draft-round: LELEKA_DRAFT_FUSED_COMMIT=on, 182 -> 4 nodes, GPU 516 -> 125 us, identity 2057/2057 rows and 1036/1036 draft-trace lines; it was never in the profile because the replay A/B called it neutral; now: section window (verify-fused-commit-cupti-windows, 2026-11-10, replay r29): commit graph in CL.2 182 kernels, span 509.3 us (p50 510.4, 836 graphs; verify_gdn_step_norm_multi_kernel 36 x 7.2 us = 258.5 us, verify_qsa_append_analytic 96 x 1.0 us, verify_gdn_conv_commit_kernel 36 x 1.7 us) -> CF.1 (lever 1 + fused commit) 4 kernels, span 125.2 us (p50 124.4, 795 graphs; draft_commit_gdn_layers 113.9 us, draft_commit_qsa_layers 4.9 us) and CU.1 (profile set + fused commit) 4 kernels, span 125.6 us (761 graphs): section delta -0.384 ms/round, -178 kernels/round; round wall of the windows is not comparable (T mix and expert-tier state differ between sessions: p50 CL.2 15.30, CF.1 15.73, CU.1 15.95, VANL 14.73 ms), the set A/B decides; identity verify-fused-commit-and-side-branches-identity P2/P3 on this tree, then ON in the 5090 profiles; no separate paired A/B: a bitwise-identical step closes by section delta + identity, the e2e A/B is the one group A/B at the end of the stage; identity verify-fused-commit-and-side-branches-identity (2026-11-10, against the reference process of spd-sqid1): P2 (profile set SIDE_MIXER+QSA+SHARED + fused commit) and P3 (fused commit with lever 1): top-16 logprob rows 2057/2057 identical, 0 argmax flips; draft trace 518/518 identical against the reference (the harness line DRAFT VERDICT: DIFFERENT compares the two halves of the reference's single arm, whose I2 arm did not open in spd-sqid1 (InputAllocation), so it is not a verdict on the step); A/A of arm I2 against arm I1 inside P2 and P3: 2057/2057 identical; enabled by default in the three 5090 profiles (LELEKA_DRAFT_FUSED_COMMIT=1, profile tests 50 passed); closed 2026-11-10 by section delta + identity (owner method))
verify: commit graph kernel count (O11) commit graph (158 kernels, verify_gdn_conv_commit 36 x 1.7 us) 0.463 0.095 (gdn_step_commit_layers) +0.37 (S6) CUPTI device fixed (as S6: commit graph 182 -> 4 kernels, 509 -> 125 us, identity PASS, ON in the 5090 profiles)
O10 fused commit (LELEKA_DRAFT_FUSED_COMMIT) measured -0.024 ORCH hex-finish fixing

C5. Publication of the tokens, host work and syncs around the round

id step LEL VANL difference source owner status
R3 verify end to next verify start (draft, commit, host, CPU-leg join) 4.304 4.144 +0.160 CUPTI hex-finish open
O4 API calls per round 207 20 +187 CUPTI hex-finish open
O5 copies per round (count, MB) 121 (71.5 MB) 12 (23.6 MB) +109 copies, +47.9 MB CUPTI hex-finish open
O6 syncs per round (count, host time) 27.8 (2.468 ms) 89 (0.926 ms) -61 syncs, +1.542 ms of host sync time (overlapped with GPU work: R3 is only +0.16) CUPTI hex-finish open
O13 host work around a group (split 3, spans 2, publish plan 6, open and zero 5 us; 48 groups) 0.8 not measured n/a PROFILE hex-finish open
O1 kernels per round 2691 2245 +446 CUPTI hex-finish open

C6. Between rounds and requests: expert tier (hit rate, placement)

The tier adapts every 4 rounds and survives across requests.

id step LEL VANL difference source owner status
H1 VRAM hit share in the replay 90.8 % 92.8 % -2.0 points; 28 % more misses LOG device open
H2 VRAM hit share weighted by decode time in real sessions nestng-crm 91.38 %, ttt 92.68 % 92.41 %, 93.38 % -1.03 and -0.70 points; at most 0.57 ms per round per point, so up to 0.59 and 0.40 ms per round LOG device open
H3 short requests (< 600 tokens) hit share 86.9 % 89.9 % -3.0 points (up to 7 in single requests) LOG device open
H4 expert slots 12,192 12,575 (+3 %) -383 slots; variant H (reserves 130 / 500 MiB, about +190 slots): VRAM share +0.44 points, ms/round -0.44 (-2.19 %, CI -3.55..-0.83), tokens per round -1.69 %, decode +0.51 % (CI -0.19..+1.20), end-to-end +1.06 % (CI -0.38..+2.50) A/B ab-l3v2 device fixing (placement-class: needs the gate against the control placement)
H5 adaptive tie order (equal-gain swaps share the cap across layers, LELEKA_ADAPT_TIE_SPREAD, 9d130fd38) low layer first run memory-tier-tie-spread-ab-first-half/xb queued gap doc device fixing
H6 tier knobs: adapt every 2, 192 swaps, decay 0.85, margin 1.0 (spd-w1..w5) 4, 96, 0.7, 1.5 same policy runs queued gap doc device fixing
H7 first rounds of a request see an unadapted tier not isolated gap doc device open
H8 CPU expert compute per expert (2 MB) 39 us (52 GB/s) 44 us -5 us PROFILE hex-finish proved-equal (LEL ahead)

Counts

Computed by scripts/e2e/codex/speed/ledger_counts.py (2026-11-10): 92 rows. The one both row and the hex-finish (finite check: device) row are counted in their owner's column below.

status rows device hex-finish both
open 47 24 22 1
fixing 15 11 3 1
fixed 10 10 0 0
proved-equal 20 18 2 0

fixed rows (V3a, V3b, V4, V4a, S3, K6, K1, S10, S6, O11) have a section delta, identity and a set A/B; the rest of the fixing rows wait for GPU validation.

Order of work in the device part (linear in the graph; step N closed before step N+1)

The device part starts at the verify graph; the draft (C1) and the host (C5) belong to hex-finish.

  1. C2, structure: V1 closes when V3a, V3b, V4a and V4b are closed.
  2. C2, mixer half in graph order: V3a (GDN branch; A/B spd-sm1, identity spd-sqid1), V3b (QSA branch; window CN.1, A/B spd-sqn), then the kernels of the half: K1, K6, K7, K7a, S1, S8, S10.
  3. C2, FFN half: V4a (shared expert; window CE.1, A/B spd-sqe), V4b (routed-expert branch), V5, V7, K11, S2, S7, S11, then K10, S5 and the tail R8, S9.
  4. C3 accept (O7), C4 commit (S6, O11).
  5. C6 hit rate and tier placement (device side: H1..H7).

Each step is closed with: section delta (CUPTI of that step), identity, and the end-to-end paired A/B after the group.

A/B rules (owner, 2026-11-10: do not burn the GPU)

  1. A bitwise-identical step (identity PASS) gets no paired A/B of its own: it closes by the section delta (one CUPTI or profile load) plus identity.
  2. One group e2e A/B per set, at the end of the stage: n=5 pairs (10 runs); n=10 only when an effect below 1 % has to be resolved.
  3. Replay of 12-15 requests when a section is measured, not 30.
  4. Several variants in one load (switch by env or tune), not a restart for each.
  5. A/B only for changes that alter the numbers or carry a regression risk.

Job names (old code name -> readable name)

Queue stubs and result directories carry the readable name from 2026-11-09 (<area>-<what is measured>-<arm or step>, area prefix prefill-, verify-, draft-, host-, memory-). A job that already ran or runs keeps its directory; this table is the correspondence.

old name readable name state
spd-sm0 verify-side-mixer-cupti-window (dir runs/cupti/CM.1) done
spd-sm1 verify-side-mixer-ab-default-vs-on (dir runs/ab-sm) done
spd-sqid1 verify-side-branches-identity (dir runs/id-sq1) done
spd-sqw verify-side-qsa-and-shared-cupti-windows (dirs runs/cupti/CE.1, CN.1, CT.1) done
spd-sqe verify-side-shared-ab-default-vs-on (dir runs/ab-sqe) done
spd-sqe2 verify-side-shared-ab-more-pairs withdrawn
spd-sqn verify-side-qsa-ab-default-vs-on (dir runs/ab-sqn) running
spd-sqa verify-side-branches-ab-mixer-only-vs-all-branches (dir of the same name) done (U against M: decode +2.11 %, no regression)
spd-sqf verify-fused-commit-cupti-windows (dir of the same name) done
spd-sqid2 verify-fused-commit-and-side-branches-identity (dir of the same name) done
- verify-s11-s9-u5a-bitwise-probes (probes of S11, S9, U5a, kernel level) first run 2026-11-10 failed: the frozen probe binaries had lost the executable bit (exit 126, nothing measured); -run2 stages them with +x, queued 2026-11-11 before the windows
- verify-s11-s9-u5a-identity (P2 S11, P3 S9, P4 U5a, P5 profile set + all three) done 2026-11-10 23:00: P2 PASS, P3 25 rows differ (d_top1 max 0.0015, no flips), P4 PASS, P5 the same 25 rows as P3
- verify-s11-s9-u5a-cupti-windows (CP control, CS, CH, CD, CZ) queued 2026-11-10
spd-xa, spd-xb memory-tier-tie-spread-ab-first-half, -second-half (dir runs/memory-tier-tie-spread-ab) first half queued (5 pairs); second half withdrawn 2026-11-10 (A/B rule below)
spd-cuo draft-and-verify-cupti-windows-leleka (dir runs/cupti/CL.1) done
spd-cuv draft-and-verify-cupti-windows-vanilla (dir runs/cupti/VANL) done
spd-w1 .. spd-w5 memory-tier-policy-screening-round-1 .. 5 done