Commit Graph
1144 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Opus 5.5 2725385741 scripts: hugepages-id private MTP staging dir (0700), installer --tools-only; docs: hugepages page draft (mapping facts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 02:56:56 +01:00
Pavlo RatushnyiandClaude Opus 5.5 a8171b2cc0 scripts: hugepages A/B, identity gate, analyser, installer; owner script for shmem THP (not run)
hugepages-ab.sh: one binary, hpoff vs hpon (LELEKA_HUGEPAGES=on), 8 ABBA-balanced pairs of the 5-turn
~245k session at the product PCIe share 0.45, baseline-sampler state record (buddyinfo, AnonHugePages,
process smaps_rollup) per run. hugepages-id.sh: bitwise replay identity at 8,000 static slots.
hugepages-analyze.py: pairs, predecessor split, exit fragmentation. owner-shmem-thp.sh: root-only
shmem_enabled toggle, not needed by the decode path. huge_pages.rs: mapped_len test-only (dead-code warning).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 00:16:35 +01:00
Pavlo RatushnyiandClaude Opus 5.5 e0141e510a model-format: opt-in huge-page placement of the resident expert banks (LELEKA_HUGEPAGES)
LELEKA_HUGEPAGES=on|thp (off by default; LELEKA_BANK_THP=on now selects thp) places each of the 144
resident bank copies in its own 2 MiB-aligned anonymous mapping instead of a heap Vec: MAP_HUGETLB when
HugePages_Free covers the bank (mode on only; nothing reserved), else MADV_HUGEPAGE + MADV_POPULATE_WRITE.
After the bank load and the shard page-cache drop, before cuMemHostRegister, huge_pages::settle() reports
the coverage from /proc/self/smaps and MADV_COLLAPSEs any 2 MiB range that fell back (best effort).
Pure placement: the bytes are the file's (read_tensor_into, same bounds and size fences). No system
setting is read-write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 00:11:36 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fe5910135d Merge claude/decode-tail-merge: decode-tail measurement records (PLE fix, seed gate, engine-commit identity PASS, speedtrain3 tables); code unchanged (ADAPT_DEFER default flip not applied)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 00:01:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bc75204387 Merge claude/decode-tail: measurement records (PLE fix, seed quality gate, engine-commit identity, speedtrain3 tables)
Docs: docs/experiments/decode-tail-5090.md takes the branch's records (sections 1-9) and keeps main's seed-off profile text as section 7a, with a merge note on where main differs.
Code: no change to main. kar_ple_cache.rs (branch b5d4a0db7 equals main a73d09060; main also has the persistent scatter staging buffers) and original_serve_host.rs are main's. The branch's LELEKA_SERVE_ADAPT_DEFER default flip (9b03de2be, deferral off by default) is NOT taken: main's default is the deferral on, and flipping it would change main's behaviour; the opt-out LELEKA_SERVE_ADAPT_DEFER=off already exists.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 23:59:35 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b49c9eb56b Merge claude/baseline-pair: paired interleaved ours-vs-vanilla tooling (sampler, analysers) and results: ours level with vanilla average (143.4 vs 145.4/142.1 tok/s, n=11/6/16), far steadier; vanilla drift partly explained by THP after ours runs. Part c (main 11e021161) queued
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 23:00:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b16a40656f docs: baseline-pair page (balanced ours-vs-vanilla, machine-state record, THP predecessor effect)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 22:59:48 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 fa186ecd83 scripts: baseline-pair ours45 arm (product PCIe share 0.45), SUBST_V1, bin-cpuservice in the manifest
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 21:48:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 11e0211616 Merge claude/cpu-service: vectorised single-token IQ3 CPU expert kernel + vectorised finite check. Bit-identical (353/353 rows, A/A 0), paired A/B +6.34% tok/s (5/5 blocks, one binary, base SD 0.86%), -0.27 ms/round; LELEKA_IQ_SINGLE=legacy / LELEKA_SINK_SCAN=legacy restore main. Harness PCIe share was 0.55
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 21:39:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a6fa596f62 docs: cpu-service page (window attribution, register-built IQ3 single-token dot + vectorized scan: bitwise 353/353, +6.34% tok/s / -0.27 ms/round over 5 blocks; open cache neutral; pcie 0.35 negative; harness runs pcie 0.55)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 21:38:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 63fb009f42 scripts: baseline-pair LF line endings (CRLF broke the job on Linux), SEQ and PRE_ARM_HOOK options
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 21:36:25 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c3e7067afe scripts: baseline-pair balanced ours-vs-vanilla A/B with machine-state sampler, analysers, owner-run compaction hook
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 19:36:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 829036be71 scripts: cpu-service paired A/B (base/new/open-cache/pcie0.35, 5 rotated blocks) and identity jobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 18:08:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bba658f204 cpu-service: register-built single-token IQ3_S/IQ3_XXS dot (bitwise the generic tree, LELEKA_IQ_SINGLE=legacy keeps it); vectorized finiteness scan of the verify group's CPU output (LELEKA_SINK_SCAN=legacy keeps the element-wise one)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 18:03:19 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8c8c6725d7 Merge claude/codex-lossy-delta: four-variant Codex lossy-delta harness (tasks, logging proxy, index) and results record; 72-cell matrix done, ours lossy vs lossless +0.6% rounds (n=3, resolution ~35%), vanilla early-stop confound documented
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 17:52:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e381c30825 Merge claude/slots-footprint3: share byte-equal RT/MTP pack dense roles (verified at every start; -109 MiB, 12,144 -> 12,192 slots), bit-identical vs LELEKA_FOOTPRINT_LEGACY=1 at equal slots (353/353); placement-class gate PASS; A/B of alias/reserve130 neutral, defaults unchanged. No speed claim
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 10:34:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 61fb6ac215 docs: footprint3 page (alias and reserve-130 A/B, MTP dense sharing, placement gate PASS)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 10:33:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a002eef9ae docs: codex lossy-delta execution record
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 09:15:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c61975defe e2e codex-delta: the writable acceptance copy includes seed/ (feature-query reads SPEC.md from it)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 04:52:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 119c7766f1 e2e codex-delta: run accept.py from a writable copy of the task dir (read-only install broke refactor-shop acceptance); reaccept tool
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 04:49:53 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e7e40be846 e2e codex-delta: index uses the matrix set only for deltas and determinism
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 02:55:36 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 22e56f69ed scripts: footprint3 paired A/B (alias, reserve 130, both), identity and placement-class relative gate jobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 02:43:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9e13fc809e footprint: share the MTP dense roles with the RT bank when proven byte-equal (about 126 MiB driver), drop the pack's copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 02:39:12 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 360e6caf28 e2e codex-delta: fixed CODEX_HOME path and prompt date (prompts identical across cells), matrix job scripts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 01:15:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4228e5c552 e2e codex-delta: our skip counters are cumulative; report the per-cell difference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 01:14:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4a1b9bfec7 Merge claude/slots-footprint2: free 1,084 MiB VRAM (unused MTP pack bank, lazy legacy QSA key mirrors); 11,568 -> 12,144 expert slots, +1.75% paired tok/s (n=3), bit-identical at equal slots; LELEKA_FOOTPRINT_LEGACY=1 restores. Placement-class gate on the larger cache still to run
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:49:06 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 745c0ad0db docs: footprint2 measurements (paired A/B, identity at an equal slot count)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:48:45 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 ff44dd606b e2e codex-delta: plan doc, matrix job generator, browser check helper
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:35:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b17fe85a9e e2e codex-delta: stack.json after the variant env, prefill share line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:34:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5629dd0b39 e2e codex-delta: copy seeds with writable permissions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:32:57 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e0d93a629a e2e: Codex lossy-vs-lossless delta study: task set (7 tasks with acceptance), logging proxy, cell/block runner, index and delta tools
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:31:58 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 3b0fec1b75 scripts+docs: footprint2 paired A/B and identity jobs, VRAM footprint second pass page
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 23:01:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 1a99397032 footprint: do not hold the MTP pack expert bank next to the RT-directory copy (675 MiB) and allocate the legacy QSA index-key mirror lazily (384 MiB); LELEKA_FOOTPRINT_LEGACY=1 restores both; ledger probe job
Both buffers are written or sized at startup and never read on the serve path: the draft layer of the product (--mtp-rt-dir) streams its own experts (original_mtp_rt_bank) and the serve QSA layers keep their keys in OriginalQsaResidentIndex; the host-canonical QsaIndexKeyCache is the legacy scalar path. Together 1,084 MiB of VRAM (about 11 quota steps, 528 slots) for the expert cache; bit-identical at an equal slot count, placement class when the auto count grows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 22:52:28 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e1bd61f59b Merge claude/draft-vocab: opt-in LELEKA_DRAFT_VOCAB (default off). Identity 353/353 rows, 0 flips; paired A/B +0.08% tok/s: no speed claim
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 22:42:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9c253f72f1 Merge claude/models-move: model paths inside the work folder (smoke VALID on new paths 2026-10-30)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 22:42:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 221801b34d ops: rescue sshd: correct passwd, pkill pattern that cannot match its caller; verified in an isolated namespace (login + pty)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:43:23 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c7d638c8a4 ops: rescue sshd /dev as its own tmpfs (/run is nodev, device nodes were unusable)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:40:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8e8194dfeb ops: rescue unit no longer disables itself on stop; watchdog loaded from a unit (Ubuntu deny-lists the module)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:11:50 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7b037f6092 ops: rescue sshd no longer bind-mounts /dev (shared propagation unmounted the host's /dev/pts, shm, mqueue, hugepages); own nodes + new devpts instance; private mounts before teardown
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:05:35 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cc88c5357c ops: rescue sshd: reliable teardown (process title, recursive unmount, no rm under a mount), single build via unit restart
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:01:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 cf728876db ops: rescue sshd build no longer aborts on static busybox; cp backup idempotent
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:59:23 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 86f0fa4432 Merge claude/mem-design (memory single-copy and elastic state design doc) into main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:52:35 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7651822366 docs: host RAM single-copy and elastic session state design (inventory, sparse-memfd option, lazy parking, tasks)
Design only, CPU-only analysis; nothing measured on the server. Finds that the 55.3 GB sealed memfd is read only for the 16.0 GB of PLE rows
and that ~39 GB of it is an unread level-2 re-encoding of shard 0 (estimate, census task T1).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:52:16 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9159e4eee5 ops: fsfreeze-based test that the RAM-only rescue sshd works while / and /data block writes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:46:37 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 196c0639e4 ops: RAM-only rescue sshd (port 2222) and netconsole for when the root NVMe stalls (owner-run, untested)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:45:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7e66b9491f ops: server script to reboot instead of hang when the root NVMe stalls (owner-run, dry run by default)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 11:35:38 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f5743d0375 Merge claude/upstream-fixes: upstream fixes (verifier-graph OOM fallback, ple_reader panic as failed read, conversation K/V pin) + line-ending normalization
Behaviour changes only on failure paths: a verifier graph that runs out of device
memory now costs the widest windows instead of the engine; a PLE source that panics
is a failed read instead of a ticket that waits forever; a restored conversation's
retained K/V never serves another conversation.

NOT exercised on a GPU (server down): the instantiate-OOM fallback. The merge is
acceptable because it changes behaviour only on the failure path. Tests in WSL
(mock driver): leleka-runtime 618 pass / 2 known backing:: failures, leleka-cuda-driver
(--features cuda-driver) 418 pass / 0 fail, leleka-model-format 139 pass / 3 known
sec_uc143_*/retained_fd failures (all /mnt/c, same as base).

Adds a narrow .gitattributes (text=auto eol=lf for crates/**/*.rs and
scripts/gpu-bringup/**/*.py) to keep CRLF out of these LF files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:58:03 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9792e99f44 Merge main into claude/upstream-fixes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:51:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 a1c5e352f9 Normalize line endings: convert 10 CRLF files back to LF, add narrow .gitattributes
Ten files touched by this branch had been rewritten with CRLF line endings
(base versions are LF), inflating the diff against the merge-base to
13685/13039 lines. Content is otherwise unchanged: the diff ignoring line
endings was and remains 661 insertions / 15 deletions.

.gitattributes: crates/**/*.rs and scripts/gpu-bringup/**/*.py are text=auto
eol=lf, so CRLF cannot re-enter these LF files at commit time. text=auto leaves
files that are already CRLF in the index untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:51:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 21536c240b docs: upstream port plan, consolidated review 2026-10-30 (rows 4.x-7.x), status of rows 2.1, 2.2, 2.6, 3.1-3.4
Merges the decode, kernels and CPU/platform reviews of Strata 41cf05a0..870aedd9 into one ranked
port list for Qwen3.8-Flash-Next IQ3_S + KAR + MTP on the 5090 and the 3080 (correctness and
hygiene 4.x, decode 5.x, prefill 6.x, laptop 7.x), with the state of each row from main and the
local branches (upstream-fixes, draft-vocab, models-move), the contradictions between the reviews
resolved, a paragraph on what upstream does not give (no 200+ tok/s at 245k), and the next ports
in order with the GPU they need. Every number is marked measured, claimed by upstream, estimate
or unverified. Old rows updated: 2.1 (default OFF, no e2e gain), 3.1 (not the cause of the 5090
gap), 3.3 (pa-pcie35 slightly worse), 2.6 (closed), 2.2, 3.2, 3.4 (pointers).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 08:47:59 +01:00