Commit Graph
104 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 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 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 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 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 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 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 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 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 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 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 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 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 c27e26407d STRA-327: laptop run wiring - mandatory run root, STOP/lock checks, launcher, heartbeat reader, tolerant unlock
run_core start now requires --run-root and checks, before any ledger line: STOP file (exit 10),
then a foreign / stale / unreadable lock (exit 4, LOCK_FOREIGN / LOCK_STALE / LOCK_UNREADABLE),
then the run-root guard. The Windows lock path needs a run root named `runs` (exit 3 otherwise)
because watchdog.ps1 and guard.ps1 only look in <artifacts>\locks. unlock exits 0 when the lock
is already gone (guard.ps1 releases it after the cool-down); another run's lock is still exit 4.
heartbeat.json gets a reader: `run_core.py heartbeat` (exit 13 when missing/unreadable/stale) and
`resume` reports a live owner whose heartbeat is stale. New launch_arm.py is the only way to
start an arm: the arm is the child of watchdog.ps1, so no watchdog (script missing, not
startable, or ended without starting the arm) means no arm; the slot is then closed INVALID.
Mock/dry tests only; no PowerShell, no GPU. PowerShell scripts are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:10:27 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 c2d68f750d STRA-326: cross-check the declared machine against hardware.machine_role / gpu_name
validity.py trusted --machine alone, so laptop records declared "server" skipped the 100 W
power floor and the owner attestation. derive_pairs now refuses (MACHINE_MISMATCH, exit 3,
run ids named) records whose hardware.machine_role differs from the declared machine and a
"server" declaration over a Laptop GPU. A schedule `machine` key pre-registers the machine;
run_core finalize reads it from there (--machine only a fallback) and refuses a conflicting flag.
The golden fixture builder stamps machine_role = machine; golden cases unchanged (0 differences).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:01:20 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 5b590db4a3 Merge claude/stra-325 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 857d35ab41 Merge claude/stra-251 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:33 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 f496e4cb21 Merge claude/stra-308 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 bf43f24eb8 Merge claude/stra-316 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:32 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 925dea70e8 Merge claude/stra-313 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 9ffffc4aff Merge claude/stra-314 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:31 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 35a5490580 Merge claude/stra-312 into train-a (STRA-245)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 22:14:31 +01:00