Commit Graph
2301 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 3e68def28e decode graph reuse (Q7), part 1: LELEKA_DECODE_GRAPH_REUSE (off), key and policy tested on the lifecycle fake, shared-expert pin and weights epoch; assembly borrow and re-arm API documented as blocked
DecodeGraphKey (shape, tier, pcie mode, cluster top-k, weights and owners epochs) and GraphReuse hand a kept assembly out only for an equal key after Reusable::rearm accepted the new request's seed; anything else retires it and records. The lifecycle fake bakes key and seed into its graph set and fails a stale replay: kept and re-recorded sets give the same text, each key input forces a re-record, a refused re-arm and a failed request do not replay. MoeWeightCache gets pin_for_window / unpin_window / weights_epoch (not wired). With the switch on, open states that the stack cannot keep the graphs yet; every request records as before.

Not done: the assembly still borrows the stack (needs handles instead of &'a DeviceBuffer in original_verify_window_{moe,gr,proj,qsa}), the QSA owner loan and the MTP binding follow it, and the verify bank's re-arm API is the speed session's. Exact changes in docs/experiments/decode-graph-reuse.md. No speedup claim.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:16:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 11bdb54666 prefill: the MMQ identity row table gets the stream-k fixup's over-read margin (ledger U3, upstream f225844d1); results unchanged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:57:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 79a7d5ed05 ledger: upstream items U1-U5 (GDN tensor-core scan, batched PLE, MMQ row-table margin, flag B, adaptive-copy range) checked against our port
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:53:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4130f9c366 decode graph reuse (Q7): design note; cause is ownership, needs a re-arm API in the verify bank
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 22:51:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7f2612cd42 ledger: rows of the host/prefill part labelled by meaning, queued jobs renamed (job-name map), vanilla probe removed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:54:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d87d1384fd profile: sub-spans of the prefix-cache KV and index export (sync, allocation and zero fill, copy)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 15:25:25 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9ab391e8dc ledger: rows A1-A3, Q1, Q4-Q5, O9 updated and B3-B5 added for the host/prefill part (one register)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 15:23:24 +01:00
Pavlo RatushnyiandClaude 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 RatushnyiandClaude 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 RatushnyiandClaude Sonnet 5.5 1ab37e4082 decode: LELEKA_DRAFT_CHAIN_PIPELINE (opt-in): the MTP chain steps of a greedy draft with min_p 0 are enqueued back to back and read after one stream drain
The sequential chain pays a stream sync, two synchronous flag reads, the cell record write and the graph launch between every two steps (about 114 us x 2.4 steps per round in the CUPTI window of request 29). With min_p 0 the depth is known up front, the cell records are static and the token of step j reaches step j+1 on the device, so the steps are enqueued behind the round graph and the host reads once. The step graphs of this path (OriginalGraphKey::MtpChain) are recorded without the tail flag reset and the prefix status reset, so a numerical fault of any step stays set until the single flag read after the last step. Same kernels in the same order; typed setting draft_chain_pipeline, policy field chain_pipeline, off by default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 15:11:58 +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 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 RatushnyiandClaude Sonnet 5.5 255159a89b Speed program: shared expert on a side stream (LELEKA_SM120_SIDE_SHARED, experimental, off); SideBranches DTO for the three side-stream parts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 14:56:05 +01:00
Pavlo RatushnyiandClaude 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 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 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 RatushnyiandClaude 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 RatushnyiandClaude 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 fea18c6413 Merge branch 'claude/single-copy-ram' into claude/prefill-latency 2026-11-09 11:13:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9c77d603d7 single-copy RAM: refuse a full sealed memfd for a ple_only profile, lab holder seals sparse, design page
The 2026-11-09 server reading (Shmem 58.6 GB, MemAvailable 7-8 GB) is the lab holder's full 55.3 GB memfd
(single-copy-holder.sh sealed without --sparse-ple), not the sparse memfd of leleka up. The supervisor
now checks the allocated bytes (st_blocks) of an inherited descriptor against the profile and refuses a
ple_only profile on a full copy (LELEKA_ALLOW_FULL_MEMFD=1 overrides, logged); the holder script seals
--sparse-ple by default (HOLDER_MEMFD=full keeps the old form). Design, candidates and the ordered
measurements: docs/design/single-copy-ram-2026-11-09.md. No GPU/server run; identity/A-B pending.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 11:13:17 +01:00
Pavlo RatushnyiandClaude 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 RatushnyiandClaude 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
Pavlo RatushnyiandClaude Sonnet 5.5 91481f04f8 prefill: pf_codex_job.sh, a full Codex session block of the prefill-latency package (own state and prefix; the engine environment per variant)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 01:50:48 +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 a6d1a19786 prefill: the copy ring accepts a schedule with more slot events than the arena ring (the 512-row loan rung carves the 8-slot ring; its chunks failed with InvalidProjectionShape)
The persistent OriginalMmqCopySchedule is opened with the full prompt layout's ring (384 events); Ring::new demanded schedule.ring_slots() == arena slots.
Slot i is i % arena slots, so the surplus events stay idle.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 00:08:39 +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 9f1fb1878b prefill: pf_ab_job.sh variant LT (ladder with the bring-up trace)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 23:11:35 +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 3ec79f9d98 Speed program: CUPTI kernel-window variants (ours CL, vanilla SPD_CUPTI) for the per-kernel comparison at 60-100k context
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:46:30 +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 ae118cd9c3 prefill: pf_ab_job.sh checks the package checksums from pkg/bin (the names are relative)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:30:14 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cac5802fe6 Speed program: spd_ab_job.sh takes SPD_BIN (a different binary for both arms)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:22:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9d130fd380 Speed program decode misses: experimental LELEKA_ADAPT_TIE_SPREAD (equal-gain swaps share the per-round cap across layers), tests, variant X
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:20:18 +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 b2797d239f prefill: A/B driver for the fixed per-request prefill latency (own package, state and prefix; variants A/L/AR/LR/P/LP)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 21:02:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6073ce00d4 prefill: the prompt executor accepts an arena smaller than its capacity (the loan ladder's smaller rungs failed every chunk with InvalidDimension)
The executor demanded arena.capacity() == its own capacity, so every rung of the loan ladder
(LELEKA_PREFILL_LOAN_TIERS=1) was refused (docs/prefill-throughput.md, jobs p34/p35: Failed(InvalidDimension)
on every request). A chunk now runs in any arena that holds its rows and does not exceed the executor's
capacity. Pure predicate with unit tests; the ladder stays off by default until its identity gate and A/B.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 20:58:04 +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 53b1ed39bf Speed program: tier-policy screening variants W1-W4 and a complete unset list in spd_ab_job.sh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 20:50:11 +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 04287257f2 Speed program: split the profile kernel test under the 30-line limit; limits baseline lowered
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 14:34:16 +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 b686f6ab75 STRA-338: rename the 854 mechanically named modules (impl_*, *_fn, *_<N>) after what they hold; mechanical_names census 854 -> 0
git mv of the files and of the module directories next to them, mod declarations, #[path] attributes and
the paths that name the modules, rewritten by scripts/dev/rename_mechanical.py from a reviewed name table.
Two files lost one to two lines so the 400-line limit holds again (qsa_prompt_index, original_verify_expert_probe).
limits-baseline.json: test fn_lines 0 -> 1 is --allow-increase for crates/deploy builtin_profiles.rs:149 (37 lines,
the speed-vs-strata session's file, not touched here); the prod params census falls 108 -> 1 (w_launch, extern C ABI).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:43:56 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8def0e96e2 STRA-338: scripts/dev/rename_mechanical.py plans and applies the rename of mechanically named modules
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:26:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 418fac7b1d Merge claude/par-q02 (STRA-338 params: original_verify_* and expert cache/stager)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 12:59:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 68db485561 Merge branch 'claude/hexagonal-finish-14ee3a' into claude/par-q02
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 12:59:12 +01:00