Commit Graph
292 Commits
Author SHA1 Message Date
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 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 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 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 d6fc908641 scripts, docs: draft-vocab paired A/B and identity jobs, upstream findings and port notes
* scripts/e2e/decode/draftvocab-ab.sh: speedtrain3-ab shape, one binary in every arm, counterbalanced
  base/en order, arms dv-base, dv-en, dv-en-eqslots; spec-stats give tokens per round, accepted/offered and
  the accepted-length histogram; validity rejects fallback, missing or unexpected draft-vocab log lines
* scripts/e2e/decode/draftvocab-id.sh: teacher-forced replay with LELEKA_ORIGINAL_SERVE_RT_DIR set (the older
  identity jobs draft over the full head), A/A floor, en against default, optional LELEKA_SPEC=3 control
* docs/experiments/2026-10-30-draft-vocab-en.md: what upstream does (format, digests, selection, default off),
  our status, the port, expectations, what is not verified

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 03:29:07 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 6af628aa2a gpu-bringup: refuse PTX built by nvcc 13.2.0/13.2.1 (V13.2.0, V13.2.1, V13.2.51)
CUDA 13.2.0/13.2.1 miscompile some sm_120 kernels (IQ2_S/IQ3_S products wrong). validate_ptx (used by compile_assets and seal_pins) now reads the nvcc build from the PTX header and rejects those builds. A tree-wide test checks that every sealed PTX names a good build (today: none bad).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 03:25:46 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5e4c9c9530 models: all model paths point into the work folder (models/leleka-gates, models/deepseek-v41-flash)
Rewrite the 5090 server model paths in 30 repo files (scripts, tools, docs) from the old
locations (/home/para/leleka-gates, $HOME/leleka-gates, /data/models) to
/home/para/work/leleka/models/..., add the AGENTS.md workspace rule and the move record
docs/experiments/models-move.md. Not merged: the smoke test is pending.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 19:12:29 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7717961a51 scripts: speed-train3 paired A/B (budget 31,300 MiB, RUN_TAG, optional reserve-130 arm) and fixed-slot identity job for the combined branch with the slots-footprint planner fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 11:12:56 +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 22dadc3c9c scripts: speed-train2 paired A/B (speed-train, speed-train2, vanilla; seed off) and the fixed-slot static-tier logprob identity job
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:37:27 +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 2132886807 scripts: draft-tail paired A/B (speed-train against draft-tail, seed off, per-round host budget in the summary) and the logprob identity job
drafttail-ab.sh is speedtrain-ab.sh with the two ours arms speedtrain-noseed / drafttail-noseed (optional drafttail-ac-noseed =
LELEKA_SERVE_DRAFT_AFTER_COMMIT=on for attribution, v-def for vanilla in the same session), alternating, and a summary that prints the
adjacent-pair differences and the per-round ms budget from the DBG profile lines. drafttail-id.sh is dt-id2.sh with rt-speedtrain
against rt-drafttail (+ the same binary with the draft waiting for the commit): bitwise q_pair identity of the teacher-forced top-16 logprobs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:28:15 +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 bea07c3d64 vram: per-call-site device allocation ledger (LELEKA_VRAM_LEDGER=1) and a free-VRAM low-water mark
The fixed VRAM footprint of ours is 2.1-2.3 GiB above vanilla's and the load ledger could not say where: the dense-weights stage shows
4,578 MiB taken for 3,890 MiB accounted. LELEKA_VRAM_LEDGER=1 records every Context::allocate by call site (innermost workspace frames of a
backtrace), removes it on free, and prints at each `vram_note` the sites that changed since the previous note, with the bytes the driver is
estimated to reserve (allocations above 1 MiB rounded up to 2 MiB, packed below, as probed on the WDDM laptop and as the 5090 token table
shows: 322.1 MiB takes 324 MiB). Off by default; the off cost is one cached bool per allocation.

`DBG vram` lines now carry the lowest free VRAM seen so far, and a new note "decode end before disassemble" reads the card after the graph
pools and every window are captured: the real low-water mark of a request, for sizing the reserve.

scripts/dev/alloc-granularity-probe.py is the offline ctypes probe of the driver's rounding.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 10:14:22 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 47d2d38976 scripts: speed-train paired A/B job (ours seed on/off against vanilla, frozen corpus, validity checks incl. turn-5 PLE)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:30:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 47707480d0 Normalize line endings to LF in files the decode-tail/sm120 branches had converted to CRLF (whitespace only)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 08:27:39 +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 589ed7d1e3 scripts/decode-sm120: replay job runs a one-request smoke first and aborts if it fails
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:38:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 8713ccd7b2 scripts/decode-sm120: replay job sets the explicit replay opt-in
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:27:08 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 7636ec5d91 scripts/decode-sm120: trimmed jobs (e2e: base1 all1 all2 base2, seed off, no CUPTI by default; replay: two processes, side optional)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 03:00:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b03510f43f scripts/decode-sm120: summarize.sh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 02:16:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c9b91ac543 scripts/decode-sm120: jobs for three switches (replay identity in three processes), build_rt/test_driver fixes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:55:59 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 75f166c9ba sm120 decode switch SIDE_MIXER (GDN part): gates and gate projection on side streams of the verify window graph (off by default until its gates pass)
Upstream STRATA_SIDE_MIXER=2, GDN half: each GDN layer's alpha/beta gates (gdn_alpha_beta) and gate projection (mmvq GdnGate) are issued on two side
streams that fork from the capture stream right after the q8_1 quantization (before the qkv projection) and join before the recurrence; no kernel changes,
only the dependency edges of the captured graph. OriginalCapture owns the side streams and their fork/join events (created before cuStreamBeginCapture
for a VerifierWindow capture when the switch is on, destroyed after the capture ended) and hands out the side stream from stream_handle() between
side_fork(i) and side_end(i). Not in a split (two-group) window, as upstream. The QSA half of upstream's switch (indexer chain, queries chain) is not ported.

Switch: policy.side_mixer, LELEKA_SM120_SIDE_MIXER=0|1, replay arm flags !side / !noside. Default OFF: no identity or timing result yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:52:15 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 78cdd2d169 scripts/decode-sm120: jobs on the frozen corpus and the pinned expert profile, harness files under /data/leleka-e2e, trust check on the last turn's input tokens
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:46:11 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 49be10eaa5 scripts: parity A/B job on the frozen corpus with the long-session guard, VALID/INVALID verdict per arm, experimental placement arms
Uses /data/leleka-e2e/decode/corpus/src/crates (the old leleka-head corpus is gone and gives a ~300-token session), the guarded long-session.py
(--min-final-tokens 200000), re-checks final-turn input tokens >= 200000 and marks an arm INVALID otherwise; all comparisons are ours against ours on the same corpus.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:42:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c84fcdcdd5 e2e: long_session.py refuses an empty corpus, records the corpus digest and fails when the last turn is shorter than 200k tokens
The owner's cleanup removed the source directory of the 245k session; the run then streamed 73-306 token prompts and looked healthy. Exit 2: no usable file.
Exit 3: final-turn input_tokens < --min-final-tokens (default 200000, 0 disables). corpus.sha256 (file list with per-file digests, char count) is written next to long-session.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:39:10 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 e977669a3e scripts: paired settings A/B job for the 5090 parity audit (PCIe share, trace env, decode reserve, IQ gather, LTO build)
A holder job in the shape of the DEV decode-tail dt-profile-ab job; every arm changes one variable from the o-def base with the ranked
upstream expert profile. Not run (queued by the orchestrator only).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:38:17 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 69db3ab268 e2e: default to the ranked upstream expert profile, record its sha256, refuse a different digest unless E2E_ALLOW_PROFILE_OVERRIDE=1
run-e2e.sh defaulted LELEKA_ORIGINAL_SERVE_EXPERT_PROFILE to gpu-runs/baseline/profile.bin, a bring-up placeholder in expert-id order (47 % overlap with the
ranked upstream data/expert-profile.bin at 11,280 slots). Every harness run therefore started from an unranked VRAM set. The product deploy already pins the
upstream file (crates/deploy EXPERT_PROFILE_SHA256 8f59b4aa...). The harness now defaults to $A/data/expert-profile.bin, writes $OUT/expert-profile.sha256 and
refuses a profile whose digest differs from the pinned one unless E2E_ALLOW_PROFILE_OVERRIDE=1 (the record then says override).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:38:01 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c8dae30bab scripts/decode-sm120: replay identity job, build_rt fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:37:23 +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 104659b07b series_eval: state the E3 standard error and degrees-of-freedom wording explicitly
The module docstring (the in-repo spec of the E3 statistics) now says the standard error is sd / sqrt(n_eff),
and that dof = max(1, floor(n_eff - 1)) is floored first and never below 1. Wording only; no code change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:26:26 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c605fff02b scripts/decode-sm120: e2e A/B holder job and replay test binary build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:26:07 +01:00