Commit Graph
554 Commits
Author SHA1 Message Date
Pavlo Ratushnyi a4a8d597fe Merge branch 'claude/host-decode-graph-reuse-2' into claude/prefill-latency
# Conflicts:
#	crates/engine-qwen35-cuda/src/settings/serve.rs
#	crates/engine-qwen35-cuda/src/settings/serve_tests.rs
#	docs/experiments/step-ledger.md
2026-11-09 23:17:14 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2e7658567d ledger: Q7 status (code 3e68def28, switch, identity and section delta pending)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:16:24 +01:00
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 Ratushnyi 0c2314677c ledger: job-name map for the parking identity and profile job 2026-11-09 23:09:09 +01:00
Pavlo Ratushnyi 7a549b68e4 Merge branch 'claude/prefill-prefix-park-fast' into claude/prefill-latency
# Conflicts:
#	docs/experiments/step-ledger.md
2026-11-09 23:06:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e65cbe9149 ledger: row B3 fixing (code a88a77b25, LELEKA_PREFIX_PARK_FAST and LELEKA_PREFIX_PARK_ASYNC), the listed spans are nested
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:05:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cca8f3cbab ledger U4/U5: proved-equal by the speed session's read-through
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:03:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 15fea581a7 ledger O7: timeline from verify end to the first draft kernel (CUPTI LEL vs VANL, PROFILE host spans)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:03:21 +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 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 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 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 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
Pavlo RatushnyiandClaude Sonnet 5.5 bfa7b381d3 Speed program lever 1: live-replay identity floor is 10/30, teacher-forced gate queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 812b82ff7e Speed program lever 1: final 10-pair A/B (+1.85% decode) and the frozen-placement identity job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c523f70ce0 Speed program: lever 1 interim (5 pairs) and the identity-gate finding
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 13f3adb482 Speed program: paired A/B tools (lossless sm_120 variant, output hashes, report) and lever 1 queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c4e0f31e9f Speed program phase 1: ranked levers for the decode/prefill gap to vanilla Strata
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:10:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 02dde7f122 STRA-338: naming rules and checklist (docs/architecture/naming.md), domain glossary (docs/glossary.md)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 00:51:42 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ac60df040f STRA-338: architecture gate forbids new mechanical file names (impl_*, *_fn, numbered), baseline lists the 964 existing; rustsplit names modules after what they hold
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 00:50:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4b04c24981 STRA-338: limits gate gets the params metric (max 5 parameters, self counted): scanner, diff gate, census baseline, tests, doc
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 23:54:40 +01:00
Pavlo Ratushnyi e4993d1516 STRA-338 S25: preview execution path behind the default-on cargo feature preview-path 2026-11-07 18:23:52 +01:00
Pavlo Ratushnyi 40896ba217 STRA-338 S24: peel the pure host-side models out of cuda-driver into leleka-cuda-model
New L1 crate crates/cuda-model (leleka-cuda-model, forbid(unsafe_code), depends on leleka-context only) holds:
Error/Result with Display, DenseFormat, RoutedFormat, ProjectionKind (+ layout/alignment/required_modes), ProjectionSpec,
the Bf16/Q5K/Q6K projection shapes, bringup_trace_enabled, and the modules serving_context, host_profile, command_profile,
original_mtp_loader, original_prefill_schedule, qsa_prompt_attention_select, original_expert_slots, native_flash_attn,
s_gemv_legacy, device_arena, mmq_original_prefill_misc (moved with git mv; code unchanged apart from pub visibility and
#[inline] on the tiny cached-switch readers, host_profile::add split into an inlined gate and a cold body).

leleka-cuda-driver re-exports every item at its old path, so no use path in the driver, engine-qwen35-cuda or
native-parity-bench changes. Tests moved with their modules; they read the .cu sources and oracle fixtures of the driver
through driver_source!; the one loader test that needs the driver's session geometry stays in the driver.

Housekeeping: workspace members/default-members, Cargo.lock, architecture.json (L1), hexagonal.md, ci-coverage.json,
check-local.sh, port.yml, linux-tests/run.sh, AGENTS.md. architecture-baseline.json: the source ratchets of the moved code
change crate key (dyn-trait driver 56 to 49 + model 3, env-read 72 to 67 + 5, process-global 110 to 99 + 11), regenerated
with --allow-increase for the new keys only; per-pattern totals do not rise. limits-baseline.json is unchanged: no moved
function is over a limit.
2026-11-07 17:40:24 +01:00