Commit Graph
164 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 4654f01b15 q8_1 scale and sum stay finite in the sealed quantizers (plan 1.1; upstream 2b726ba6, f6601bf8, 7a0e3023, e372d4ff)
A q8_1 block stores d = amax / 127 and the sum of its 32 activations as fp16: one massive activation (amax > 8.3 M, or a sum past 65504)
rounded to inf and the dot products then read inf * 0 = NaN (NonFiniteMmqOutput here, "!!!!" upstream). The quantizers now clamp both
to the largest finite half and keep the codes inside int8 (strata/kernels/q8_1_finite.hpp); a NaN input still gives a NaN sum.
Finite blocks are stored bit for bit as before.

Sites: head_quant (mtp_original_full_head_native, native_head_native), mtp_original_quantize (mtp_original_tail, mtp_original_full_checks),
quantize_q8_1_kernel (mtp_original_full_head_iq, native_head_iq: the routed experts' input and SwiGLU output) and the opt-in chain
swiglu+quantize (chain_window). Not taken: the MMQ prompt quantizers (ggml quantize_mmq_q8_1, mtp_prefill_q8), which upstream did not clamp.

The sealed PTX are patched entry by entry (scripts/q8): three were built with CUDA 13.0.88, which is not installed, and a recompile
renames the hashed anonymous-namespace entries; only the quantizer entries change, every other byte is the sealed one. Pins, the seal
plan digests and the sm_86 companions (sm86_assets.py build) follow. tools/q8-probe compares old and new PTX on the GPU.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 18:27:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 89215e83d2 Check that no parity harness trusts a --dump-logits header; add an offline size-based reader guard (plan 0.2; upstream 504579da)
No harness of ours reads the Original's logits dump (they use STRATA_LOGPOS rows, residual dumps and token outputs); the manual recipe in
docs/gpu-bringup.md now says to check the file first, because the pinned reference build predates the fix and writes a lying header on
native packs. scripts/quality/logits_dump_check.py refuses such a file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 17:21:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 885bfb457e docs/windows.md: measured outcomes of the real runs on this laptop (WSL2 bridge and native engine), findings, fixes; stage-model.ps1 drops the robocopy progress when redirected
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 17:04:05 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8623932c98 Windows round 2: leleka service (Task Scheduler / user unit), doctor names what is missing and the fix, stage-model.ps1 and fetch-cublas.ps1, native supervisor end-to-end test with the fake runtime, WSL find-binary fix, docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 15:53:31 +01:00
Pavlo Ratushnyi 4965126d14 Merge branch 'claude/windows' into claude/port-gpu-bringup
Rust port / port-fast (push) Failing after 10s
Rust port / port-typecheck (push) Failing after 10s
Rust port / port-oracles (push) Failing after 16s
Rust port / port-linux-tests (push) Failing after 22s
2026-10-25 13:15:34 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e77c98d3f2 Windows: release build recipe (scripts/windows/build-release.ps1), engine tests follow the mapped-only default, Linux-only errno and journal-lock tests gated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:57:21 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 87e2633afe engine/strata: bring the Strata subtree to upstream 41cf05a0 (engine 0.1.50) with the local patches re-applied
Documented tree replacement (the history has no git-subtree metadata): 3-way merge of the old subtree
(570201a:engine/strata) against upstream 41cf05a06a25dd29103b7b27a2279a3f60c21876 (2026-10-25), merge base =
the old pin d9ab8435 (tree-identical to upstream 5b734e42; d9ab8435 is not an ancestor of upstream main).

Local patches re-applied by hand where they conflicted (15 files): STRATA_CUDA_STATIC profile, experimental KAR
experts and KAR PLE arms, keyless V-only arm (now beside upstream's K8V4 hybrid KV and fused norm+rope). Details,
conflict table and left-out files are in docs/upstream.md.

Left out (weights, captures, logs, media): new bench/results (2022 files), binary media and app assets (61),
docs/work/evidence (24), *.bin / *.gguf data files, and the 7 files the first import already left out.

scripts/build-cpu.sh: build the 11 CPU tests upstream registered since the old pin (they ran as "Not Run").
Checked: build-cpu.sh 16/16 ctest in WSL; sm_86 CUDA objects of the patched files compile, also with the KAR
macros on. No GPU run, no quality gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:49:15 +01:00
Pavlo Ratushnyi c3d4cce4e6 Merge branch 'claude/adaptive-spec' into claude/port-gpu-bringup
# Conflicts:
#	crates/leleka-runtime/src/backend_original_serve_replay.rs
#	crates/leleka-runtime/src/backend_original_serve_smoke.rs
#	crates/leleka-runtime/src/qwen_forward/original_spec_controller.rs
2026-10-25 02:51:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cf7a62e69d q_tail_gate: judge the tail arms against a chunk-cut control as well as the Original envelope
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 01:41:18 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ba9474b9b0 replay: LELEKA_REPLAY_FORCE teacher-forces every request along its recorded tokens; scripts/quality/q_tail_gate.py compares the tail-checkpoint arms against the grid-only arm
Rust port / port-fast (push) Failing after 8s
Rust port / port-typecheck (push) Failing after 8s
Rust port / port-oracles (push) Failing after 14s
Rust port / port-linux-tests (push) Failing after 19s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 23:11:06 +02:00
Pavlo Ratushnyi 897f2aa476 Merge branch 'claude/chain-kernels' into claude/port-gpu-bringup 2026-10-24 20:54:12 +02:00
Pavlo Ratushnyi 1344cd807d Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-24 11:03:25 +02:00
Pavlo Ratushnyi b06de93dbc docs/e2e: complete reference-config Codex sessions (943d, 945d); run-codex.sh does not fail when the browser checks run elsewhere 2026-10-24 11:03:12 +02:00
Pavlo Ratushnyi 04b2b038b0 Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-24 06:47:48 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e5924c1099 fix(runtime): scalar draft-KV fallback checks its weights against the retained MTP owner, not the MoE cache
With --mtp-rt-dir the retained MTP weights come from the RT bank, whose buffers are not the pinned pack's MoE-cache matrices, so the pointer
identity check of record_original_scalar_draft_kv always failed (InvalidProjectionShape -> CudaExecution -> response.failed) on every
prompt that takes the short-tail scalar fallback (first request of a Codex session; a resumed prefix with a tiny tail). Found by the reference-config
Codex reruns 943c/945c, which died on it; the first 23 requests of 945c decoded at 138.8 tok/s weighted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 05:08:48 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 beafc0a6bc spec: adaptive window is the default of the serve stack (LELEKA_SPEC_ADAPTIVE=off or LELEKA_SPEC=N selects the fixed window); default check job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:20:02 +02:00
Pavlo Ratushnyi acabd3fc82 Merge branch 'claude/cp-latency' into claude/port-gpu-bringup 2026-10-24 02:00:07 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 254425d4b0 cp-latency: results and method (docs/cp-latency.md), run-ab.sh, replay --store
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:59:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ea80310017 cp-latency: schema-validation memo, live A/B client and report, live job 9f1 (real engine, baseline and current API servers on one engine)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:45:54 +02:00
Pavlo Ratushnyi 88f74a323d Merge branch 'claude/deploy' into claude/port-gpu-bringup 2026-10-24 01:44:35 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 0003ef7d7b scripts: startup profile job templates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:38:19 +02:00
Pavlo Ratushnyi fd182ef8f4 Merge branch 'claude/port-gpu-bringup' into claude/ledger 2026-10-24 01:28:20 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 dbf487b207 cp-latency: env-gated stage spans on the host request path, offline session synthesizer, instant-engine replay driver (baseline for the host-side latency work)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:04:49 +02:00
Pavlo Ratushnyi ecffc71f4b Merge branch 'claude/memory-safety' into claude/port-gpu-bringup 2026-10-24 01:04:44 +02:00
Pavlo Ratushnyi 86731ba000 docs(memory): RSS evidence from the e2e sessions (945, 943b), soak deferred by the coordinator; offline fit script 2026-10-24 01:04:28 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4debcdfba9 feat(chain): GR down shapes, fused swiglu+quantize and sigmoid+scale, load-hoisted greedy argmax and top-prob (groups tiny, head), window table tool
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:00:15 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ffbb440fc8 feat(chain): latency-hoisted bit-identical window kernels (plan copy, CPU rows, doorbell, GDN ab, GR norm/up, QSA chunk) behind LELEKA_CHAIN, probe tooling
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:49:14 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 cfe0a02312 docs/laptop-profile: state of the laptop work (OEM vs Turbo, incident, A0 numbers, recommended config, open list); watchdog rule narrowed to the OEM signature
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:26:05 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 5a97ee7c66 spec: adaptive_wanted selection (explicit switch, fixed LELEKA_SPEC, ADAPTIVE_DEFAULT), replay/analysis scripts and jobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:19:53 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 3bed06d185 docs/roofline: laptop ceilings in Turbo mode vs the OEM 30 W profile; guarded runner can wrap any GPU job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:13:42 +02:00
Pavlo Ratushnyi b1ab82b3d7 jobs 9005: stream-mode trace 2026-10-24 00:11:34 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 c5f46697cb laptop: parameterised bench harness (sequence/soak/prefix knobs), guarded run script with GPU-state preflight and 1 Hz watchdog, long-prompt generator
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:02:04 +02:00
Pavlo Ratushnyi 1823923fba Merge branch 'claude/prefill-overlap' into claude/port-gpu-bringup 2026-10-23 21:07:52 +02:00
Pavlo Ratushnyi 889a5f96ce Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-23 20:22:04 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 e08eab5fad feat(deploy,e2e): bind the MTP draft vocabulary (--mtp-rt-dir = the MTP pack) in the generated engine command, the e2e runner and the replay
The Original drafts over the 106k-row draft_vocab.bin of data/mtp-rt; the daemon default (rt_directory None) and the smokes drafted over
the full 248k-row head (+0.18 ms per draft step, ledger agent). Jobs 943b/945 ran without it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 19:42:01 +02:00
Pavlo Ratushnyi 725b7ba74e Merge branch 'claude/memory-safety' into claude/port-gpu-bringup 2026-10-23 19:40:02 +02:00
Pavlo Ratushnyi f51d2d2e8b docs+scripts(memory): leak soak jobs and offline slope fit (queued) 2026-10-23 19:39:39 +02:00
Pavlo Ratushnyi 3118c5ec0d docs/ledger.md: prefill ledger, tools, probe, fixes; lct_decode.py 2026-10-23 19:38:11 +02:00
Pavlo Ratushnyi 0e9eab62f7 e2e: reference-equivalent Codex rerun jobs (943c/945c) and replay arms job 948 2026-10-23 19:30:23 +02:00
Pavlo Ratushnyi c9006e68cf Merge branch 'claude/e2e' into claude/port-gpu-bringup 2026-10-23 19:29:22 +02:00
Pavlo Ratushnyi 7a96807351 docs/e2e: Codex session results, final binaries, trace tables; analyze_session attributes prefix lines to the next request 2026-10-23 17:38:40 +02:00
Pavlo Ratushnyi e70a05b9d1 docs(memory): job 914 results, CRM session analysis, leak jobs 2026-10-23 16:20:54 +02:00
Pavlo Ratushnyi eb9470545f scripts/profile: window loader fixes, jobs 9003/9004/9062 2026-10-23 16:13:53 +02:00
Pavlo Ratushnyi 2bdf57a853 Merge branch 'claude/port-gpu-bringup' into claude/ledger 2026-10-23 16:13:46 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 097f33469c Merge claude/port-gpu-bringup (4f7c461) into claude/adaptive-spec; replay harness gets spec arms, repetitions and teacher forcing; arm labels pin a request floor (fixed4@0)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:10:35 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 775cfb1653 docs(quality): retrieval verdict, outlier row localised by the layer ladder, stop-set fix re-confirmed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:10:23 +02:00
Pavlo Ratushnyi a6be2e2106 Merge branch 'claude/ledger' into claude/prefill-overlap 2026-10-23 16:09:03 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 9c18bed1a1 Merge claude/port-gpu-bringup into claude/prefill-overlap
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 16:08:55 +02:00
Pavlo Ratushnyi 73e77f8225 Merge branch 'claude/port-gpu-bringup' into claude/e2e 2026-10-23 16:07:51 +02:00
Pavlo Ratushnyi c12685156e e2e: browser checker finds the cells by probing (perspective boards) 2026-10-23 16:07:51 +02:00