Files
leleka/docs/gpu-bringup.md
T

57 KiB

GPU bring-up session (RTX 5090 host)

This is the one-shot runbook for the first evening on the Linux RTX 5090 host: compile and seal the pending PTX, build, run the Root-only GPU smokes, and prepare the Original-vs-Rust parity run. It was written without access to the host and without a GPU: nothing here has been executed on the card, and no number in this file is a measurement. Everything the scripts can verify on a Mac (pin logic, patching, the runner's stop/skip rules) is covered by python3 scripts/gpu-bringup/tests/test_gpu_bringup.py (75 tests; also run in a Linux container).

RTX 30-series (cc 8.6, e.g. the laptop RTX 3080): the sealed PTX here are sm_120 only; docs/sm86-assets.md describes the sm_86 companion set, the sm86 cargo feature and the smoke results on that card.

Owner decision on record: there is no Root/Codex handoff; this work owns the sealing, the smokes and the parity run. Rules from AGENTS.md apply throughout: no weights, captures, credentials or generated artifacts in Git; no lossy mode on by default; no "performance improvement" label without paired A/B plus a quality result; keep the Strata upstream provenance (docs/upstream.md) untouched.

0. Before leaving the Mac

cd /Users/para/work/leleka-claude-port-bringup              # branch claude/port-bringup, clean
python3 scripts/gpu-bringup/tests/test_gpu_bringup.py       # expect: OK (skipped=1 is fine)
python3 scripts/gpu-bringup/compile_assets.py --preflight   # expect: PREFLIGHT OK
scripts/gpu-bringup/remote_sync.sh check --host rnr5090     # prints the build plan; no network
scripts/linux-tests/run.sh                                   # step d': docker x86_64 harness, the non-GPU tests (761 passed when it landed)
ssh -o BatchMode=yes rnr5090 true && echo ssh-ok            # the only network touch; skip if unsure

remote_sync.sh refuses to sync a tree with modified tracked files, so commit first. scripts/linux-tests/run.sh (Docker, x86_64, no GPU; see its header) is the pre-host build/test baseline: if it is red on the commit you are about to sync, the host build will be too. Re-run it after pulling the sealed files home (step g) before committing them.

Decisions to take (the scripts force them; none is silently defaulted)

id question recommendation and evidence
D1 Rope PTX flags: --rope-flags precise (the doc's --fmad=true --ftz=false for all four) or preserve (same, but qsa_prompt_indexer and qsa_decode_postops keep --use_fast_math). preserve. docs/rope-and-memory-plan.md requires that the default outputs reproduce the old PTX. The committed qsa_prompt_indexer.ptx contains 96 .ftz tokens and qsa_decode_postops.ptx 63, so both were built fast-math (stra169 plan: native_qsa_indexer / native_rope are on the Original's CMake fast-math list); precise would silently change their numerics. qsa_prompt_postops and qsa_prompt_resolver are identical under both variants. Compile both into separate dirs if you want the record, seal only one. docs/cuda-seal-plan-additions-window.json claims the sealed copies are precise; the PTX contradicts it.
D2 Which nvcc? The pinned 13.0.88 from scripts/bootstrap-cuda-toolkit.py (deploy/cuda-toolkit.lock.json). Placeholders and the experimental plan still say 12.8.93; the committed PTX headers say 12.8 (.version 8.7), 13.0 emits a newer ISA version, which needs driver >= 580 (host has 595.91.07 per docs/experiments). A system CUDA 13.2.2 may exist on the host (older reports): it is NOT the pinned toolchain; only use it via --nvcc ... --expect-version 13.2.2 if you accept that explicitly.
D3 RUSTFLAGS for the build. None (Cargo default release, as the earlier Linux binaries). native-cpu-expert selects its AVX-512 paths with cfg!(target_feature = ...), so a default build uses the baseline paths. Record whichever you choose in env.json; do not mix builds inside one A/B.
D4 Seal the optional mmq_group (3 PTX, recipe unverified)? Not tonight unless an MMQ-group smoke needs it (they are in the model-assets group). Flags are quoted from the .cu headers, not from CMake. Opt in with --include-optional.
D5 Stopping the live Strata service for the GPU phases. Yours. The scripts never stop, kill or restart anything. Compile/build (b-d) do not use the GPU; smokes (e) and parity (f) need it free (run_gpu_smokes.sh refuses a busy card).
D6 Fast-math reseal of six already-sealed PTX (step c, below). Mandatory, not optional: the verifier review found them sealed with the build script's non-fast flags while the Original compiles their sources with --use_fast_math. The compiler and sealer do it by default; refusing it means the verifier window and the MTP path are not bit-comparable to the Original.

1. Timeline and checkpoints

step what gate to continue undo
a host sanity (read-only) no FAIL nothing changed
b rsync tree, bootstrap toolkit 13.0.88 nvcc --version says V13.0.88 rm -rf $TK; tree: delete $R
c compile PTX, seal pins compile report all ok; seal dry-run reviewed restore from pre-seal.tgz or re-sync from the Mac
d' scripts/linux-tests/run.sh on the Mac (docker x86_64) before the host build green on the commit being synced n/a
d release build + test binaries BUILD OK; only the listed placeholder tests fail rm -rf $R/target
e GPU smokes in dependency order driver-basic passes before anything else none needed (smokes are read-only)
f Original vs Rust parity self-determinism first, then equality none
g collect evidence, pull sealed files home files on the Mac n/a

Variables used below (host side):

export HOST=rnr5090
export R=$HOME/work/leleka-port-bringup           # dedicated tree; never an existing directory of the live service
export TK=$HOME/cuda-toolkits/13.0.88             # toolkit goes here; must not exist yet
export G=$R/target/gpu-bringup                    # logs, manifests, PTX outputs

a. Sanity (read-only)

ssh $HOST 'bash -s' < scripts/gpu-bringup/host_sanity.sh | tee /tmp/host-sanity-$(date +%s).txt

Reads nvidia-smi, driver, disk/RAM/CPU, tool versions, processes and units, and reachability of NVIDIA / crates.io / rust-lang. Go if there is no [FAIL] (driver >= 580.65.06 because the tree mixes PTX ISA 9.0 from CUDA 13.0 with ISA 8.7 from 12.8, Linux x86_64, libcuda.so.1, >= 20 GiB free, python3 >= 3.11, a C/C++ compiler, 6 GiB RAM). [WARN] lines need a human look:

  • a compute process on the GPU or a running strata/leleka process is the live service or someone's job. Leave it. Steps b-d do not need the GPU; e and f do.
  • no cargo: scripts/install-pinned-rustup.sh (pins rustup 1.29.0, checksummed); rust-toolchain.toml then fetches 1.99.0.

What not to touch (known from the repo's own reports; host_sanity.sh prints what is actually there): the systemd user unit strata-next.service and its loopback port 18082 plus any SSH tunnel to it; ~/.cache/strata-next/** (evidence of earlier A/B runs); ~/.strata-next/; ~/.local/bin/strata-next-*; the model shards and KAR/MTP packs (open them read-only, never move, rewrite or re-hash them in place); any system CUDA under /usr/local/cuda*. Everything this runbook creates lives under $R, $TK and /tmp.

b. Sync and toolkit

scripts/gpu-bringup/remote_sync.sh sync --dry-run --host $HOST --remote-dir '~/work/leleka-port-bringup'   # look at the list
scripts/gpu-bringup/remote_sync.sh sync          --host $HOST --remote-dir '~/work/leleka-port-bringup'
ssh $HOST
cd $R && mkdir -p "$(dirname $TK)"
python3 scripts/bootstrap-cuda-toolkit.py --output $TK        # ~1 GB download from NVIDIA, verifies every sha256
$TK/bin/nvcc --version | tail -1                              # expect: Cuda compilation tools, release 13.0, V13.0.88

sync never deletes, excludes .git, target, *.gguf, *.safetensors, *.kar and files over 200 MB, writes the source commit to $R/.synced-from-head, and later refuses to overwrite sealed files that were not pulled home (pull-sealed, step g). The bootstrap refuses an existing output dir, < 12 GiB free or < 6 GiB RAM, writes TOOLKIT-PROVENANCE.json, and uses no GPU and no root. nvcc needs a host compiler: if the default g++ is newer than CUDA 13.0 accepts, install an older one and pass --ccbin /usr/bin/g++-NN below (PTX is unaffected).

Do not run scripts/build-original-verify-ptx.sh tonight: it regenerates the 33 already-sealed mtp_original_*, original_verify*, qsa_prompt_device_gate, ple_prompt_device and gr_prompt_device PTX, which would invalidate the SHA-256 pins that docs/cuda-seal-plan-additions-window.json and the AssetSpec constants rely on.

Docker fallback (only if the bootstrap cannot run): the earlier Codex session used a pinned toolchain image (sha256:520292dbb4f755fd360766059e62956e9379485d9e073bbd2f6e3c20c270ed66, nvcc 12.8.93) with the GPU hidden. If that image is on the host, run compile_assets.py --nvcc <path or wrapper> --expect-version 12.8.93 inside it. The result mixes 12.8 and 13.0 PTX in one tree; record it as a deviation.

c. Compile and seal the PTX

What is pending, by group (compile_assets.py --list prints it live):

group PTX pins that guard them
additions (5) qsa_prompt_attention_variants, native_flash_attn, mmq_original_prefill_misc, device_poison, s_gemv_legacy none: consumers include_bytes! them without a digest; only the manifest records them
experimental (6) experimental_{kv_q4,kv_q8,kv_stream,keyless,qsa_attn,cvec} experimental.rs PINS[0..6] (source_sha256, ptx_sha256)
window (2) original_verify_window_moe_experts, original_verify_window_qsa_gate AssetSpec.sha of EXPERTS / GATE
kar (1) kar_decode_levels KAR_DECODE_LEVELS_PIN
reseal-fastmath (6, mandatory) mtp_original_full_head_native, original_verify_qsa, mtp_original_full_router, mtp_original_full_gr_post, mtp_original_full_gr_norm, ple_native_batch their old digests (7 spots: original_verify_window_{proj,moe,gr}.rs, original_verify.rs, ple_batch_queue.rs + its PTX_BYTES, hex in the window plan)
rope (4, regenerate) qsa_prompt_indexer, qsa_prompt_postops, qsa_decode_postops, qsa_prompt_resolver decimal digests in original_verify_window_qsa.rs (3), hex digests in the window plan, and crates/context/src/ptx_abi.rs (test must now require Extended)
mmq_group (3, optional) mmq_original_group_{swiglu,mul,fixup} SEALED[0..3] in mmq_original_group.rs
deferred (3) mtp_original_scalar_{norm,gr}, native_parity no recipe exists; they stay fail-closed

The six serve-path assets formerly declared as Option<&[u8]> = None (native_head.rs x3, original_sampler.rs, mtp_original_session.rs x2) are now wired like the others: include_str! of a PTX placeholder behind an Option<(usize, [u8; 32])> pin and crate::sealed_ptx::pinned, so they stay absent (fail-closed) until seal_pins.py pins them. They are in extra-seal-plan.json (group serve-assets; the fast-math mapping for the native head and rope assets is marked UNVERIFIED there: confirm against native_mmvq.cu/native_rope.cu in engine/strata/CMakeLists.txt before sealing). Only native_parity stays deferred (no recipe). With these sealed, --backend-mode auto can select the Original path; the window kernels and the other assets listed above must be sealed too.

cd $R
python3 scripts/gpu-bringup/compile_assets.py --preflight           # pins, includes, fast-math lint, sealed shas; OK
python3 scripts/gpu-bringup/compile_assets.py --isa-inventory --driver-check   # tree has ISA 9.0 and 8.7 PTX; the driver must be >= 580.65.06
mkdir -p $G && PTX=$G/ptx-1
python3 scripts/gpu-bringup/compile_assets.py --dry-run --rope-flags preserve --toolkit $TK --out $PTX | head -40   # eyeball flags
python3 scripts/gpu-bringup/compile_assets.py --toolkit $TK --out $PTX --rope-flags preserve --jobs 4 2>&1 | tee $G/compile-1.log

The compiler refuses a stale .cu (plan pin mismatch) before invoking nvcc, runs each plan's flags verbatim (including --use_fast_math only where the plan says so and never together with --ftz=false), requires every exported .entry (and, for the rope PTX, the extended .param counts: 11/18/16/11/11/8 for the six entries, i.e. frozen + 5, or + 1), and writes $PTX/<name>.ptx, <id>.nvcc.log and build-manifest.json. A failing asset leaves a .rejected copy and does not stop the others. Triage:

symptom meaning action
refusing: ... stale the .cu changed after its plan pin do not seal; ask whether the edit or the pin is right; fix on the Mac
nvcc exit 1: ... identifier ... undefined / missing include source never compiled before (none of these 13 was) read <id>.nvcc.log; fix on the Mac (see "if a source does not compile")
missing N exported .entry the PTX lacks names the Rust side loads compare grep '\.entry' ...ptx with the plan; do not seal
entry X has N params, expected M (rope) the .cu was not extended as ptx_abi.rs expects stop; the rope lift is inconsistent
policy lint flags contradict the plan's fast-math note stop and read the plan; --ignore-policy-lint only with the owner's word

Seal. First a dry run and a backup of every file the seal will touch:

python3 scripts/gpu-bringup/seal_pins.py --ptx-dir $PTX > $G/seal-dry.json     # prints "DRY RUN: nothing was written"
python3 -c "import json;print('\n'.join(json.load(open('$G/seal-dry.json'))['touched_files']))" | tar czf $G/pre-seal.tgz -C $R -T -
python3 - <<'PY'      # review: per asset, the patched fields and re-pins; follow-up tests; what stays unsealed
import json,os; m=json.load(open(os.environ['G']+'/seal-dry.json'))
for a in m['assets']: print(a['id'], a['stored_bytes'], [p['field'] for p in a['patches']], [r.get('kind') for r in a['repins']])
print('remaining placeholders:', m['unsealed_placeholders_remaining']); print('format notes:', m['format_notes'])
PY
python3 scripts/gpu-bringup/seal_pins.py --ptx-dir $PTX --write --manifest-out $G/SEALED-MANIFEST.json > /dev/null
python3 scripts/gpu-bringup/compile_assets.py --preflight           # still OK: the window plan's hex digests were re-pinned too

What seal_pins.py guarantees: stale .cu pins and a .cu edited after compile are refused; the PTX must match the compile manifest byte for byte; each rust_fields_to_fill entry patches exactly one declaration and reads back equal (usize length = PTX bytes without the terminal NUL, Option<(usize,[u8;32])> = length with the NUL, sha always over the body without the NUL, source_sha256 = SHA-256 of the .cu); include_bytes assets are installed with exactly one terminal NUL, concat!(include_str!(..), "\0") assets without; atomic groups (rope, mmq_group) must be sealed together; regenerated rope PTX re-pin every old digest it finds and refuse if the old digest is pinned anywhere unexpected; nothing is written unless every check passed; fake-nvcc output is refused. Touched .rs files that were rustfmt-clean stay so.

After sealing, cargo test had tests that asserted the placeholder state and failed by design. They were flipped on the Mac after the 2026-10-15 nvcc 13.2.86 seal (now sealed_assets_match_their_pins_and_export_every_entry in closed_kernels and experimental, sealed_ptx_matches_its_pin_and_every_admission_deviation_fails in kar_decode_levels, and the window expert_* / the_new_gate_* / every_window_asset_is_sealed_* tests): they assert the pin equals the checked-in PTX, real sm_120 with every named entry, and that one-byte-corrupted / wrong-length / wrong-digest synthetic copies are still refused. No GPU load or numerical claim is made by them. The historical list the seal manifest produced (followup_tests, per file): placeholder_assets_are_well_formed_but_unpinned_so_admission_fails_closed (experimental), placeholder_ptx_is_well_formed_but_unpinned_so_every_admission_fails (kar), expert_asset_is_an_unsealed_placeholder_until_root_seals_it and expert_launches_are_refused_while_the_asset_is_unsealed (window moe), the_new_gate_asset_is_an_unsealed_placeholder_with_a_matching_source (window qsa). Flip them to "sealed" expectations on the Mac after the session (step g); any other failure is a real problem.

c2. Mandatory: fast-math reseal of six sealed PTX (and the golden comparison after it)

The verifier review (docs/cuda-seal-plan-additions-window.json, numerics_risk_fast_math.audit) found six sealed PTX that scripts/build-original-verify-ptx.sh compiled with --fmad=true --ftz=false while the Original compiles the corresponding sources with --use_fast_math (engine/strata/CMakeLists.txt fast-math list). They are part of the default compile set (group reseal-fastmath, one atomic group: all six or none). Each has its own flag list in scripts/gpu-bringup/extra-seal-plan.json; the seal replaces --ftz=false by --use_fast_math and never passes both:

PTX Original source (CMake list) what differs in the old copy (audit)
mtp_original_full_head_native (head_quant) native_mmvq.cu two div.rn.f32 where the Original emits div.full.f32; flips an int8 code at a rounding tie; feeds every q8_1 activation
original_verify_qsa (verify_qsa_append_analytic) native_qsa_indexer.cu powf/cosf/sinf vs __powf/cos.approx/sin.approx: index keys differ well beyond 1 ulp past 2051 cells
mtp_original_full_router (mtp_full_route) native_router.cu expf, reciprocal: expert weights differ in the last bits (ids do not)
mtp_original_full_gr_post native_gr_postops.cu sigmoid/silu expf and division
mtp_original_full_gr_norm native_gr_norm.cu mean = partial / n_cols
ple_native_batch native_ple_postops.cu sqrtf, expf, divisions (only with a PLE block); recipe is the stra169 one (-ptx -O3 -arch=sm_120) plus --use_fast_math

The old digests are found and re-pinned wherever they live: original_verify_window_proj.rs (head_native), original_verify.rs (qsa), original_verify_window_moe.rs (router), original_verify_window_gr.rs (gr_post, gr_norm, ple), ple_batch_queue.rs (ple digest and its PTX_BYTES length) and the hex digests in the window plan; the sealer refuses if a digest is pinned anywhere else or a pin is missing. original_verify_qsa and ple_native_batch are stored without a NUL (concat!(include_str!(..), "\0")), the other four with one. mtp_original_full_attention, qsa_decode_postops and the other assets the audit lists as matching the Original are not touched. Ad-hoc per-asset overrides exist too (compile_assets.py --flag-override ID:+--use_fast_math / ID:---flag, recorded in the manifest and re-applied by the sealer), but the six above need no override.

These six also back the MTP path, so the MTP golden comparisons must be redone after the reseal, and the reseal is not accepted until the Original-vs-port golden comparison below has run:

  1. Per kernel, same inputs, bitwise: Original kernel output (the Original's own parity executables built from engine/strata: quantize_act_parity and mmvq_multi_parity for head_quant, router_top10_parity, gr_parity, ple_parity, rope_parity/qsa_parity for the indexer append; confirm each with --help) against the port kernel launched with the same inputs. No harness in this tree feeds Original inputs to the port PTX yet. That is a gap to close on the Mac; tonight's executable substitute is 2-4.
  2. The smokes of step e after the reseal (seal-loads, transport, gr, moe-mmq, ple, mtp, runtime-*): they prove the re-pinned modules load and run, not that they match the Original.
  3. Greedy parity (step f) in --backend-mode original and preview, with the MTP path on; any divergence found there is attributed first to these six assets, then to the rope PTX.
  4. Record per asset: old and new digest (sealed manifest repins), flags, and whether the golden comparison was run (yes, harness name / no, gap). Until a bitwise result exists, write "resealed fast-math, not golden-compared" in the ledger.

Rope numerics (open item from docs/rope-and-memory-plan.md): there is no harness that runs old and new PTX on identical inputs. Minimum evidence tonight: diff <(grep -v '^//' old.ptx) <(grep -v '^//' new.ptx) for qsa_prompt_postops and qsa_prompt_resolver (old copies are in pre-seal.tgz) should show only ISA/version header and register-numbering churn under 13.0; plus the QSA smokes in step e.

If a source does not compile: do not hack the host tree. Note the failing asset and error from <id>.nvcc.log, seal the rest with --only a,b,c (atomic groups must be complete), and fix the rest on the Mac; the next sync is blocked until pull-sealed (or --force-overwrite-sealed).

d'. Linux test harness (Mac, before the host build)

scripts/linux-tests/run.sh runs the Linux x86_64-gated CPU tests of leleka-cuda-driver, leleka-runtime and leleka-native-cpu-expert in Docker (no GPU, ignored tests stay ignored; 761 non-GPU tests passed when it landed on claude/port-main). Run it on the exact commit you sync, and again on the commit that contains the sealed files after step g. Expect, after sealing, only the placeholder tests listed in step c to need flipping; any other red here is a defect in the tree, not in the host.

d. Build

scripts/gpu-bringup/remote_sync.sh build --host $HOST --remote-dir '~/work/leleka-port-bringup' --jobs 8

Runs on the host with a log in $G/logs/: cargo fetch --locked (fails fast if offline), then cargo build --release --locked -p strata-desktop-core --bin leleka-cli --bin leleka-daemon --bin leleka-inference (the three binaries the earlier Linux build produced), then cargo test --no-run --locked for leleka-cuda-driver --features cuda-driver, leleka-runtime, and leleka-native-cpu-expert, and prints sha256sum of the binaries into $G/binaries.sha256. native-cpu-expert/build.rs has no C++ step (the .cpp files in that crate are not built); the crate needs only cc as linker. strata-control (the cc-compiled GGML bridge) is not in this set. Do not run sync between c and d. First release build is slow; use --jobs to leave CPU to a live service.

Then the non-GPU unit tests, to see that sealing is consistent (ignored tests are not run, so the GPU is not touched):

ssh $HOST "cd $R && . ~/.cargo/env && cargo test --locked -p leleka-context && \
  cargo test --locked -p leleka-cuda-driver --features cuda-driver --lib 2>&1 | tail -40"

Expected failures: exactly the follow-up tests named above. Anything else: stop.

e. GPU smokes

Generated by python3 scripts/gpu-bringup/smoke_inventory.py --update-doc docs/gpu-bringup.md (a unit test keeps it current): every real #[ignore] test under crates/, the env flags that enable it, its class and group. device: needs only the GPU and its flag; assets: reads shard/pack/oracle/fixture paths (not run without --allow-model-runs and the caller's variables); mock: isolated CPU harness protocol tests, not GPU smokes.

group crate / target test class enabling env needs (caller supplies)
dispatch cuda-driver lib original_first_queued_gr_read_exact_and_status_reset device LELEKA_STRA169_RUN_QUEUED_GR=yes -
dispatch cuda-driver lib original_first_gdn_full_products_exact_and_whole_owner_guards device LELEKA_STRA169_RUN_GDN_PRODUCTS=yes -
driver-basic cuda-driver --test gpu_driver installed_driver_fixed_kernels device LELEKA_CUDA_REAL_GPU=1 -
driver-basic cuda-driver --test q5_gpu installed_driver_q5_numeric_refusals device LELEKA_CUDA_REAL_GPU=1 -
driver-basic cuda-driver --test q6_gpu installed_driver_q6_numeric_refusals device LELEKA_CUDA_REAL_GPU=1 -
gdn cuda-driver lib original_fused_t1_gdn_program_runs_in_order_refuses_earliest_and_cleans_up device LELEKA_STRA169_RUN_GDN_FUSED_T1=yes -
gdn cuda-driver lib strata_prefill_gdn_program_runs_in_order_refuses_earliest_and_cleans_up device LELEKA_STRA169_RUN_GDN_BATCH=yes -
gdn cuda-driver lib queued_gdn_row_matches_scalar_calls_orders_refusals_and_cleans_up device LELEKA_STRA169_RUN_GDN_ROW_QUEUE=yes -
gr cuda-driver lib installed_gr_read_guard_matches_all_stage_bits_and_first_nonfinite device LELEKA_STRA169_RUN_GR_DEVICE_GUARD=yes -
gr cuda-driver lib original_first_t1_t2_t3_gr_batch_injection_overwrite_refusal_and_cleanup device LELEKA_STRA172_RUN_GR_BATCH_INJECT_WORKSPACE=yes -
gr cuda-driver lib original_first_microbank_read_inject_ffn_all_rows_bits_and_cleanup device LELEKA_STRA169_RUN_GR_MICROBATCH=yes -
misc-device cuda-driver lib short_prompts_record_on_the_drafters_own_scalar_owner_not_on_a_standalone_one device LELEKA_MTP_SCALAR_SHORT_GPU=yes -
misc-device cuda-driver --test original_arena_probe arena_probe device (ignore only) -
misc-device cuda-driver --test original_executor_probe executor_probe device (ignore only) -
misc-device cuda-driver --test original_serve_preflight_probe preflight_00_sealed_asset_report device (ignore only) -
misc-device cuda-driver --test original_serve_preflight_probe preflight_01_device_limits device (ignore only) -
misc-device cuda-driver --test original_serve_preflight_probe preflight_10_lazy_constructors device (ignore only) -
misc-device cuda-driver --test original_serve_preflight_probe preflight_20_prefill_arena device (ignore only) -
misc-device cuda-driver --test original_serve_preflight_probe preflight_30_synthetic_mtp_full_owner device (ignore only) -
misc-device cuda-driver --test original_serve_preflight_probe preflight_40_synthetic_verifier_record_all device (ignore only) -
misc-device native-cpu-expert --test cpu_pool_probe cpu_pool_runs_every_expert_format_pair device (ignore only) -
mock-only cuda-driver lib family_quantizer_transport_child mock LELEKA_CUDA_MOCK_HARNESS=1 -
mock-only cuda-driver --test mock_driver isolated_cpu_elf_matrix mock LELEKA_CUDA_MOCK_HARNESS=1 -
mock-only cuda-driver --test mock_driver fixture_child mock LELEKA_CUDA_MOCK_HARNESS=1 -
mock-only cuda-driver --test projection_family_mock common_protocol_matrix mock LELEKA_CUDA_MOCK_HARNESS=1 LELEKA_FAMILY_Q8_ENABLED=1 LELEKA_FAMILY_Q4K_ENABLED=1 LELEKA_FAMILY_IQ3XXS_ENABLED=1 LELEKA_FAMILY_IQ3S_ENABLED=1 LELEKA_FAMILY_IQ2S_ENABLED=1 LELEKA_FAMILY_IQ4NL_ENABLED=1 LELEKA_FAMILY_IQ4XS_ENABLED=1 LELEKA_FAMILY_Q2_ENABLED=1 LELEKA_FAMILY_ROOT
mock-only cuda-driver --test projection_family_mock family_public_q8_child mock LELEKA_CUDA_MOCK_HARNESS=1 LELEKA_FAMILY_Q8_ENABLED=1 LELEKA_FAMILY_Q2_ENABLED=1 -
mock-only cuda-driver --test q5_mock isolated_q5_protocol_matrix mock LELEKA_CUDA_MOCK_HARNESS=1 -
mock-only cuda-driver --test q5_mock q5_fixture_child mock LELEKA_CUDA_MOCK_HARNESS=1 -
mock-only cuda-driver --test q6_mock isolated_q6_protocol_matrix mock LELEKA_CUDA_MOCK_HARNESS=1 -
mock-only cuda-driver --test q6_mock q6_fixture_child mock LELEKA_CUDA_MOCK_HARNESS=1 -
model-assets cuda-driver lib actual_expert215_native_resident_gu_and_same_source_down_diagnostic assets LELEKA_RUN_REAL_NATIVE_D4=yes (fixture files read via a helper; inspect before running)
model-assets cuda-driver lib original_first_mmq_adaptive_and_distinct_fixed_profiles_exact assets LELEKA_STRA169_RUN_MMQ_NUMERIC=yes LELEKA_STRA169_MMQ_REFERENCE_DIR, LELEKA_STRA169_MMQ_REFERENCE_MANIFEST_SHA
model-assets cuda-driver lib original_references_resident_chain_gather_dual_native_and_guards_exact assets LELEKA_STRA169_RUN_MMQ_NUMERIC=yes LELEKA_STRA169_MMQ_REFERENCE_MANIFEST_SHA, LELEKA_STRA169_MMQ_REFERENCE_DIR
model-assets cuda-driver lib queued_finite_chain_and_bulk_down_packets_exact assets LELEKA_STRA169_RUN_MMQ_NUMERIC=yes LELEKA_STRA169_MMQ_REFERENCE_MANIFEST_SHA, LELEKA_STRA169_MMQ_REFERENCE_DIR
model-assets cuda-driver --test projection_family_gpu installed_driver_public_family_parity assets LELEKA_FAMILY_REAL_GPU=1 LELEKA_CUDA_MOCK_HARNESS=yes LELEKA_FAMILY_GPU_ROOT=yes LELEKA_FAMILY_NATIVE, LELEKA_FAMILY_QUANTIZER_PTX, LELEKA_FAMILY_MODES
model-assets cuda-driver --test q5_gpu installed_driver_q5_native_parity assets LELEKA_CUDA_REAL_GPU=1 LELEKA_Q5_EVIDENCE, LELEKA_Q5_NATIVE_ORACLE, LELEKA_Q5_TRUSTED_PTX
model-assets cuda-driver --test q5_gpu installed_driver_q5_real_tensor_component assets LELEKA_CUDA_REAL_GPU=1 LELEKA_Q5_EVIDENCE, LELEKA_Q5_REAL_INPUT, LELEKA_Q5_NATIVE_ORACLE, LELEKA_Q5_TRUSTED_PTX
model-assets cuda-driver --test q6_gpu installed_driver_q6_native_parity assets LELEKA_CUDA_REAL_GPU=1 LELEKA_Q6_EVIDENCE, LELEKA_Q6_NATIVE_ORACLE, LELEKA_Q6_TRUSTED_PTX
model-assets cuda-driver --test q6_gpu installed_driver_q6_real_tensor_component assets LELEKA_CUDA_REAL_GPU=1 LELEKA_Q6_EVIDENCE, LELEKA_Q6_REAL_INPUT, LELEKA_Q6_NATIVE_ORACLE, LELEKA_Q6_TRUSTED_PTX
model-assets leleka-runtime lib original_serve_smoke_prompt_decode_mtp_verify_commit_reset_cancel_sample assets LELEKA_ORIGINAL_SERVE_SMOKE=yes LELEKA_SMOKE_PROMPTS=yes LELEKA_SMOKE_MAX_NEW=yes LELEKA_SMOKE_MIN_P=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib original_serve_long_context_streamed_kv_smoke assets LELEKA_ORIGINAL_SERVE_LONG_SMOKE=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib pinned_single_load_layer0_and_window_boundaries assets LELEKA_STRA169_RUN_COMBINED_BOUNDARIES=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_LAYER0_DIR
model-assets leleka-runtime lib pinned_combined_kar_mtp_retained_three_plus_two_matches_full_reference_five assets LELEKA_STRA169_RUN_COMBINED_REUSE=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib pinned_single_load_layer0_native_first_mmq_diagnostic assets LELEKA_STRA169_RUN_LAYER0_MMQ_DIAGNOSTIC=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_LAYER0_DIR
model-assets leleka-runtime lib pinned_five_public_cases_strata_adaptive_slots assets LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE
model-assets leleka-runtime lib pinned_new_slowpaths_match_completed_public_output assets LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE
model-assets leleka-runtime lib pinned_five_public_cases_one_loaded_owner assets LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE
model-assets leleka-runtime lib pinned_five_public_cases_retained_qk_qsa_owner assets LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE
model-assets leleka-runtime lib pinned_five_public_cases_resident_owners assets LELEKA_STRA169_RUN_PUBLIC_CANDIDATE_ONLY=yes LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_EXPERT_PROFILE
model-assets leleka-runtime lib pinned_single_load_public_native_vs_native_down_outer256_pair assets LELEKA_STRA169_RUN_PUBLIC_NATIVE_DOWN_PAIR=yes LELEKA_STRA169_PAIR_OUTPUT, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib pinned_single_load_native_resident_mmq_model_numeric assets LELEKA_STRA169_RUN_NATIVE_RESIDENT_MMQ_MODEL=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib pinned_kar_cached_vs_legacy_same_session_reset_replays_all_logits_and_numeric_state assets (ignore only) LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_ARCHIVE, LELEKA_STRA169_KAR_STAGING
model-assets leleka-runtime lib pinned_artifact_refuses_missing_output_before_layers_without_state_commit assets (ignore only) LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1
model-assets leleka-runtime lib pinned_artifact_two_tokens_finish_all_layers_and_commit_state assets (ignore only) LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1
model-assets leleka-runtime lib authentic_scalar_first_mtp_batch_prefix_rejection_cancel_and_cleanup assets LELEKA_STRA169_RUN_MTP_BATCH_NUMERIC=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib pinned_candidate_full_forward_capture_two_public_tokens assets (ignore only) LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_FD, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_KAR_ARCHIVE, LELEKA_STRA169_KAR_STAGING
model-assets leleka-runtime lib pinned_single_load_resident_mmq_model_numeric assets LELEKA_STRA169_RUN_RESIDENT_MMQ_MODEL=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime lib pinned_single_load_capture_two_combined_reuse_and_chunk_numeric assets LELEKA_STRA169_RUN_SINGLELOAD_PROOF=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING, LELEKA_STRA169_CAPTURE_DIR
model-assets leleka-runtime lib pinned_single_load_grouped_certified_chunk_numeric assets LELEKA_STRA169_RUN_GROUPED_CHUNK_PROOF=yes LELEKA_STRA169_KAR_FD, LELEKA_STRA169_IQ3S_SHARD0, LELEKA_STRA169_IQ3S_SHARD1, LELEKA_STRA169_KAR_PROVENANCE, LELEKA_STRA169_MTP_PACK, LELEKA_STRA169_MTP_STAGING
model-assets leleka-runtime --test stra168_full_vocabulary prepare_independent_full_vocabulary_fixture assets (ignore only) (fixture files read via a helper; inspect before running)
model-assets leleka-runtime --test stra168_full_vocabulary installed_driver_full_vocabulary_matches_original_and_literal_words assets LELEKA_CUDA_REAL_GPU=1 LELEKA_HEAD_NATIVE_ORACLE, LELEKA_Q6_TRUSTED_PTX, LELEKA_HEAD_NATIVE_SHA256
moe-mmq cuda-driver lib strata_prefill_moe_program_runs_in_order_refuses_earliest_and_cleans_up device LELEKA_STRA169_RUN_MOE_PREFILL_BATCH=yes -
moe-mmq cuda-driver lib installed_grouped_native_gu18_gu22_matches_actual_scalar_columns device LELEKA_STRA169_RUN_MOE_GROUP=yes -
moe-mmq cuda-driver lib scalar_first_grouped_swiglu_down_columns_exact_and_closed_guards device LELEKA_STRA169_RUN_GROUPED_DOWN=yes -
moe-mmq cuda-driver lib original_first_gu21_gu23_full_products_refusals_reset_and_cleanup device LELEKA_STRA172_RUN_GROUPED_GU21_GU23=yes -
moe-mmq cuda-driver lib original_first_gu21_gu23_nc4_full_products_tails_refusals_reset_and_cleanup device LELEKA_STRA172_RUN_GROUPED_GU21_GU23_NC4=yes -
moe-mmq cuda-driver lib original_first_columns_loan_gate_up_fresh_order_guards_and_cleanup device LELEKA_STRA172_RUN_ROUTED_COLUMNS_LOAN=yes -
moe-mmq cuda-driver lib original_first_group_workspace_all_products_active_spans_reset_and_cleanup device LELEKA_STRA172_RUN_ROUTED_GROUP_WORKSPACE=yes -
moe-mmq cuda-driver lib original_first_routed_resident_pipeline_all_products_refusals_reset_and_cleanup device LELEKA_STRA169_RUN_ROUTED_RESIDENT_QUEUE=yes -
moe-mmq cuda-driver lib original_first_complete_routed_finite_stages_reset_and_cleanup device LELEKA_STRA172_RUN_ROUTED_FINITE_GUARD=yes -
moe-mmq cuda-driver lib original_first_complete_greedy_ties_finite_reset_guards_and_cleanup device LELEKA_STRA172_RUN_HEAD_GREEDY=yes -
moe-mmq cuda-driver lib original_first_shared_tail_all_products_status_reset_and_cleanup device LELEKA_STRA172_RUN_SHARED_TAIL=yes -
mtp cuda-driver lib duplicated_ring_same_attention_reload_append_wrap device LELEKA_STRA169_RUN_MTP_KV_RING_PROOF=yes -
mtp cuda-driver lib original_first_mtp_input_prefix_products_status_order_and_cleanup device LELEKA_STRA172_RUN_MTP_INPUT_PREFIX=yes -
new-pins cuda-driver lib experimental_gpu_fwht256_matches_cpu device (ignore only) -
new-pins cuda-driver lib experimental_gpu_q4_append_and_gather_match_cpu device (ignore only) -
new-pins cuda-driver lib experimental_gpu_keyless_route_matches_cpu device (ignore only) -
new-pins cuda-driver lib experimental_gpu_stream_resolve_copies_missed_blocks device (ignore only) -
new-pins cuda-driver lib kar_levels_device_decode_matches_cpu_for_levels_2_to_5 device (ignore only) -
new-pins cuda-driver lib kar_levels_expert_mlp_matches_cpu_within_tolerance device (ignore only) -
new-pins cuda-driver lib closed_gpu_poison_fills_the_nan_pattern_and_nothing_else device (ignore only) -
new-pins cuda-driver lib closed_gpu_native_flash_attn_matches_the_fp64_specification device (ignore only) -
new-pins cuda-driver lib closed_gpu_s_gemv_matches_the_shim_executed_golden device (ignore only) -
ple cuda-driver lib original_first_whole_ple_queue_causal_history_status_reset_and_cleanup device LELEKA_STRA169_RUN_PLE_CLOSED_QUEUE=yes -
ple cuda-driver lib whole_value_matches_original_40_tiles_and_refuses_closed_shapes device (ignore only) -
qsa cuda-driver lib original_first_selected_kv_bytes_attention_reorder_refusals_cleanup device LELEKA_STRA172_RUN_QSA_SELECTED_KV=yes -
qsa cuda-driver lib int8_kv_append_kernels_match_the_original_host_reference_bit_exactly device (ignore only) -
qsa cuda-driver lib streamed_attention_equals_fully_resident_attention_with_a_20480_cell_window device (ignore only) -
runtime-gdn leleka-runtime lib original_first_retained_whole_qk_repeat_tail_reset_guards_cleanup device LELEKA_STRA169_RUN_GDN_QK_SLOT=yes -
runtime-gdn leleka-runtime lib retained_gdn_chain_matches_legacy_intermediates_and_fences_products device (ignore only) -
runtime-gdn leleka-runtime lib sixty_five_actual_recurrences_finite_and_local_abort_match_same_ptx_reference device LELEKA_STRA169_RUN_GDN_CHUNK_COMPONENT=yes -
runtime-gdn leleka-runtime lib batch_adoption_is_consecutive_atomic_and_swaps_the_final_state_once device LELEKA_STRA169_RUN_GDN_CHUNK_COMPONENT=yes -
runtime-gdn leleka-runtime lib one_input_upload_matches_four_legacy_projections_and_preserves_lease_guards device (ignore only) -
runtime-gdn leleka-runtime lib batch_resources_charge_exactly_scratch_and_status_and_release_everything device LELEKA_STRA169_RUN_GDN_BATCH_RESOURCES=yes -
runtime-gdn leleka-runtime lib queued_gdn_chain_matches_scalar_oracles_refuses_and_cleans_up device (ignore only) -
runtime-gdn leleka-runtime lib mirror_matches_uncached_steps_and_exact_rollback_reset_identity device (ignore only) -
runtime-gdn leleka-runtime lib original_first_three_rows_and_each_accepted_replay_full_state_finite_abort_cleanup device LELEKA_STRA169_RUN_GDN_MTP_JOURNAL=yes -
runtime-gr leleka-runtime lib original_first_fixed_outputs_repeat_overwrite_abort_and_cleanup device LELEKA_STRA169_RUN_GR_OUTPUT_WORKSPACE=yes -
runtime-gr leleka-runtime lib retained_residual_matches_original_read_inject_and_fences_abort_sticky_failure device (ignore only) -
runtime-gr leleka-runtime lib retained_attention_injection_to_ffn_gr_matches_original_host_roundtrip device LELEKA_STRA169_RUN_GR_HANDOFF=yes -
runtime-moe leleka-runtime lib retained_gate_up_matches_legacy_chain_and_closes_failed_candidates device (ignore only) -
runtime-moe leleka-runtime lib retained_down_pack_scale_combine_matches_old_uploads_and_fences_abort device (ignore only) -
runtime-moe leleka-runtime lib original_first_fixed_router_all_logits_routes_repeat_reset_and_cleanup device LELEKA_STRA169_RUN_ROUTER_SCRATCH=yes -
runtime-moe leleka-runtime lib retained_mtp_experts_match_original_s2_shared_and_combine_and_clean_abort device (ignore only) -
runtime-moe leleka-runtime lib original_first_fixed_draft_moe_repeat_abort_and_cleanup device LELEKA_STRA169_RUN_FIXED_DRAFT_MOE=yes -
runtime-mtp leleka-runtime lib retained_mtp_attention_gate_out_matches_legacy_transfers_and_cleans_refusals device (ignore only) -
runtime-mtp leleka-runtime lib retained_final_matches_original_reuploads_and_fences_invocation_abort device (ignore only) -
runtime-ple leleka-runtime lib retained_key_and_whole_value_match_original_40_tiles_and_fence_abort device (ignore only) -
runtime-qsa leleka-runtime lib retained_attention_gate_out_matches_legacy_transfers_and_cleans_refusals device (ignore only) -
runtime-qsa leleka-runtime lib original_first_five_role_qsa_scratch_repeat_finite_refusal_and_cleanup device LELEKA_STRA169_RUN_QSA_ATTENTION_SCRATCH=yes -
runtime-qsa leleka-runtime lib resident_index_transport_matches_uncached_at_190k_and_reset device (ignore only) -
runtime-qsa leleka-runtime lib one_input_upload_matches_five_legacy_projections_and_preserves_lease_guards device (ignore only) -
seal-loads cuda-driver lib sealed_window_assets_load_on_the_device_and_export_every_named_entry device LELEKA_VERIFY_WINDOW_GPU=yes -
seal-loads cuda-driver lib rt_bank_places_every_tensor_and_the_expert_chunks_exactly device LELEKA_MTP_RT_BANK_GPU=yes -
seal-loads cuda-driver lib draft_head_gather_matches_a_host_gather_for_each_kernel_width device LELEKA_MTP_RT_BANK_GPU=yes -
transport cuda-driver lib original_three_copies_first_owned_event_triplet_bytes_guards_and_cleanup device LELEKA_STRA169_RUN_OWNED_ASYNC_COPY=yes -
transport cuda-driver lib poison_while_pending_retains_registered_owners_and_preserves_the_primary_error device LELEKA_STRA169_RUN_OWNED_ASYNC_COPY=yes -
transport cuda-driver lib original_first_owned_gate_up_bytes_products_refusals_and_cleanup device LELEKA_STRA172_RUN_OWNED_GATE_UP_UPLOAD=yes -
transport cuda-driver --test full_matrix_transport_gpu complete_selected_matrices_match_legacy_64_row_bits device (ignore only) -
transport cuda-driver lib fixed_down_pack_matches_original_upload_and_refuses_before_copy device (ignore only) -
transport cuda-driver --test prepared_routed_gate_up_gpu prepared_routed_gate_up_reuses_exact_native_q8_and_refuses_invalid_owners device (ignore only) -
transport cuda-driver --test ple_key_bulk_gpu ple_key_full_matrix_matches_160_legacy_tiles_and_exposes_late_nonfinite device (ignore only) -
transport cuda-driver lib owned_readback_original_first_preserves_gdn_extents_and_raw_words device (ignore only) -
transport cuda-driver lib checked_subspan_real_copy_preserves_untouched_bytes device (ignore only) -
transport cuda-driver lib original_three_uploads_first_triplet_exact_padding_refusals_cleanup device LELEKA_STRA172_RUN_MMQ_TRIPLET=yes -

Group order and dependencies (run_gpu_smokes.sh --list): driver-basic first (libcuda, device 0, the fixed kernels); seal-loads (needs step c: the sealed window PTX and the RT bank load on the card), new-pins (experimental KV/keyless/cvec and KAR level decode vs CPU references; fail closed until sealed) and transport depend on it; gr, gdn, moe-mmq, qsa, ple, mtp depend on transport; dispatch on gr+gdn; runtime-* on their driver group.

ssh $HOST; cd $R; . ~/.cargo/env
scripts/gpu-bringup/run_gpu_smokes.sh --list | less
scripts/gpu-bringup/run_gpu_smokes.sh --plan --groups seal-loads            # the exact cargo commands, no GPU
# 1. first contact, alone:
scripts/gpu-bringup/run_gpu_smokes.sh --run --groups driver-basic --run-dir $G/smokes-1
# 2. the port's own new assets:
scripts/gpu-bringup/run_gpu_smokes.sh --run --groups seal-loads,new-pins --run-dir $G/smokes-2
# 3. everything else, in order (re-runs driver-basic as its dependency):
scripts/gpu-bringup/run_gpu_smokes.sh --run --run-dir $G/smokes-3

Semantics: groups run in dependency order; the first failing test stops its group (later tests are NOT-RUN); groups that depend on a failed group are SKIPPED-DEP; independent groups still run; a cargo filter that matches no test counts as a failure (it means the test is cfg-gated away or was renamed); the runner first checks the driver against the highest PTX ISA in the tree and refuses (exit 3) if it is too old, then refuses to start while another process holds the GPU or less than 8 GiB VRAM is free (--allow-busy-gpu, MIN_FREE_MIB), never kills anything, and writes per test logs, results.tsv, run-info.txt, gpu-timeline.csv (nvidia-smi at run start, around every group and at the end) and nvidia-smi.before.txt / .after.txt under the run dir. Per-test timeout 900 s (SMOKE_TIMEOUT). To repeat one test: --groups G --filter SUBSTRING. The model-assets group is listed (--plan --groups model-assets) but starts nothing without --allow-model-runs and the variables it needs already exported by you (e.g. LELEKA_STRA169_KAR_FD is an inherited descriptor: exec 9<archive; export LELEKA_STRA169_KAR_FD=9); tests whose fixtures cannot be named are skipped.

How to read results: a smoke proves the pinned PTX loads on the card and the listed entries run; it is not a numerical qualification of the Original (the window GPU test says so itself). Typical failures: Unpinned/unsealed => step c missed an asset; CUDA_ERROR_INVALID_PTX / UNSUPPORTED_PTX_VERSION => the driver does not know the PTX ISA in the tree (9.0 needs >= 580.65.06; compile_assets.py --isa-inventory --driver-check), see D2; NO_BINARY_FOR_GPU => wrong -arch; launch/shared-memory errors => a real kernel problem to log, not to patch on the host.

f. Original17 parity plan (greedy equality)

Goal: same prompts, same sampling, same model digest, Original Strata vs the Rust engine, output compared. This is a correctness run. Under AGENTS.md it cannot be reported as a speed result, and its timing columns are not a benchmark (cold/warm state, sequential loads, API overhead). Charter section 7 gate: greedy output must match the baseline or deviate within a pre-declared tolerance; a mismatch is a finding, not something to tune away.

Prerequisites (owner supplies; none is downloaded by this toolkit): the pinned IQ3_S shards, the KAR archive, the MTP pack, and an Original Strata installation on the host (the Python server engine/strata/serve/server.py --engine strata --config CFG with an engine config naming the strata executable, tokenizer and model name; or the strata CLI). The earlier A/B reports (docs/experiments/2026-10-03-ordinary-strata-stability-ab.md) record the Original's arguments: one 256K slot, INT8 KV, --spec 4, --spec-min-p 0.5. Reuse exactly those for the Original arm and say so in the metadata.

  1. Environment record, once per arm: scripts/gpu-bringup/record_env.sh $E/env-<arm> --toolkit $TK --model <shard0> --model <shard1> (hashes can take minutes; the digests are required by the ledger and AGENTS.md).

  2. One GPU, so the arms run sequentially, each started fresh, with the live service down (D5). Declare cache state per arm: cold = first request after load (the runner's untimed warmup is that request), warm = after. Drop no caches unless you want a cold-disk record; write which you did in the metadata.

  3. Suite: benchmarks/fixtures/chat/paired-smoke.json first (3 cases), then quality-v1.json, then cold-prefill-v1.json. scripts/bench-chat-paired.py sends temperature 0, seed 42, reasoning_effort none, stream false, one untimed warmup per case and --repeats measured repeats, and judges each answer. Its output must be outside the repository.

    bench-chat-paired.py refuses an output path inside the repository, so parity artifacts live outside $R:

    E=$HOME/gpu-bringup-evidence/$(date -u +%Y%m%d); P=$E/parity; mkdir -p $P
    # Original arm (server already running on 127.0.0.1:8095; model name MUST be the same string for both arms)
    python3 scripts/bench-chat-paired.py --suite benchmarks/fixtures/chat/paired-smoke.json --single-arm-name baseline \
      --baseline-url http://127.0.0.1:8095/v1/chat/completions --baseline-ready-url http://127.0.0.1:8095/health \
      --baseline-auth-config <private-json-with-api_key> --model <MODEL_ID> --repeats 3 --max-tokens 128 \
      --metadata $E/env-original/env.json --output $P/original.json
    # stop the Original; start the Rust engine behind the gateway; then:
    python3 scripts/bench-chat-paired.py --suite benchmarks/fixtures/chat/paired-smoke.json --single-arm-name candidate \
      --baseline-url http://127.0.0.1:<GATEWAY_PORT>/v1/chat/completions --baseline-auth-config <private-json> \
      --model <MODEL_ID> --repeats 3 --max-tokens 128 --metadata $E/env-rust/env.json --output $P/rust.json
    python3 scripts/compare-chat-reports.py $P/original.json $P/rust.json --output $P/compare.json
    

    (--baseline-url is how the single-arm mode names the one endpoint, for either arm. compare-chat-reports.py refuses reports whose suite hash, model string or configuration differ.)

  4. Rust arm: leleka-inference --listen IP:PORT --token-env NAME --shard0 PATH --shard1 PATH --gpu 0 --gpu-budget BYTES --context-tokens N --kar-archive-fd FD --kar-provenance PATH --mtp-pack PATH --mtp-staging PATH --backend-mode MODE ... behind leleka-daemon --config PATH (runtime_gateway::Config: schema_version, listen, token_env, runtimes; see desktop-core/GRPC.md and docs/original-serve.md). Pin --backend-mode explicitly and record it: original refuses with the name of the first missing asset or producer (expected tonight, see the gaps in step c) and never falls back; auto falls back to the preview path silently except for a line on stderr; preview is the Rust-native decoder chain. A parity result is only about the mode that actually ran.

  5. Verdict. In compare.json: summary.same_normalized_output == summary.pairs and baseline_quality_passed / candidate_quality_passed == pairs is a pass for that suite. Run the Rust arm twice and compare it with itself first: if it is not self-deterministic, parity is meaningless (the 2026-10-03 report found exact output hashes differing even among repeats of the Original). Record per case usage prompt/completion tokens (in pairs[*].baseline_usage/candidate_usage). On a mismatch, keep both raw reports, find the first differing case, and (Original side only) re-run it with the strata CLI --tokens ... --greedy --max-new N --dump-logits PATH to see where the logits diverge; there is no equivalent token-level tool on the Rust side yet.

  6. Ledger: add an entry to docs/performance-ledger.md with everything its "Required record" lists: date and commits (harness, engine, control plane), model name/quantisation/file digest, GPU/driver/CUDA/power limit, context mode/KV format/slots/batch/ speculation policy and every other setting, workload identity and token counts, cold or warm, and the report digests. Keep the reports themselves outside Git.

g. What to collect

# on the host
scripts/gpu-bringup/record_env.sh $G/final-env --toolkit $TK
(cd $R && sha256sum $G/SEALED-MANIFEST.json $G/ptx-1/build-manifest.json $G/binaries.sha256 > $G/artifact-digests.txt)
# from the Mac
scripts/gpu-bringup/remote_sync.sh pull-evidence --host $HOST --remote-dir '~/work/leleka-port-bringup'     # $R/target/gpu-bringup and ~/gpu-bringup-evidence -> target/gpu-bringup-evidence/<ts>
scripts/gpu-bringup/remote_sync.sh pull-sealed --dry-run --host $HOST --remote-dir '~/work/leleka-port-bringup'
scripts/gpu-bringup/remote_sync.sh pull-sealed           --host $HOST --remote-dir '~/work/leleka-port-bringup'
git status --short && git diff --stat       # review: sealed PTX, pin edits, ptx_abi.rs, window plan hex

Collect: compile-*.log and build-manifest.json (nvcc version, flags, source and PTX digests); SEALED-MANIFEST.json; pre-seal.tgz; the cargo build log and binaries.sha256; every smoke run dir (results.tsv, per-test logs, gpu-timeline.csv, nvidia-smi before/after); env.json files; parity reports and compare.json; host sanity output. Commit the sealed PTX and pin edits (plus the flipped placeholder tests) as their own commit on the Mac; commit no model data, reports containing prompts, credentials, or raw captures. After the review: ssh $HOST "mv $R/target/gpu-bringup/SEALED-MANIFEST.json $R/target/gpu-bringup/SEALED-MANIFEST.pulled.json" lifts the sync guard. Sealed does not mean qualified: pins computed by a script are provenance, not a numerical gate.

Rollback

situation action
bad seal (wrong flags, regrets D1) tar xzf $G/pre-seal.tgz -C $R restores placeholders and old PTX/pins; or from the Mac remote_sync.sh sync --force-overwrite-sealed
nvcc/toolkit trouble rm -rf $TK; nothing else depends on it
wrong build rm -rf $R/target (and the tree rm -rf $R; it is a dedicated directory)
smokes wedge the GPU nvidia-smi first; reset only with the owner's say-so; the runner leaves no daemon behind
anything touched outside $R, $TK, /tmp stop and write down what; this runbook never needs it

Tool reference

tool purpose safe on a Mac
compile_assets.py --list, --preflight, --dry-run, --fake-nvcc, real compile yes except real compile
seal_pins.py install PTX, patch pins, print sealed manifest (dry run unless --write) yes (use a scratch --root with fake output)
fake-nvcc stand-in compiler (marker FAKE-NVCC; refused by the sealer in the real tree) yes
smoke_inventory.py scan and group the #[ignore] smokes; --update-doc yes
run_gpu_smokes.sh --list, --plan, --run list/plan only
remote_sync.sh check, sync, build, pull-sealed, pull-evidence needs ssh/rsync
host_sanity.sh, record_env.sh read-only host checks / env record host only

Rehearsal without hardware (what the unit tests do): copy the tree, compile_assets.py --fake-nvcc --out DIR --rope-flags preserve, seal_pins.py --ptx-dir DIR --root /tmp/copy --allow-fake --write, then cargo test -p leleka-context ptx_abi in the copy. Verified that way on 2026-10-14: all 33 assets patch, every pin reads back, cargo check --target x86_64-unknown-linux-gnu -p leleka-cuda-driver --features cuda-driver --tests type-checks the patched copy, and the strict ABI test passes against fake extended PTX. None of that says anything about real nvcc output or the card.