Commit Graph
362 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 b63a91b2fa deploy: rtx5090-32g gpu_budget_bytes 30 GiB -> 32,819,404,800 (31,299 MiB) so the dense-slab slot gain reaches the product
Needed for the slot gain: the slabs save physical bytes the Context never charged, so the
budget must rise by about that much. Smoke with this budget: ~11,568 slots, lowest free VRAM
1,035 MiB. Also the systemd unit template, the config and reconfigure tests, and the docs.
Preflight now needs 31,299 MiB free at start (was 30,720; idle 5090 reports 32,110).
Revert by restoring 32212254720. Owner confirmation required before merge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:59:55 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 83df1cfa7f Merge claude/slots-footprint (eef6f598, planner fix) into speed-train3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:12:30 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 eef6f598b4 decode reserve back to 300 MiB (130 stays opt-in), A/B job: budget 31,300 MiB, RUN_TAG, slots-res130 arm; docs: the failed first A/B and its fix
The reserve cut was not the cause (the budget was) but it is unproven on the card; per the conservative rule only the slab ships by default. The job runs
both arms with E2E_GPU_BUDGET 31,300 MiB (the slab's savings need budget headroom; the base is card-bound at either value) and RUN_TAG lets a rerun sit beside the
earlier run directories.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:07:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f762fc5502 Merge claude/draft-tail into speed-train2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:36:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 2d38ffb1c5 Merge claude/slots-footprint into speed-train2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:36:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d6ec7710e4 docs: 5090 per-round budget of the MTP draft and the host tail, the four lossless reductions, jobs and what is not verified
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:33:42 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5326e634af docs: vram footprint page names the alias commit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:29:21 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7823672f04 docs+scripts: VRAM footprint account (ours vs vanilla), slots-footprint A/B job and static-tier identity job
docs/experiments/vram-footprint-5090.md: stage-by-stage account from the speedtrain-ab logs (882 MiB of the 2.27 GiB gap is driver rounding, 324 MiB a second token
table, ~1 GiB the prompt/MoE/MTP side), the three reductions with estimated slots, the candidates not done, what is not verified.
slots-footprint-ab.sh: base-noseed vs slots-noseed (and the alias arm, and a short ledger arm), 100 ms card sampler, FOOTPRINT.txt per run.
slots-id.sh: replay with a static tier and an equal fixed slot count; the footprint changes must not move a logit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:21:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fcb4f02ba9 deploy: RTX 5090 profile sets LELEKA_ORIGINAL_SERVE_SEED=off (placement class, owner confirmation required)
Seed OFF is a profile setting only: the engine default (seed on) and the laptop profile are unchanged. Placement-class change, NOT bit-identical; it does not fit the strict Original
envelope (p99 <= 0.22, max <= 0.43) and neither does the control; it meets the relative criterion on 1,717 teacher-forced rows (p99 0.2500 vs control 0.2278, max 0.7567 vs 0.6751,
flips 2.10 % vs 2.59 %; limits 1.5x control and 2.8 %). Gain: 108.1 -> 137.2 tok/s decode over turns 1-4 of the frozen 245k session (3 runs per arm). Revert: remove the key or set
LELEKA_ORIGINAL_SERVE_SEED=on in the operator environment. Test: only_the_server_profile_turns_the_prompt_routing_seed_off; leleka-deploy tests 125 passed in WSL.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:09:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 21401dd759 docs: decode-gap pages carry a note that their old-corpus numbers are unpaired and superseded
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:28:51 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a741f8e54e sm120: ATTN_DAILY and GU_SWIGLU default off (opt-in); paired e2e A/B showed no measurable gain
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:28:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 463a432a9c Merge claude/stra-258 into speed-train
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:26:42 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4a35f39889 Merge claude/parity-audit into speed-train
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:26:41 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 94af186c8c Merge claude/fix-batch-326-329 into speed-train
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:26:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 046e15fea2 Merge claude/decode-sm120-switches into speed-train
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:26:40 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bfb8bbe2ee docs: 5090 decode at 247k, seed, placeholder profile and the PLE row-cache scan (STRA-245 decode gap, first draft)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:27:36 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 321c233539 sm120 switches: a card below compute capability 12.x never takes a switch; sm86 manifest records the two new PTX as not built (sm86-feature tests pass)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:59:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d9bed432e7 docs: rows 2.1 status and the sm_120 decode switches section (model-free results, pending gates)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:46:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 359b4b5a6a residency: the seed row cap is an experimental setting, not a default (orchestrator: placement-class change, no quality gate yet)
LELEKA_ORIGINAL_SERVE_SEED_MAX_ROWS stays available (default 0 = no cap, behaviour unchanged); the earlier commit's default of 4096 is removed and the docs say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:10:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5ef2c6eb7a residency: no prompt-routing seed for a prefill that routed more than 4096 rows (LELEKA_ORIGINAL_SERVE_SEED_MAX_ROWS, 0 = no cap)
At 45k-247k prompt tokens the seed (default on, keep 0) replaced the ranked profile's resident set by the prompt's top experts and cost 25-35 % of decode on the frozen
245k session: VRAM share 80-85 % against 93-96 % with the seed off, windows 0-20 serving ~240 CPU + ~245 PCIe experts against 23-79 + 13-60, 17.5-20 against 13.4-15.4 ms per round,
107-110 against 132-149 tok/s (turns 1-4; one run each, bin-e2e4, upstream profile). Behaviour for prompts up to 4096 routed rows is unchanged. Placement-only; greedy ids can differ (GPU/CPU rounding).
Not yet measured with this binary; the paired evidence is the env switch run of the same code path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:08:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 402a9f852b docs: parity audit follows the orchestrator decisions (frozen corpus, guard, queue, experimental placement arms, corrected cuBLAS attribution)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:44:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 82fca1f691 docs: 5090 build-flag and settings parity audit, ranked table (STRA-245)
CPU-only audit of causes (b) compiler/optimizer and (c) settings of the decode gap against vanilla Strata 0.2.6. Measured, read-from-source and
estimated figures are labelled; the A/B arms are in scripts/e2e/decode/parity-audit-ab.sh and are queued by the orchestrator.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:40:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7788651476 STRA-328: paired reply-tail equivalence check (plan, tool, tests) and consistent prefix-cache doc
No default changes. scripts/e2e/prefix_tail_equivalence.py scores the `reply` prefix-cache tail live: record an agent session against the reply
arm (history built from its own output, so it resumes from its own reply checkpoint), replay the exact request bodies on a cold server
(--prefix-cache-mib 0), and judge greedy identity of every output item, tool-call integrity of each arm (declared name, call_id, JSON arguments
against the tool schema, streamed deltas == done == item, response.completed), restore evidence (cached_tokens) and, with --control, cold-vs-cold
determinism. Verdicts PASS / FAIL_* / INCONCLUSIVE_*. Two sequential phases because one 5090 cannot hold two serve instances.
Tested on in-process fake servers (15 tests); it has NOT been run against the engine. The plan (scripts/e2e/prefix_tail_equivalence_plan.md)
also records the open numeric-gate decision (q_tail_gate needs teacher-forced captures).

docs/prefix-cache.md: the stale "EXPERIMENTAL: off by default" lines now agree with the measured paragraph, and both say that the
rtx5090-32g profile sets the tail while the live equivalence gate is open.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:32:25 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e809ca7a84 docs: 5090 decode breakdown, vanilla and ours, gap table (STRA-258/259/260)
Per-round component tables of vanilla Strata 0.2.6 (default, DT-only, tail skip off)
and of the pinned ours build over the 5-turn 245k session, the per-component gap
table (all rows INCONCLUSIVE: no A/A series), and the measured causes: request
cold-start burst of expert misses, late-window hit rate, cache size, draft cost.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:05:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 883e0beb2b docs: S0.7b runbook preamble and SC7 index page (STRA-288)
Server access and layout, the wave-1 ours pin (ffb264e0 + bin-e2e4, tree equality
evidence), secrets handling, workload commands and source snapshot hash, model
digest mapping with server sha256 outputs, non-privileged cache-state resets,
machine locks and holder queue, run hygiene SC11-SC14, measured per-arm overhead
of ours on the 5090 (dedicated GPU slot not run: gpu.lock held by STRA-267).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 21:11:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f13c0c4635 Merge claude/stra-247 into Train A (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:31:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fbd4ef8564 docs: S0.7 vanilla comparator arms, classification of upstream default rows, vanilla start-up evidence (STRA-247)
New page docs/experiments/2026-10-28-s0-7-vanilla-arms.md: binary provenance and digest of the
vanilla engine on the 5090 server, the CPU-family lines at the pin (generate.cpp 3485/3687),
one class and a pin file:line for each row of the digest section 1.3, row (b) as a literal
one-variable list, Linux launch commands verified by three start-ups and one short request,
the Windows command marked UNVERIFIED-ON-WINDOWS, the vanilla_cpu_family block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:08:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 d499ab16cf Merge branch 'claude/stra-307' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 16572612f7 Merge branch 'claude/stra-250' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 72976c6312 Merge branch 'claude/stra-249' into claude/integration-stra-245-w1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 20:05:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5b82eb8f45 docs: S6.1 lossy-default audit of the shipped rtx5090-32g and rtx3080-16g profiles (STRA-250)
Read-only audit page: one class and evidence row per profile key (27 + 27),
serve_tuning admitted sets, 51 serve-path and 14 prefill-chunk-path switch
names, vanilla cross-reference to STRA-247, findings for the second wave.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:54:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 20f7abab01 docs: S0.7c predicate dump produced on the server (STRA-307), g++ build, both outputs quoted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:52:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 57fe3c811d docs: S3.5 sm_86 exact-speed-switch audit (STRA-249)
Static table of the 9 nv_defaults.cpp switches, DEQUANT_WIDE and two further
sm_86-keyed defaults vs our counterparts; every speed cell unknown, lossless
labelled by source reading; rows passed to STRA-271.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:50:43 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 486845fa3e docs: S3.1 laptop safety protocol, thresholds schema, bootstrap instance and checker (STRA-256)
Owner-precondition checklist with read-only commands, SC3 stop/resume rules,
schema floors from monitor.sh and lap_run.sh, enforced.power.limit divergence,
exposure budget. No script or setting is changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:49:47 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e94369a1bf docs: S0.7c vanilla predicate dump page (STRA-307), build unavailable: cmake missing on server
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 19:47:33 +01:00
Pavlo Ratushnyi 2457d81d16 Merge branch 'claude/upstream-rest' into claude/merge-opt 2026-10-28 02:38:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ffb264e042 perf(prefill): idle-gap switches on by default after the identity and paired replay gates; docs + job scripts
LELEKA_PREFILL_QSA_PREFETCH, LELEKA_PREFILL_GDN_POOL and LELEKA_PREFILL_MOE_SPAN_CACHE now default on (=0 restores the old path). R hash of every prefill chunk and top-16 rows
identical on 945-codex-crm (108 chunks) and night5-long-256k (34 chunks); paired replay at chunk 8192: prefill chunk time at >= 100k -2.8 % (QSA -6.2 %, MoE -3.5 %, GDN at noise).
Real-stack A/B (rest-e2e-ab2) queued, not yet measured. docs/upstream-port-plan.md section "Closing the host gaps between dependent phases".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 02:38:12 +01:00
Pavlo Ratushnyi b8474d6f71 Merge claude/laptop-vs-vanilla (prefix tail refusal logged and re-judged after memory relief) into main 2026-10-28 00:57:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 03794d5fa8 prefix cache: log why a checkpoint is not taken; re-judge a LowMemory refusal after the working-set trim (turn 2 resumes at the prompt-end tail)
The prompt-end tail and some grid points were refused against the admit floor (soft + reserve) while the host read 8.9 GiB: on Windows the
mapped expert pages count as used, and the periodic trim only runs below the soft floor. Which checkpoint was lost varied from run to
run (turn 2 reused 43,008 / 36,864 tokens). Now the refusal is re-judged once after Governor::available_after_relief. after_prefill /
after_decode always log their outcome with available / additional / floor; the admit line of the prompt-end tail is no longer behind
LELEKA_PREFIX_TRACE. Smoke under the shipped defaults: 7 grid points + tail admitted, turn 2 cached_tokens 45,765.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 00:57:14 +01:00
Pavlo Ratushnyi f02ec7b487 Merge claude/upstream-rest (diagnostics and analysis so far) into main 2026-10-28 00:46:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b50f778b37 docs: smoke of the shipped laptop defaults; correct the claim that tail prompt gave exact reuse (the prefix cache was off in runs b/A/A3)
The smoke (leleka up --native --preset workstation, no tuning flags) reaches ready, prints the cpu/gpu lines and borrows 2016 of 2234
slots at chunk 6144; turn 2 reuses 43,008 tokens (grid), not 45,761. Profile description made accurate; tail stays prompt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 00:24:04 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c97ffd03d7 docs/laptop-vs-vanilla.md: correct the default vanilla wall times in section 11
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:57:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 621d35276d laptop profile and workstation preset: ship the measured defaults (chunk 6144, grid 6144, tail prompt, context 262144), clamp the chunk to the GPU budget
Paired 256k sessions on this laptop (docs/laptop-vs-vanilla.md sections 4, 10, 11, 12): prefill 110 -> 176-290 tok/s, TTFT sum about
2,100 s -> 998-1,083 s. Gates: 6144 changes the rounding order of the prompt path and has NO quality gate yet (q_pair / residual-hash arms
2048 vs 6144 not run); the tail mode and the context move no number. prefill_capacity_for_budget lowers the chunk when the budget cannot
lend it (14+ GiB 8192, 13 6144, 12 3072, else 2048). Tests updated; leleka-deploy 120 unit + e2e pass. Also: section 11 (vanilla with
STRATA_ROUTE_TAIL_SKIP=0: 9.0-13.0 tok/s, wall 1,417 s).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:57:39 +01:00
Pavlo Ratushnyi daa6a4f144 Merge remote-tracking branch 'origin/main' into claude/laptop-vs-vanilla 2026-10-27 23:44:44 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 66cc34f850 rtx5090-32g profile: prefill chunk and prefix-cache grid 8192 by default
Linux / keyless-cuda-gate (push) Skipped
Rust port / port-fast (push) Failing after 16s
Rust port / port-typecheck (push) Failing after 19s
Linux / verify (push) Failing after 33s
Linux / keyless-cuda (push) Skipped
Linux / static-cuda-package (push) Skipped
Linux / hosted-cuda-package (push) Skipped
Linux / linux-static-cli (push) Skipped
Linux / linux-cli-container (push) Skipped
Linux / release-cli (push) Skipped
Rust port / port-oracles (push) Failing after 24s
Rust port / port-linux-tests (push) Failing after 28s
The shipped profile left both at 2048. Paired 256k session on the 5090 (same text, 5 turns): TTFT sum 131 s at 2048, 55-60 s at 8192
(night5 / night6 / rest-full / tune-A), decode unchanged. Tests and docs follow the new default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:44:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4a0e46ce12 scripts/upstream-rest/gap_anatomy.py; plan: GPU idle-gap anatomy of a steady 8192 chunk (CUPTI): 21.7 % idle, host work between phases, launch latency 0.9 %
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:39:13 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1d9899c5c9 docs/laptop-vs-vanilla.md: run A3 (adaptive prefetch policy), GPU power-limited from turn 3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:24:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7fc985e454 prefill_stage: throughput probe of the hyper-connection kernels at T=8192 (1.5-1.6 TB/s: on the traffic floor); plan updated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:11:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 824f3c3842 CPU misses: choose the page-touch pass by measurement (adaptive policy), on top of skip-by-default
Per-expert cost of both modes as moving averages; start with the pass (cold cache), compare after 16 samples each, switch on a 3 % margin,
probe the other mode every 16th group. LELEKA_CPU_PREFETCH=on|off stay hard overrides; Linux keeps the pass. Seven model-free unit tests.
Not run on the GPU (power cap).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 22:56:10 +01:00
Pavlo Ratushnyi 6cec7a92cf Merge remote-tracking branch 'origin/main' into claude/laptop-vs-vanilla 2026-10-27 22:51:56 +01:00