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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 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
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 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
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
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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi and Claude 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 Ratushnyi
c0f6888310
STRA-338 S21: the pure part of the Anthropic Messages adapter moves to leleka-gateway-domain
...
messages/request.rs (the Messages request types and Request::into_responses, CountRequest, text and block helpers) and
messages/reply.rs (message, stop reason, tool_use block, usage, the error type table and envelope as functions of the
status number) are in crates/gateway-domain. strata-control keeps the route layers, the SSE adaptation and the HTTP errors;
error_value(StatusCode, ..) is a wrapper over the domain function. The adapter tests stay where they are and pass on the
moved code (same test ids). The long functions are added to docs/architecture/tech-debt.md, the continuation is recorded in
docs/experiments/stra-338-gateway-track.md (90 golden cases; an earlier commit message says 96, which was a miscount).
2026-11-06 01:29:57 +01:00
Pavlo Ratushnyi
eecbfce60d
STRA-338: integrate the engine track (kar-off-ab base, S5a, S5b, S13 ratchets) into the hexagonal base; the baseline is recomputed on the merged tree (growth only in the seven kar-off-ab files)
2026-11-05 21:51:28 +01:00
Pavlo Ratushnyi
705125f858
STRA-338 S21: Clock in three more handlers, gateway-track report and ports doc
...
server_api::{ensure_loaded, model_busy, load_post} stamp last_activity from state.services.clock instead of
tokio::time::Instant::now() (instant-now:strata-control 34 -> 31; SystemClock returns the same value). The baseline is
tightened. docs/experiments/stra-338-gateway-track.md records the commands, the per-step test-outcome comparison (Linux:
597 ok before, 615 ok after, 0 changed, 0 missing), the gate movement and what was not done;
docs/architecture/gateway-ports.md shows the AppState groups and the domain crate.
2026-11-05 20:49:47 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
5cc2257ea7
kar-off-ab: results page, codex/browser evidence, cmp_report knows LELK/LELG
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-05 16:30:18 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
0a30049913
codex-compare: results page (18 cells, three arms), browser check outcomes, gap-clustering probe
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-05 08:22:15 +01:00
Pavlo Ratushnyi and Claude Sonnet 5.5
01e0504942
codex-compare: VANL (vanilla, lossy defaults off) is the reference arm; paired differences against it
...
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-05 02:32:10 +01:00