scripts/e2e/hexagonal/arch-install.sh builds and freezes /data/leleka-e2e/hexagonal (tools, shared helpers, main and branch binaries, MANIFEST.sha256 of every input) so the existing draft-round identity and paired A/B scripts run against main and the branch without touching the draft-round directory; those two scripts gain DR= and D= overrides and are otherwise unchanged.
- AdaptiveConfig::set_option and the LELEKA_SPEC_ARMS suffix ~key=value (adaptive@0~step=0.3): policy variants inside one replay process on the same forced text
- options rowq / smooth / measured for the draft floor rule (defaults reproduce the earlier rule exactly, unit test against the kept reference)
- windowpolicy-replay.sh, -ab.sh (three arms), -analyze.py, -id.sh, -install.sh
- run-e2e.sh: LELEKA_SM120_ATTN_DAILY_MTP defaults to 1 like the rtx5090-32g profile
- deploy: the profile's engine_env reaches engine_environment() through the saved config (test)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The accepted-prefix commit graph replayed each of the 36 GDN layers (conv history commit + recurrence replay through the accepted tokens) and each of the 12 QSA layers (tail restore +
8 row appends) as its own kernels. Two sealed kernels do all layers in one launch each: draft_commit_gdn_layers (precise math like original_verify.cu; the replay's output path,
which nothing reads, is not computed; the state-independent loads of all tokens are issued first) and draft_commit_qsa_layers (fast math like the resealed original_verify_qsa.cu;
one block per layer, rows in order). Model-free probe tools/draft-round/commit_probe.cpp: every state byte identical to the Original's kernels on 36 GDN and 60 QSA random
cases (n_keep 0..8, three RoPE settings, positions around block edges, holes); in a graph the GDN part is 346 -> 156 us, the QSA part 72 -> 4.5 us. Replay gate: draft-round-id1
(fused alone, DAILY alone and both): 2057/2057 top-16 logprob rows and 1036/1036 draft traces bit-identical, A/A exact.
Sealed with scripts/gpu-bringup (extra-seal-plan.json group draft-round, nvcc 13.2.86); ptx-sm86/MANIFEST.json records them as not built for sm_86 (record_commit fuses only on cc 12).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
draftround-ab.sh: ours-vs-ours paired blocks (alternating order) and the CUPTI profile run at ~245k context; draftround-kernels.py: per-kernel table of the commit graph, MTP round graph and
chain steps; draftround-id.sh/-idcmp.py: teacher-forced replay gate (top-16 logprob rows and the IEEE bits of every draft probability); LELEKA_TRACE_DRAFT=1 prints one DRAFT line per draft.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
* model-format: VerifiedKarPleArtifact records how the archive was vouched for (full pass / stamp / attested memfd) and what start-up read
(KarStartupRead); an ordinary archive file keeps the device/inode/size/mtime/ctime it was verified in and every row read compares the open file
with it (one fstat, the length check already did it); LELEKA_KAR_IDENTITY_RECHECK=off disables. Sealed memfds are unchanged.
* leleka-runtime: one engine log line per load, leleka-kar-startup source=.. verify=.. total_read_bytes=..
* deploy: built-in experimental profile rtx5090-32g-file (kar_source file, resident bank, explicit 6144 MiB prefix cache, never auto-selected);
the resource planner charges a file archive with a resident bank the engine only.
* scripts: run-e2e.sh accepts E2E_KAR_FILE / E2E_ASSETS; scripts/e2e/decode/kar-file-ab.sh is the paired memfd vs file A/B (not run).
* docs/kar-file-source.md: what the file form reads, guarantees, risks with the measured random-read figures, the A/B command.
Not a performance claim: nothing was run on a GPU.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Profile field memfd_extents: ple_only (needs kar_source memfd and an explicit prefix_cache_mib; default full, not serialized).
The sealed memfd keeps the archive's length and file offsets but holds only the ~16 GB the serve path reads (PLE rows, header,
directory, books); everything else is a hole, so readers need no change.
- deploy: sealed::seal_extents (parallel copy restricted to the extents, holes elsewhere, same seals; st_blocks test),
leleka seal-exec [--sparse-ple] (Rust form of leleka-seal-exec for A/B runs outside leleka run), supervisor seals sparse,
passes --kar-sparse-extents-sha256 to every engine, never attests or stamps the archive from a sparse copy, refuses to start
without a pinned digest (PLE_EXTENTS_SHA256, or LELEKA_KAR_EXTENTS_SHA256 while that is unmeasured); resource planner,
preflight RAM minimum and the inherited-descriptor credit use the memfd's real size.
- engine: --kar-sparse-extents-sha256, InheritedKarArchive::open_sparse, verify_sparse, extents handed to the governor.
- leleka-memory: FdMapping::lock_ranges, compact-space heal walk, guard_archive_extents. Locking or populating a hole allocates a
zero page: tested with a negative control next to the extents-only test that asserts st_blocks does not move.
- scripts/e2e/decode/sparse-memfd-ab.sh (paired 5-turn 245k A/B + teacher-forced identity gate; NOT queued, not a holder job),
docs/kar-sparse-memfd.md.
Not run on a GPU or against the real archive.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* 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>