Commit Graph
138 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 f080ae522b Speed program: ledger Q7 device part merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:26:30 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 0e84729686 docs/experiments: driver side of the decode graph reuse (DeviceRef handles, park, rearm, reseed), ledger Q7
What changed, the reset checklist with the code location of each item, what is not covered, how to test it
on a GPU and the risks. No measurement: nothing was run on a device.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:24:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a2f5854d72 Speed program: ledger rows of the merged verify switches -> fixing with job names
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:47:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 16dea5cb90 Speed program: ledger V3b, A/B ab-sqn (no regression, not significant alone)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:43:43 +01:00
Pavlo Ratushnyi 182e1ca07e Merge branch 'claude/verify-gdn-fused-kernels' into claude/speed-vs-strata-08143a
# Conflicts:
#	crates/cuda-driver/ptx-sm86/MANIFEST.json
#	crates/cuda-driver/src/original_verify.rs
#	crates/cuda-driver/src/original_verify_window_sm120.rs
#	scripts/gpu-bringup/extra-seal-plan.json
2026-11-09 23:39:52 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 62fd0f88a8 verify window: LELEKA_SM120_FUSED_GDN (GDN conv + gates + step in one launch) and LELEKA_SM120_GDN_AB_UNROLL (upstream SMALL_UNR bit 1), both off by default
New sealed sm_120 asset sm120_gdn_fused.ptx (nvcc 13.2.86): leleka_verify_gdn_fused_step
(the Original's step loop over shared memory, conv prologue, gates in two warps or joined from the
SIDE_MIXER branch, split-window replay) and leleka_gdn_ab_unrolled_t1..t8. Written with the Original's
plain expressions on purpose: ptxas contracts a plain mul+sub into one FFMA, so __f*_rn intrinsics
would not be bitwise equal after the driver JIT. PTX shape compared with original_verify.ptx in unit
tests; model-free probe tools/gdn-fused written, not run (no GPU). Design: docs/experiments/verify-gdn-fused-kernels.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:38:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 aaf14df80b Speed program: ledger U5, microbench queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:27:05 +01:00
Pavlo Ratushnyi 6bcc4742b1 Merge branch 'claude/verify-hc-down-microbench' into claude/speed-vs-strata-08143a 2026-11-09 23:26:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 aa2f237590 speed: kernel micro-benchmark of upstream gr_down_v3 (masks 0/5/133) against chain_gr_down_t2w8_nb4 (ledger U5)
Harness (one TU including upstream fused_gr.cu whole, ours from the sealed PTX through the driver API plus an nvcc cubin),
GPU queue stub, and the method note with input sha256. Not run on the GPU yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:26:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f252aa162c Speed program: ledger Q7 owner and plan (shared handle + re-arm API)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:22:05 +01:00
Pavlo Ratushnyi 009585f285 Merge branch 'claude/verify-qsa-fused-prelude' into claude/speed-vs-strata-08143a
# Conflicts:
#	crates/cuda-driver/src/original_verify_window_ops/original_verifier.rs
#	crates/cuda-driver/src/original_verify_window_sm120.rs
2026-11-09 23:13:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 595e34feb4 Docs: name the resolve function of the fused QSA prelude
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:12:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 506527bb9e Verify window: LELEKA_SM120_FUSED_QSA_PRELUDE (K/V rows and tail snapshot + indexer rows of a QSA layer as two launches, opt-in, off by default)
Replaces 12 x (2n+1) per-row launches of a window graph by 24: leleka_verify_qsa_kv_rows (n x mtp_original_append, precise math) and
leleka_verify_qsa_index_rows (tail snapshot + n x verify_qsa_append_analytic, fast math). Both PTX built with nvcc 13.2.86 (compile only)
and pinned; model-free probe tools/verify-qsa-fused-prelude/prelude_probe.cpp not yet run. No GPU number.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:12:25 +01:00
Pavlo Ratushnyi 6b2a69f1d9 Merge branch 'claude/verify-accept-on-device' into claude/speed-vs-strata-08143a 2026-11-09 23:06:30 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 3887d777d6 Speed program O7: LELEKA_SM120_ACCEPT_ON_DEVICE, the finite verdict of the head logits in the verify graph
Off by default. With the switch the verify graph ends with verify_clear_status, verify_scan_logits and a
one-word store of the status into a host-mapped verdict word (vanilla's logits_nonfinite_rows order); the
post-drain check reads that word instead of launching the scan, synchronising the stream, copying the status
back and synchronising the context. Same error at the same place, before complete_window and any commit.
Sealed PTX unchanged. Unit tests for the switch, the graph tail commands, the verdict decode and the post-drain
dispatch. Note updated with the corrected O7 ledger wording.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:05:51 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 91a130da6a Speed program: ledger U5, retract the cross-kernel grid-y comparison (different row mapping)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:52:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 00d90124a9 Speed program: ledger U5, chain down kernel by window rows against vanilla
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:52:35 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6d61656177 Speed program: ledger section C2u (upstream cc 12.0 defaults: PDL, SMALL_UNR, GR_V3_PF) and the O7 correction
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:52:00 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 23f0ecb97d Speed program O7: trace of verify end to first draft kernel (ours and vanilla)
Vanilla's greedy accept is host-side (generate.cpp:15255); the difference to ours is the
post-drain finite-verdict scan (three syncs against one) and the host chain before the draft
launch. A device-side accept needs draft-chain edits; options and recommendation in the note.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:51:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5b8c0eba0e Speed program: readable job names (queued stubs and dirs renamed, old->new table in the ledger), content labels on the touched ledger rows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:54:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a199b3ad11 Speed program: S6/O11 plan (fused commit graph exists, to be measured and enabled), LELEKA_DRAFT_* allowed in profile engine_env, CF/CU CUPTI variants
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:16:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a838d0abe7 Speed program: SIDE_QSA and SIDE_SHARED on by default in the 5090 profiles; ledger V3a/V3b/V4a/V4/S3 fixed (section delta + identity)
Owner method: a step closes on a measured section delta plus identity; the set A/B (spd-sqa, M against M+QSA+shared) checks the set for regression.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:14:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 35040ea9a6 Speed program: ledger V4a A/B (ab-sqe n=10, not significant, stays off), variant U for the set A/B
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:10:51 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4c8919610a Speed program: ledger V3b/V4a/V4 section deltas from the CE/CN/CT windows (spd-sqw)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 20:13:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4f310457ce Speed program: SIDE_MIXER on by default in the three 5090 profiles (identity PASS, decode +1.39 % paired); ledger V3a/V3b/V4a identity
Teacher-forced gate spd-sqid1: P2 (SIDE_MIXER), P3 (SIDE_QSA), P4 (SIDE_SHARED) against P1: 2057 top-16 logprob rows bit-identical, 0 argmax flips, draft trace 518/518 identical. The A/A arm did not open (InputAllocation) in any process, so no A/A floor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 18:37:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 015b98ec43 Speed program: ledger V3a, A/B SIDE_MIXER (ab-sm, n=10): decode +1.39 %, identity pending
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 17:32:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 3faad53b60 Speed program: step ledger reordered along the request pipeline (request, prefill, decode round)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 15:07:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d5fd270f81 Speed program: step ledger (every gap to vanilla per step of round and request), counts tool
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 15:05:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a310533186 Speed program: CUPTI kernel-level comparison LEL against VANL (67k window): the gap is the missing parallel branches in the verify graph
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 14:36:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4a633f70df Speed program: lever 3 variant H clean paired result (e2e +1.06 %, not significant)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 01:15:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d2108576a8 Speed program: lever 5 variant R clean paired result (e2e +0.56 %, not significant)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 23:43:25 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6d955f88dc Speed program: kernel-level status of the vanilla sm_120 set and the remaining missing items with estimates; CUPTI windows queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:47:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e7dde84ea9 Speed program: time-weighted hit-rate gap and gap by context from the real Codex sessions (ceiling of the hit-rate levers 1.8-2.6 % of task time)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:40:39 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 974b310a65 Speed program: decode miss leg, draft and quiet windows from the profile lines (CPU leg serial and DRAM-bound, equal to vanilla per expert; draft cost follows window width)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:04:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7bee3eb157 Speed program: what keeping the recorded verifier graphs between requests needs (cost 83 ms/request, gain under 1 % e2e)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 20:53:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6d782b0e15 Speed program levers 3 and 5: job script leaked the variant variables (first R and H pairs invalid, reruns queued); small-tail prefill profile: 72-80 % is moe.ring
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 20:14:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9c984ba74b Speed program lever 3: variant G opened the same 12192 slots (null experiment); variant H (reserves lowered) queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 14:49:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b8cc9ce1e9 Speed program lever 5: fixed-cost fit corrected (581 ms + 0.134 ms/token)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 14:37:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 743f742b32 Speed program levers 4 and 5: the 106k draft subset is already bound in the product; fixed per-request prefill cost from the profile lines; variants Q and R queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 14:37:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 de51a07f91 Speed program: fix cell count in the split note
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 14:31:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ede9542fd9 Speed program: per-request split of the real-session gap LEL vs VANL (no gateway cost: 85% decode, 16% prefill) and session_split.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 14:31:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1e258fe469 Speed program: lever 7 gate on n=7 (not passed on rounds), lever 6 result (no gain), lever 3 A/B variant G queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 12:31:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d6ed4931f1 Speed program lever 7: owner-gate correction, spd-g cells re-accepted with the fixed accept.py (CRM 2 of 3 at 56/56; r3 fails its own e2e test)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 08:38:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b7ff47f044 Speed program lever 2: closed with no change (CPU leg equals vanilla per expert; the excess is the miss count, lever 3); lever 6 and lever 7 logit gate queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 08:32:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a2bc720b99 Speed program lever 7: fix baseline ttt rounds in the gate table
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 08:32:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9f395d9043 Speed program lever 7: final replay result (+12.6% decode) and the owner gate on real Codex sessions (CRM 0/3 at 56/56: stays experimental, off)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 08:32:02 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 db765f833e Speed program lever 7: interim paired result (+13.2% decode, experimental) and the owner-gate Codex runs queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:11:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5c0e4187ad Speed program: levers 2 and 4 from existing evidence, lever 7 paired A/B queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7941347ee9 Speed program lever 1: identity gate PASS on the product-tree test binaries rt-c9 and rt-main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cd83f843bc Speed program lever 1: sm_120 ATTN_DAILY + GU_SWIGLU on in the 5090 profiles (teacher-forced identity PASS, decode +1.85% paired)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:45 +01:00