Pavlo Ratushnyi
b4ef2eec47
Merge branch 'main' into claude/speed-vs-strata-08143a
2026-11-11 01:22:25 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
b8bcd7e777
FFN switches D1-D3: probe, identity and window stubs; ledger rows and job names
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-11 01:19:31 +01:00
Pavlo Ratushnyi
ef128c3b04
Merge claude/speed-vs-strata-08143a: sm_120 defaults, verify side streams, fused commit, step ledger, upstream microbench
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
# Conflicts:
# deploy/rust-runtime/profiles/rtx5090-32g-file.json
# deploy/rust-runtime/profiles/rtx5090-32g-gguf-ple.json
# deploy/rust-runtime/profiles/rtx5090-32g.json
# docs/experiments/step-ledger.md
2026-11-11 01:18:50 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
8b2bd4d5e5
Window job: variants WD/WH/WW/WZ for the FFN switches; unset the per-variant switches between variants (a CS export leaked into CH/CD)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-11 01:13:47 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
d19d08b698
V2 FFN phase: loss analysis and design (offline CUPTI timeline script)
...
Per kind/T/layer-class timeline of the FFN phase for LEL (CL.2, CT.1, CY.1)
and VANL from the request-29 windows, shift-share of the +0.95 ms into device
chain / arrival of the CPU rows / tail / tier mix, and the device-side options
that remain (sub16 down kernel with PCIe pass rows, add_hits in combine, wait M
folded into copy rows) with a task split. Analysis only: no engine code, no GPU.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-11 00:40:33 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
6129eed3e2
Probe stub run2: stage the frozen probe binaries with the executable bit
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-11 00:04:09 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
51b36adf7a
prefill A/B driver: variants PED/PEDP (prefetch with detached drains), PE traces driver errors
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 23:19:10 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
9119e6d29d
prefill A/B driver: variant PET (ring prefetch with driver error trace)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 21:49:04 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
a4be37beb3
prefill A/B driver: variants FR/FP/PE/PEP/RB/RBP (stream 1536 base, ring prefetch, refill batch)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 20:50:52 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
d885dc5019
Window scripts: holder env var goes before nohup (nohup HOLDER_MEMFD=... failed to start the holder)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 20:27:08 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
bf13908627
lab queue: holder watchdog (restarts the sparse holder when none runs and no window is pending, alert in decode/notes.md)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 20:26:52 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
dc828b961b
prefill A/B driver: variant YRP (default set + refill deferral + stream 1536); YP carries stream 1536
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 20:20:50 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
ce7c7b69ec
prefill A/B driver: variants SR/SRP (expert stream from 1536 rows)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 19:27:45 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
fc1e94ea55
Speed program: window variants CP/CS/CH/CD/CZ, ledger S11/S9/U5a built and queued (probes, identity, CUPTI windows)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 19:23:28 +01:00
Pavlo Ratushnyi
4a1845aedb
Merge branch 'claude/u5a-gr-down-fused' into claude/speed-vs-strata-08143a
...
# Conflicts:
# crates/cuda-driver/ptx-sm86/MANIFEST.json
# crates/cuda-driver/src/original_verify_window_sm120.rs
# scripts/gpu-bringup/extra-seal-plan.json
2026-11-10 19:15:36 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0518311567
verify window: LELEKA_SM120_GR_DOWN_FUSED (hc split + tiled down projection as one launch, step U5a), off by default
...
New sealed sm_120 asset sm120_gr_down_fused.ptx (nvcc 13.2.86): leleka_gr_down_fused_t2w8 replaces
chain_gr_split + chain_gr_down_t2w8_nb4 (96 launches fewer per verify graph). 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 with rs and
runs the down kernel's dots; the operations and their order are those of the two kernels (bitwise by
construction; upstream's gr_down_v3 sums in another order). A no-op, said once, without the chain gr pair.
Planner, switch resolution (Sm120Switches, GrConfig.down_fused), unit tests, model-free probe
tools/gr-down-fused (not run: no GPU). Not measured. Microbench harness: the NaN outputs were a stream race
between the poison memsets and the kernels, fixed; inputs are checked finite.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 19:14:46 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
d9ea02037a
prefill A/B driver: variants SP1/SP2 (expert stream from 1024 / 256 rows)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 19:00:32 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
456f5336b1
Speed program: ledger V5/V7 analysis of the flag waits (no kernel overhead to remove; the loss is the CPU leg's arrival), cupti_flag_waits.py
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 18:55:34 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
2a0542a89f
prefill A/B driver: variant APR (profile + routing trace)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 18:39:13 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
1b49397cd0
ring diagnostic: LELEKA_PREFILL_DIAG_SKIP_EXPERT_DMA=N skips the expert copies after the first N (cold slots are uninitialised and the finite guards refuse them)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 17:45:06 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
edad5e7737
Speed program: QSA prelude on in the 5090 profiles (identity P2/P3/P8, section delta per T); ledger K6/K1/K7/K7a/S10/U3/O7 with the window results; PB/ZQ variants for the set A/B
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 12:13:58 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
c1cb1ff5e6
prefill A/B driver: variant DSP (diagnostic: expert DMA skipped, profiled)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 10:23:55 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
dcd01042c4
prefill A/B driver: variants Y/YP (the default switch set: check merge, park fast, graph reuse)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 10:17:04 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
4fef1b0091
pf_ab_job guard: comment on its own line (the previous edit commented out the job name)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 02:34:37 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
6db5d8cc61
pf_ab_job guard: take the newest .running file (stale ones exist)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 01:04:00 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
b732ee37f4
Holder windows restart the lab holder sparse (cmp_window.sh, spd_window.sh); spd_ab_job.sh gets the sparse-memfd guard
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 01:03:24 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
e2a2693071
Speed program: the identity harness verifies the extents of a sparse holder memfd instead of reading the whole archive
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 01:01:15 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
8bd63be469
holder: guard against a non-sparse lab holder in pf_ab_job (restart sparse and requeue); ledger row M1; ladder A/B ran on the full holder
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 01:01:09 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
6ba60d7d34
pf_ab_job: variants RG/RGP/RGT (decode graph reuse)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 00:56:14 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
7570247d92
Merge claude/verify-decode-graph-reuse-handles; decode graph reuse (Q7) wired behind LELEKA_DECODE_GRAPH_REUSE
...
Merge of the speed session's driver part (DeviceRef handles, OriginalVerifier park/rearm, OriginalVerifyCanonicalGdn reseed; ptx manifest and seal plan entries of both sides kept, ledger rows of both sides kept) with the owner loan: the journal's owners are Option behind accessors, lend() uses the same idle precondition as the speed session's require_idle.
DecodeResources implements HeldAssembly for real (park, rearm from the session priors, lend and take_back through the journal loan; every refusal retires the set). OriginalServeStack holds a GraphReuse; decode assemble asks begin first (re-arm, refill queue; or the owners back to record), teardown keeps the assembly for a clean request (drafter end_request_keep_bank, shared-expert pin, park, lend, adopt) or runs the old teardown; retirement releases the drafter before the bank closes, in begin, close and reset_expert_tier. The MoE cache pins the shared experts while a set is held and counts freed window entries (weights epoch). Switch off: begin is not called and teardown runs the old body unchanged.
Tests: GraphReuse policy with a logging probe (switch off touches nothing, key change, moved owners, refused re-arm, lost owners, order release before drop), keepable outcomes, the lifecycle fake scenarios, the GPU-free loan state machine. Not run on a GPU. No speedup claim.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 00:50:19 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
a70955970b
Speed program: nine-process identity harness and CUPTI/group A/B variants for the new verify switches
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 23:42:46 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
96fd240382
pf_ab_job: variants GT/GTP/GTD (prefill GDN tensor-core scan, experimental)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 23:35:27 +01:00
Pavlo Ratushnyi and Claude 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 Ratushnyi and Claude Sonnet 5.5
997aaa5e77
pf_ab_job: variants DT/MC/MT/MCP/X/XT (draft trace, check merge, the group of host/draft switches)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 23:23:56 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
c67912b501
pf_gputest_job: run GPU-ignored driver unit tests from a package test binary
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 23:21:18 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
1128d4acfe
pf_ab_job: variants PF/PA/PFP/PAP (prefix parking fast/async, with profile)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 23:07:03 +01:00
Pavlo Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude Sonnet 5.5
9ec9eca26c
Merge branch 'claude/speed-vs-strata-08143a' into claude/prefill-latency (the step ledger)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 15:23:02 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
c2f7d033dc
prefill: empty-request probe (pf_probe.py, pf_van_probe.sh), pf_ab_job.sh PF_PKG/PF_CLIENT and the chain-pipeline variants, step-ledger rows of the host/prefill part
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 15:22:31 +01:00
Pavlo Ratushnyi and Claude 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 Ratushnyi and Claude Sonnet 5.5
92cffd3b97
Speed program: A/B variants for the side-stream parts (N, E, T and CUPTI CN/CE/CT), layer-phase and doorbell-latency analysis scripts
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 15:02:21 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0c30105d42
Speed program: SIDE_MIXER QSA part (LELEKA_SM120_SIDE_QSA, experimental, off): indexer and query chains of each QSA layer on the two side streams
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 14:49:06 +01:00
Pavlo Ratushnyi and Claude 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 Ratushnyi and Claude Sonnet 5.5
b5b83c13ba
prefill: pf_memstat.sh also samples PSI io and the engine's io counters
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 11:54:35 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
d3481981bc
prefill: pf_memstat.sh also samples PSI cpu and the engine's run-queue wait
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 11:54:04 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
5e0b2e5e38
prefill: pf_holder_window.sh and pf_holder_sparse.sh restart the lab holder with the sparse memfd and record the memory before/after; pf_van_window.sh restarts it sparse
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 11:14:41 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0a294bc73c
prefill: pf_memstat.sh (host and engine-process memory counters per session), pf_van_window.sh (vanilla VANL window with the same counters); pf_codex_job.sh uses the sampler
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 10:55:33 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
8e66a516de
prefill: pf_codex_job.sh keeps the whole-session profile lines (prof.log) and samples host memory counters every 0.25 s (memstat.csv)
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-09 10:52:16 +01:00