Pre test report report · NVIDIA/hyperflare-inference #332

Raw Markdown for agents: https://autobot.eidonix.com/p/6a9c2a36-a5e9-43de-aeb3-fb4c92a2d992.md

Pre-Test Report — PR #332 "Report unresolved kernel argument address candidates during export"

Author: mark-yong (CONTRIBUTOR) · Branch: fix/reject-unrecorded-graph-args → main · Head: 38805ba3 (rebased onto 0a8c20f4, pushed 2026-11-30) · Size: 4 files, +756/−30 (heliopause/src/export/reachability.rs +738/−27, heliopause/src/export/capture.rs +4/−1, docs/runtime-core-design.md +8/−2, docs/TODO.txt +6) · Refs: #266 (open), #331 (merged)

Recommendation: REFER TO HARDWARE TEST — two jobs, ≤8 GPU-hours, one model, hard stop rules

Unlike my 2026-11-28 report, the code is no longer moving in a way that invalidates measurement. 38805ba3 fixed every item I raised (alignment filter, single rule, straddle test, per-symbol example selection, the unaligned-base test, the wrong hidden-count units, the misses.clone()s, the redundant guard, the test name), and the author's own 2026-11-30 comment states plainly the one thing that is still unmeasured: "the per-symbol 10-line GPU stderr sample has not been re-captured on GPU." That single sentence is exactly what a GPU job can and should buy.

Be precise about what this buys. Hardware cannot validate the PR's stated purpose (does it catch #266's real stale pointers), cannot close the TODO it added, and cannot reproduce the author's counts. It can validate the only new behavior added since the last GPU run — per-symbol example selection, reachability.rs:256-282 — and it can prove, with byte-level evidence, that the diagnostic does not change the exported artifact. Both are worth ~2 GPU-hours; neither requires a second look at anything the author already ran, and no serving benchmark belongs anywhere in this plan.

Note for the reader: @yatesdr's CHANGES_REQUESTED verdict dates from 2026-11-20 and predates this head; the 2026-11-28 Autobot review's blockers are all fixed. The current Autobot re-review of 38805ba3 is Ready To Merge with no blockers. Do not treat the 2026-11-20 label as a gate on hardware time.


What was verified at 38805ba3 (so the engineer does not re-litigate these)

What hardware can and cannot answer

Question cn5 cn7 Verdict
Do the ≤10 printed examples now span ≥2 kernel symbols instead of one CUTLASS family? Yes — 4×RTX PRO 6000 = same GPU model as the author's SM120 run, and a 4-rank export exercises the per-rank label path TP1 only, no multi-rank Run on cn5 (Stage 1)
Does the diagnostic change the exported core? (non-retention / non-blocking) Yes — byte-identity A/B against main n/a Run on cn5 (Stage 2)
Does it catch #266's real stale split-K arguments? No — needs deepseek-ai/DeepSeek-V4.1-Flash-1017 at TP4 on 4×GB10; cn5 has no such checkpoint No — 1×GB10 cannot form TP4 Out of scope; say so in the report
Close docs/TODO.txt:357-361? No — needs 4-GPU DeepSeek and 8-GPU W4A8 MoE; widest host is 4 GPUs No Out of scope; leave the TODO open
Reproduce 22,618/762 and 19,417/832? No — that export is local-inference-lab/DeepSeek-V4-Flash-Vision-Exp-lossless-CSF via hyperflare-recipes d1376bb; different checkpoint, recipe, and rank count No Do not attempt

One further caution the engineer must respect: assert distinct-address counts, never occurrence counts. blob caches each unique (data, numeric) miss list and replays it for every node/argument sharing those bytes (:196-219), so occurrences overstate the number of bad arguments by roughly the replay factor (the author's run: ~66×).


Stage 0 — Free, no GPU (mandatory, ~15 min, run first)

This is the release-profile crate layer from docs/design-review.md:180-185 (cargo test --locked --release … "and heliopause, matching the native-serving workflow"). The author ran debug --lib only, and .github/workflows contains no heliopause job at all (.github/workflows/native-serving.yml (not opened) covers eos, selene, selene-manager, helios, flare-cli, flare). That is the real verification gap here, and it costs nothing.

On the export host, at 38805ba3:

cargo test --locked --release --manifest-path heliopause/Cargo.toml --lib

Expectation to record: the author reports 231 passed, 0 failed, 6 ignored (all 6 CUDA-gated), including 28 tests in export::reachability::tests. If this fails, stop — do not spend GPU time on a build whose own suite does not pass in the required profile.

Optional, 2 minutes, and it directly protects Stage 1's budget: confirm the plan resolves before downloading anything. ignition export resolves the model, discovers GPUs through NVML, and derives the plan before downloading (docs/cli-design.md:1521-1523), and a capacity failure exits 4 (:1533-1534):

.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1,2,3 --help

Use this to read the recipe's declared tensor-parallel sizes. If TP4 is not listed, skip straight to TP2 in Stage 1.

Stage 1 — cn5: one export of nvidia/GLM-5.3-Flash-NVFP4 (the deliverable job)

Job shape: one cn5 job, all 4 GPUs, 48 CPUs, 125 GiB RAM. Budget: ~3–5 h wall clock (the author's reference export was ~73 min on 2 GPUs; a 4-rank GLM NVFP4 export with tuning and compilation is larger).

Why this model: it is the only recipe-supported model on the box — nvidia/GLM-5.3-Flash-NVFP4 → recipe glm-5.3-flash-nvfp4 (docs/model-preparation.md:318). facebook/dinov2-base and timm/vit_base_patch14_dinov2.lvd142m are on the host but have no Ignition recipe, so they cannot be exported. Note all listed models are at 0 GiB, i.e. not downloaded; the checkpoint fetch happens inside this job.

Preflight the engineer must do before launching (this is where a job gets wasted):

  1. Disk. A job gets only 16 GiB scratch, which is far too small for a GLM-5.3 Flash NVFP4 export (checkpoint + payload objects + staging). Point every preparation path at a large persistent filesystem in ~/.config/flare/config.toml (not opened) (ignition/cli/config.py:20):
    [paths]
    hub_cache = "/big/hf"
    kernel_cache = "/big/flare/kernels"
    core_cache = "/big/flare/cores"
    export_staging = "/big/flare/staging"
    
    export_staging defaults to empty, meaning "beside the core" (config.py:48, docs/cli-design.md:1395), so setting core_cache moves staging too — but hub_cache and kernel_cache default under ~/.cache and must be moved explicitly. Then df -h /big and confirm headroom per docs/multi-host.md:316-321: checkpoint + cached payload objects + payloads this export adds + temporary staging, all on one filesystem so hardlinks keep working. I could not verify free space on cn5; if the large FS is not big enough, that is a genuine blocker, not something to squeeze.
  2. Extension built from the PR head. After any Rust change: uv pip install --python .venv/bin/python --no-deps ./heliopause (docs/model-preparation.md:157-162). heliopause is a cdylib (heliopause/Cargo.toml:11) imported as flare_heliopause; a stale build silently measures main.
  3. Recipe package present. ignition/recipes/ is not in this repository; recipes come from local-inference-lab/hyperflare-recipes (docs/model-preparation.md:310-330). The job needs access to that dependency pin.

Command (TP4 first — this is the qualified configuration):

git checkout 38805ba3
cargo build --locked --release --manifest-path flare-cli/Cargo.toml (not opened)
uv sync --locked --extra prepare --extra test
uv pip install --python .venv/bin/python --no-deps ./heliopause
.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1,2,3 --verbose \
  > /big/logs/pr332-tp4.out 2> /big/logs/pr332-tp4.err
echo "exit=$?"

--gpus 0,1,2,3 is right: GLM at TP4 is the only qualified GLM configuration (docs/model-preparation.md:168-171: "Qualified end to end: Qwen at TP1 and TP2, and GLM at TP4"). Ignition spawns ranks with torch.multiprocessing spawn (ignition/preparation/rank_group.py:296), so child stderr is inherited — one 2>file captures every rank's report; nothing else is needed.

Fallback, not a second guess: 4×96 GiB = 384 GiB against a TP4 reference qualified on 4×DGX Spark (4×128 GiB unified). Planning may refuse (implementation rejects capacities that do not fit, docs/model-preparation.md:340-342). If the job exits 4 (capacity, docs/cli-design.md:1533-1534), rerun once as TP2 — the plan is derived before download, so this costs minutes, not an hour:

.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1 --verbose \
  > /big/logs/pr332-tp2.out 2> /big/logs/pr332-tp2.err

TP2 halves rank coverage (2 reports instead of 4) but still answers the per-symbol question. A TP2 run is a complete, acceptable deliverable; do not escalate back to TP4.

Assertions to pre-register (state them before the job, judge them after):

  1. Exit code 0. (Exit 4 = capacity, 5 = preparation; see above.)
  2. grep -c '^export: rank' pr332-tp4.err ≥ number of ranks — every rank prints, each line prefixed with its own rank.
  3. ≥2 distinct kernel symbols among the ≤10 example lines on at least one rank. This is the assertion the whole job exists for; at c3cc87ea all ten lines came from one CUTLASS family, which is what :256-282 was written to fix and what the author has not re-measured. Extraction: take the kernel NAME (MODULE) field of each graph … line, sort -u, count.
  4. Every example offset is divisible by 8. grep -o 'offset [0-9]*' | awk '{exit $2%8}'. A non-multiple means the alignment gate regressed.
  5. Summary/hidden arithmetic reconciles, per rank: printed examples + hidden distinct = summary distinct; printed occurrences + hidden occurrences = summary occurrences. The two units were conflated before; this is a one-line check and catches a units regression for free.
  6. No kernel unknown (unknown) in the output. graph rejects out-of-range function indices (reachability.rs:356-358) and capture.rs keeps kernels and functions in one order, so the fallback at :294-295 should be unreachable. If it appears, the index wiring is wrong — a finding, not a nit.
  7. Record the per-rank distinct-address count. This is the number the maintainer asked to see. Report it as "aligned distinct addresses per rank", and alongside it the per-symbol breakdown from (3).

Do not assert:

Optional smoke test (separate job, skip unless Stage 1 fails to convince): flare run <CACHE_ENTRY> --gpus 0,1,2,3 to prove the exported core still loads and serves. It needs a TTY for first-use publisher acceptance (docs/cli-design.md:1281-1285) or a pre-accepted fingerprint, plus --publisher-keys for the development profile (:729). Do not bundle it into the export job.

Stage 2 — cn5: non-interference A/B (the byte-identity job)

Why it is the highest-value assertion available: the change's own safety claim is that retention is untouched and nothing persists, so for one model and recipe the exported core must be byte-identical to a main export. That is a code-level claim, but only a diff of two real artifacts settles it, and it costs one job that reuses tuned/compiled caches.

How — reuse --reuse-weights so this is minutes, not another 73:

git worktree add /work/main 0a8c20f4
cd /work/main
uv pip install --python /path/.venv/bin/python --no-deps ./heliopause   # rebuild the extension at main
.venv/bin/ignition export glm-5.3-flash-nvfp4 --gpus 0,1,2,3 --reuse-weights \
  > /big/logs/main-tp4.out 2> /big/logs/main-tp4.err

--reuse-weights uses the cached default version as the weight source and reuses tuning and compilation caches (docs/model-preparation.md:290-308), so this is a graph/capture round, not a full export.

Assertions:

Predicted result: empty payload-set diff and parity timing. If the payload sets differ, that is a serious finding — it means the diagnostic changed the export — and everything else in this plan should be paused while it is understood.

Stage 3 — Optional, and probably not worth it: cn7 (1×GB10)

Only if a GB10-platform-specific question survives Stages 1–2. The cheapest model on cn7 with a recipe is google/gemma-4-E4B-it → gemma-4-e4b (docs/model-preparation.md:326), at TP1:

.venv/bin/ignition export gemma-4-e4b --gpus 0 --verbose 2> /big/logs/pr332-gb10.err

Kill criterion, state it up front: a small model with few recorded allocations may report zero candidates, in which case the per-symbol assertion is vacuous and the job proves nothing. Accept only if you already know from Stage 1 what a "populated" report looks like, and treat an empty report as a null result — not a pass. cn7's 60 GiB RAM and 10 CPUs also make it a poor fit for anything larger. My recommendation is to skip Stage 3 unless the maintainer asks for GB10 specifically; it adds a platform, not evidence.


Budget and stop rules

Stage Host Cost Gate
0 any (CPU) ~15 min, 0 GPU Mandatory. Fail ⇒ stop, report to author.
1 cn5, 4 GPUs ~3–5 h ≈ 12–20 GPU-h The deliverable. Capacity exit 4 ⇒ retry once at TP2 only.
2 cn5, 4 GPUs ~1–2 h ≈ 4–8 GPU-h Run after Stage 1 succeeds. Diff ⇒ escalate, pause.
3 cn7, 1 GPU ~1 h Optional; skip by default.

Total: ~16–28 GPU-hours on cn5, ≤4 GPU-hours on cn7. If Stage 1 fails for reasons unrelated to this PR (dependency fetch, driver, disk), stop and report; do not spend Stage 2's job re-running the same failure.

Explicitly out of scope (write this into the test record)

Process items to raise alongside the test (not test gates)

  1. Add heliopause to native-serving.yml (not opened). docs/design-review.md:180-185 requires --release crate tests for heliopause "matching the native-serving workflow", but the workflow has no heliopause job. That is why this PR's verification rests on hand-run debug tests. Fixing CI is worth more than any GPU job here.
  2. The PR body is now current (231 passed / 0 failed / 6 ignored; aligned counts correctly flagged as pre-per-symbol; ## Limitations states that unaligned unresolved values are not reported). No description blocker remains.
  3. Open should-fix items that do not block the test but will move the output: the granule-trimmed-inactive question (capture.rs:3239 still passes raw &request.inactive; the sole inactive test, reachability.rs:1168-1183, uses an aligned range) — the author declined it with a written rationale and the last review verified that rationale (raw inactive also feeds zero_ranges, so those bytes are genuinely not live); and the two non-blocking simplifications (single-pass example selection at :256-282, narrowing pub(crate) at :50-72, :221-230). If per-symbol selection is rewritten for simplification, Stage 1 must be re-run, since that rewrite touches the exact lines the job measures. Ask for the simplification to land after the test, or accept measuring twice.

Security / integrity check

I re-read the PR description, the 2026-11-30 author comment, and the prior reviews and screens. Nothing instruction-shaped: no prompt injection, no agent-directed requests, no requests to alter tooling/CI/review process, no exfiltration. Discord: myong_acct is attribution the repo's own AGENTS.md (not opened) requires. The author's Limitations section is candid about the unmeasured per-symbol output and the un-runnable 4-GPU case, which is consistent with the charter's evidence standard and is reflected above as scope rather than as a defect. Matches the intake screen's all-clear on both heads.