Commit Graph
134 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 d635a73c9a Enable LELEKA_SM120_DOWN_SUB16 (D1) and HITS_IN_COMBINE (D2) in the 5090 profiles (identity and probes PASS, window deltas); D3 WAIT_M_ROWS is a measured loss, stays off; ledger
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 16:52:52 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 622c16e15d Enable LELEKA_SM120_COMBINE_VEC4 (S11) in the 5090 profiles (identity PASS, window delta -0.016 ms a graph); S9 and U5a stay off, ledger
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 01:25: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 RatushnyiandClaude Sonnet 5.5 079a8f3a03 merge ring prefetch; drop the ring diagnostics that added debt (skip-after-N, route trace); chain_gate in its own file; width
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 20:45:04 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1799aee147 profiles: the expert stream starts at 1536 rows in the 5090 profiles (chunk hashes identical, prefill.read -180 ms at 1.5-4k tails); ledger Q4/Q5 ring findings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 20:18:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b56e5afb58 Speed program: fused commit graph ON in the three 5090 profiles (identity P2/P3 PASS, section 509 -> 125 us); ledger closes S6/O11
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:46:11 +01:00
Pavlo RatushnyiandClaude 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 RatushnyiandClaude Sonnet 5.5 62695ebd4b profiles: check merge, parking fast and decode graph reuse are on in the 5090 profiles (bitwise identity PASS)
Teacher-forced identity on night5-long-256k (job host-draft-switches-teacher-forced-identity, A/A floor): top-16 logprob rows 2057 of 2057 and draft trace 1036 of 1036 lines identical for each switch against shipped. Section deltas: Q7 -97 ms per request, B3 FAST -2.0 ms, O8 step graph 114 to 105 nodes. The profile allow-list accepts LELEKA_PREFIX_* and LELEKA_DECODE_*. Not on the laptop profile (the check-batch asset has no sm_86 companion).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 05:26:56 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 22d7e9d824 prefill: the loan ladder (LELEKA_PREFILL_LOAN_TIERS=1) is on in the shipped 5090 profiles
Identity: chunk residual hashes equal (PREFILL-R, jobs id1-id4). Paired A/B n=10 on the sparse holder:
session TTFT sum -3.0 s +-0.3, median -104 ms per request, <= 2048 new tokens -154 ms (19 of 19 faster),
above 2048 tokens -10 ms. The engine default stays off; the profile allow-list accepts LELEKA_PREFILL_*.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:58:37 +01:00
Pavlo RatushnyiandClaude 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 RatushnyiandClaude Sonnet 5.5 fa21dfd34d revert the ladder-profile deploy test files swept into the merge (they wait for the ladder A/B; patch kept)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:18:02 +01:00
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 dd73d3c892 Speed program: wrap a doc line (width 120)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 21:20:31 +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 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 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 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 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 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 3d38a23cc3 Merge branch 'claude/par-p01' into claude/hexagonal-finish-14ee3a 2026-11-08 01:30:29 +01:00
Pavlo Ratushnyi 27b3038904 STRA-338 params p01: split native_pack/dense_files.rs (pack_publication) and deploy e2e harness.rs (harness/up_plan) under 400 lines 2026-11-08 01:30:18 +01:00
Pavlo Ratushnyi 78cda328cc Merge branch 'claude/par-p01' into claude/hexagonal-finish-14ee3a 2026-11-08 01:02:11 +01:00
Pavlo Ratushnyi 672e4bfc72 STRA-338 params p01: deploy, gateway-domain, gateway-text, desktop-core and the rest of control-plane to at most 5 parameters; domain names for the new structs 2026-11-08 00:59:37 +01:00
Pavlo Ratushnyi 4cecb118ac STRA-338 params p02: native-cpu-expert, cpu-sys, cpu-kernels, cpu-worker, obs down to 5 parameters 2026-11-08 00:36:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5ba57146ed STRA-338: deploy USAGE wide lines wrapped with string continuations (cooked bytes identical), archcheck python within the limits, baselines at zero
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 17:37:52 +01:00
Pavlo Ratushnyi a830d8f110 STRA-338 size-fn2: check_* that act are named for what they do (cancel_stalled_generation, probe_host, fail_if_api_exited, fail_if_engine_exited, read_assistant_text, detach_if_unattached), helpers named verb + object (report_stopping / report_engine_lost leave the Flow to the caller, count_failed_start, answer_refused_start, require_free_endpoint + spawn_worker_process, pin_engine_gpu, describe_load_verdict, run_worker_action, open_watch_stream, ...), the cold path reuses catalog_changed, the three Supervisor types are AttachLoop, SessionSupervisor and ServiceSupervisor; behaviour unchanged 2026-11-06 23:07:59 +01:00
Pavlo Ratushnyi b3fcb3cf76 STRA-338 size-fn2: restore the newline of the e2e_windows reconfigure message and the single-line nvidia-smi command of the remote probe (payload byte-identical to cbc1a9587) 2026-11-06 22:15:49 +01:00
Pavlo Ratushnyi 4b72ddf054 STRA-338 size-fn2: gptoss softmax_inverse_denominators renamed softmax_scores_in_place (it rewrites the scores; doc says so; arithmetic and attributes untouched), store_rotated_qkv split into rotate_queries (pure) and store_rotated_kv (cache write); stale docs of the cpu-sys VNNI block helpers and deploy recover_engine fixed 2026-11-06 21:30:02 +01:00
Pavlo Ratushnyi acc7fbf9b0 STRA-338 size-fn2: single-responsibility check helpers in leleka-deploy, leleka-serving-policy and leleka-experimental-ref tests (two-action helpers split, one verb+object name each; test ids and assertions unchanged; four test functions kept within 30 lines by extracting a helper) 2026-11-06 21:05:12 +01:00
Pavlo Ratushnyi 0ea7fa75ae STRA-338 size-fn2: leleka-deploy lines within 120 columns (307 -> 33 wide lines; the 33 left are the byte-exact lines of the --help text USAGE that scripts/release/package-5090.sh parses); comments reflowed by paragraph, long messages continued with a trailing backslash (cooked bytes unchanged), JSON macros re-wrapped, URL/raw-string constants split with concat!; reconfigure_by_restart helper keeps the function within 30 lines 2026-11-06 20:01:55 +01:00
Pavlo Ratushnyi 5198b90da5 STRA-338 size-fn2: leleka-deploy test functions within the limits (64 -> 0 test functions over 30 lines; helpers are not tests, test names, ids and assertions unchanged; e2e_windows checks moved to tests/e2e_windows/checks.rs) 2026-11-06 19:48:01 +01:00
Pavlo Ratushnyi 6d64ad9919 STRA-338 size-fn: leleka-deploy: split the persisted-numbers check 2026-11-06 18:58:17 +01:00
Pavlo Ratushnyi 0b20e0250f STRA-338 size-fn: leleka-deploy: reconfigure e2e checks in their own module 2026-11-06 18:55:05 +01:00
Pavlo Ratushnyi 01ff42428e STRA-338 size-fn: leleka-deploy: remaining e2e and unit test helpers 2026-11-06 18:53:20 +01:00
Pavlo Ratushnyi 6db99bb45a STRA-338 size-fn: leleka-deploy: more e2e helpers 2026-11-06 18:43:38 +01:00
Pavlo Ratushnyi 6f225ee466 STRA-338 size-fn: leleka-deploy: e2e tests split into scenario helpers, wide messages with named arguments 2026-11-06 18:36:34 +01:00
Pavlo Ratushnyi e8d49f89ed STRA-338 size-fn: leleka-deploy: more test helpers 2026-11-06 18:01:07 +01:00
Pavlo Ratushnyi 05398b9a3f STRA-338 size-fn: leleka-deploy: no new dyn, remaining helpers within 30 lines 2026-11-06 17:58:59 +01:00
Pavlo Ratushnyi 0b89649e6b STRA-338 size-fn: leleka-deploy: wrap comments and long literals, split the last helpers over 30 lines 2026-11-06 17:53:11 +01:00
Pavlo Ratushnyi 6d50d8a478 STRA-338 size-fn: leleka-deploy: split the longest unit tests into checks, remaining prod functions within 30 lines 2026-11-06 17:46:28 +01:00
Pavlo Ratushnyi cdf963ea4a STRA-338 size-fn: leleka-deploy: further helpers for the functions still above 30 lines 2026-11-06 17:35:39 +01:00
Pavlo Ratushnyi 28cd67752c STRA-338 size-fn: leleka-deploy: winfront, wsl paths, units, http, status, doctor, logs, steps, profile and fake runtime split into stage helpers (second batch) 2026-11-06 17:23:39 +01:00
Pavlo Ratushnyi e0f43a59af STRA-338 size-fn: leleka-deploy: supervisor, startup, reconfigure, plan, cli flags, logview, steps, facts, winservice split into stage helpers (first batch) 2026-11-06 17:07:49 +01:00
Pavlo Ratushnyi 5628289171 STRA-338 size-deploy: merge origin/claude/hexagonal-integ (d0b2b633b); architecture baseline re-run with --update-baseline, limits baseline re-run (allowlist 349 entries) 2026-11-06 15:55:35 +01:00
Pavlo Ratushnyi b495f972d9 STRA-338 size-deploy: Profile::validate and resources::compute within the limits (one function per rule / per sizing stage, messages unchanged); oversize files 0; fn>30 101/89, cx>10 48/0, nesting>4 7/0, wide lines 305/63; 220 tests, ids and outcomes unchanged 2026-11-06 15:52:19 +01:00
Pavlo Ratushnyi 38e570872a STRA-338 size-deploy: mechanical child modules renamed after what they hold, export lines compacted, split recorded in docs/architecture/size-split-deploy.md; oversize files 0; fn>30 103/89, cx>10 50/0, nesting>4 7/0, wide lines 339/63; 220 tests, ids and outcomes unchanged 2026-11-06 15:46:38 +01:00
Pavlo Ratushnyi 95676884b4 STRA-338 size-deploy: every .rs file of leleka-deploy within 400 lines (15 oversize files split into named modules; preflight and plan steps decomposed into one function per check/step); crate census oversize files 15 -> 0; fn>30 105/89 -> 103/89, cx>10 53/0 -> 50/0, nesting>4 7/0, wide lines 387/67 -> 339/63; 220 tests, ids and outcomes unchanged 2026-11-06 15:38:57 +01:00
Pavlo Ratushnyi d0b2b633b8 STRA-338: the archive-pin test of leleka-deploy reads the child file that now holds the pinned profile tests 2026-11-06 15:23:41 +01:00
Pavlo Ratushnyi 331e28c265 STRA-338 size-deploy: e2e lifecycle covers KarSource::None (the test target did not compile); crate census unchanged (oversize files 15; fn>30 105/89, cx>10 53/0, nesting>4 7/0, wide lines 387/67) 2026-11-06 15:14:16 +01:00