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>
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>
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>
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>
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>
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>
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>
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>
The pass (PrefetchVirtualMemory on 3 ranges per missed expert, then a touching phase) ran before the compute and took 70-75 ms of a
165 ms window; the compute faults the pages in itself, overlapped with its work. LELEKA_CPU_PREFETCH=on|off, and
LELEKA_CPU_PREFETCH_OFF_FILE / LELEKA_NO_TRIM_FILE for A/B inside one engine. scripts/e2e/decode_ab.py: decode-only A/B at depth.
docs/laptop-vs-vanilla.md section 7.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Keeps the last layers' pages cached across chunks of a cyclic scan; only which pages the cache keeps changes.
docs/laptop-vs-vanilla.md: first draft.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Brings the Rust/CUDA port of the Strata mode17 serve path together with the
CPU/iGPU/NPU gpt-oss runtime that main gained meanwhile.
Control plane: the Qwen tokenizer is the implementation behind the Qwen35
variant of codec::TextCodec (qwen(), encode_prompt() widen the trait; QwenCodec
derefs to the tokenizer), so control-token marks, images, chat template, the
runtime backend and vision keep their behavior, while the gpt-oss/Harmony path
and the worker pool keep main's. Config carries the union of fields; extra_workers
is rejected together with runtime, lazy_load, idle_unload_s and vision; the
gpt-oss family refuses top_k/min_p/penalties (its GEN line has no such keys).
leleka-kar-codec takes f16_bits_to_f32 from leleka-quant-core (identical code).
Workspace members and default-members are the union of both sides.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* The batch-copy fault: bisect in the engine, the model-free matrix, the fix, how to repeat the check on a new driver.
* Why it is not STRA-235 (different fault, different path) and the 5-minute negative result of the registered-file-mapping DMA stress
(205,235 copies, 27,248 working-set trims, 0 wrong bytes).
* Plain PCIe shares are slower than the CPU pool over the pageable bank (profile: pool.publish_plan 10-11 s of 27-31 s); locked-only shares
are about +8 % in a 3-rep paired A/B (unset 6.73/6.79, 0.45 5.02/4.79, 0.6 locked-only 7.51/7.14 decode tok/s, prefill unchanged);
recommendation: keep the default, do not change the preset.
* pcie_copy_gpu_bandwidth (ignored GPU test, prints a measurement): pageable 8.1-8.9 GB/s with the call being the copy, page-locked
11.6-12.4 GB/s at 4 us per call.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The retry of a refused verify window failed on the RTX 5090 with Failed(InvalidDimension): a window that completed and was never
committed keeps the driver verifier's window_ready flag (run refuses the next window with InvalidQwenShape) and its armed QSA journal.
A rerun that only cleared that completed but differed from the refused window, deterministically: the window also advances the PLE
history row by row (only the commit graph sets it) and overwrites the index tails and the spare pooled row.
OriginalSpecEngine::discard_window (port, OriginalVerifier::discard_window, OriginalVerifyQsaJournal::discard_window) runs after the
two checkpoint restores; the journal writes back the index state and the PLE history it read when the window began
(set_window_snapshots, only when the guard has retries). The fake engine refuses a window while a completed one is outstanding, so
the retry tests fail without the take-back. Live, guard on, deterministic arm: G1/G2 equal G0 in all 546 window blocks and 711 forced
rows, every rerun bit-equal to the refused window; default tier: all runs rc=0. Default stays off.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The sealed chain_window assets conflicted: bringup sealed a new chain_window.ptx (entry chain_gr_down_t2w8_nb4, c9ccd81) while upstream-p0
clamped the q8_1 scale and sum in the opt-in chain swiglu+quantize entry (4654f01, plan row 1.1). Resolved from the bringup sealed file:
only chain_swiglu_quant_kernel was replaced (scripts/q8/splice_ptx.py), every other byte stays as sealed; the entry text is byte for byte what
scripts/q8/rebuild_quantizer_ptx.sh compiles from the merged chain_window.cu (nvcc 13.2.86, checked on the server).
Regenerated, not merged by hand: the pin in original_verify_window_chain.rs (scripts/q8/repin.py), and the sm_86 companions, MANIFEST.json and
sm86_table.rs (scripts/gpu-bringup/sm86_assets.py build: 132 companions, check OK). The six other quantizer PTX and their companions equal
upstream-p0's. docs/upstream-port-plan.md: rows 0.1-0.5, 1.1, 1.2 from upstream-p0, row 0.6 from bringup, merge note on row 1.1.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Route tail skip: +15.2 % decode on the 9e3 replay (3 paired repetitions), quality gate FAIL (stays an experimental flag, default off).
Callback affinity: real in the microbench, not reached by our code. Row 2.3: three of four items do not apply, worker plan ported opt-in.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- arch_ptx::stream_k_off(): one decision for the grouped MoE, the MTP prefill record, the resident MMQ, the Original profiles and the
stream-all issuer; an sm_86-class device launches one block per tile unless LELEKA_MMQ_STREAMK=1. Native sm_120: untouched.
The first real long session failed in the MTP FC hidden check of the draft record, which still planned the 48-block grid.
- diagnostics (off by default): LELEKA_FORCE_SMS, LELEKA_MMQ_STREAMK_FILE, LELEKA_RING_SERIALIZE_COPY_FILE / _CMD_FILE,
LELEKA_CHUNK_DRAIN / _FILE.
- docs/windows.md: the third STRA-235 note (the 224k session on the laptop, the A/B, the 5090 forced-48-SM runs, what was read and found).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A verify window whose logits or stage outputs are not finite (NonFinite, e.g. the laptop's NonFiniteMmqOutput, STRA-235) used to end the
request after the controller restored its checkpoints. With LELEKA_ORIGINAL_SERVE_NAN_GUARD=on the same restore is followed by running the
round again (up to 2 times by default); any other error, a failed restore, or a window that stays non-finite fails as before. Every healed
or unhealed window is logged, counted in the spec stats and published in the telemetry document. LELEKA_ORIGINAL_SERVE_NAN_INJECT=n[xK]
exercises the path on a good window. Default off until the live replay (queued) shows no change of normal output.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>