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>
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>
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>
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>
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>
Live Codex CRM: median prefill 2265 -> 706 ms, p90 3620 -> 1064 ms, decode unchanged; teacher-forced agreement
(job 9d4) is within the noise of a chunk-cut change (control 9d5). docs/prefix-cache.md has the numbers.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Expert tier auto-sized per layer from data/expert-profile.bin (shipped routing profile, default digest), spec_min_p 0.5 (new profile field -> --spec-min-p), 30 GiB GPU budget, memory reserve 2 GiB. Measured in the real Codex sessions (docs/e2e-run.md 7d): weighted decode 129-130 tok/s vs 72-75 with the old profile.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- backend_original_serve_memory_smoke.rs: scenarios inventory / soak / shed / reader and a model-free archive guard probe; floors
moved next to the memory the host has now so the shed path runs far from the real limit; abort guard at 15 GiB.
- Governor::set_floors; stack prefix_bytes / prefix_budget_bytes accessors.
- leleka-deploy: Profile.memory (prefix_cache_mib, floors, reserve, share, lock, heal, resident budget) -> engine args and
LELEKA_MEMORY_* environment; built-in profiles carry it; tests.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Original serve Load never admitted an expert source (the serve smokes call
load_resident_expert_source themselves), so the stack's prompt arena failed with
InputRead on the first real Load through leleka-inference. leleka-inference gains
--expert-source resident|mapped; backend.rs admits the chosen bank before the
driver. leleka up passes it per profile and the supervisor stops waiting when the
load operation is FAILED/INDETERMINATE.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
New crate leleka-deploy (binary leleka): idempotent one-command deployment with
preflight (driver, sm_120/sm_86, VRAM/RAM/disk, WSL2, cuBLAS 12, memfd), memory
profiles, plan/dry-run, stamped asset steps, systemd unit, and a native supervisor
that seals the KAR archive itself and hands it to the engine (no Python holder).
leleka-inference gains --kar-archive-file for the low-RAM read-only archive form.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>