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

Raw Markdown for agents: https://autobot.eidonix.com/p/251d4633-f474-4587-bae2-a2f107860d09.md

Hardware test plan — PR #731 (flashinfer-python pin → 6aff33c4)

1. What is actually being tested

The whole diff is one line, pyproject.toml:47 (pr_files: 1 file, +1/−1):

-flashinfer-python = { git = ".../local-inference-lab/flashinfer.git", rev = "1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e" }
+flashinfer-python = { git = ".../local-inference-lab/flashinfer.git", rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" }

It feeds the prepare extra (pyproject.toml:25 "flashinfer-python[b12x]"), so it changes the compiled b12x kernels inside every ignition[prepare] environment and in CI (.github/workflows/python-cpu.yml:29-33 (not opened)). The new revision is two upstream commits ahead: adb09a82 (FlashInfer #215 — GDN 2:1 value-head ratio + H=2048 hyper-connection/MTP shapes) and 6aff33c4 (FlashInfer #217 — cooperative SM budget / green-context grid-stride safety for b12x MoE).

Critical framing for the test engineer: there is no speedup to measure. The PR claims a functional result (export completes, core serves; 72 graphs; C=1/2/4; 120k-token prompt). The only quantitative question it leaves open is the one it explicitly declines to answer — whether bundled #217 regresses b12x MoE latency: "6aff33c4 also brings the b12x MoE change … to every recipe; its effect was measured only through the Qwen4-35B-A3B export." So the measurement is a non-inferiority guard, not a speedup hunt. Anyone asked to "measure the claimed speedup" should be told the claim does not exist.

2. What the available hardware can and cannot validate

Test cn5 (4× RTX PRO 6000 Blackwell = SM120, amd64) cn7 (1× GB10 = SM121, arm64, busy: run 17)
Decisive test: ignition export qwen4-35b-a3b fails at old pin / succeeds at new pin Impossible — no Qwen4-35B-A3B checkpoint on either machine, and the qwen4-35b-a3b recipe lives in the external repo local-inference-lab/hyperflare-recipes (AGENTS.md:253-266, docs/model-preparation.md:316-336) Impossible (same, plus arch mismatch with the reporter's SM120 result)
GDN regression on the adb09a82 path (qwen3.8-flash = the only GDN recipe in-tree, docs/core-design.md:356) Feasible at TP2 (66.82 GiB GPU-bound without MTP, docs/core-design.md:682-692); checkpoint not staged, 95.12 GiB download, disk-bound Not staged; GB10 shared-memory model makes TP1 of 66.8 GiB infeasible
b12x MoE exposure (what #217 actually touches) Best target: local-inference-lab/GLM-5.3-Flash-NVFP4 and nvidia/GLM-5.3-Flash-NVFP4 are staged; GLM-5.3-Flash is 512 routed experts/layer (docs/core-design.md:376) and qualified at TP4 (docs/model-preparation.md:171-172) — exactly your 4 GPUs Has GLM + Gemma-4-26B-A4B + Nemotron Bolt, but arm64/GB10 needs a from-source flashinfer build that has never been exercised by CI (.github/workflows/python-cpu.yml:14 (not opened) is ubuntu-24.04 x86-64)
RoCE proxy parity, ABI, cache partitioning CPU-only or already deterministic — no GPU needed (see Tier 0) Same

Honest bottom line: the one thing the PR is for cannot be validated on this fleet. Do not spend GPU time trying. Spend it on (a) proving the new pin is not broken, and (b) bounding the #217 MoE risk the PR declines to measure — both of which your hardware does support and neither of which has been done yet.

3. Preconditions (all before the first GPU-minute)

git fetch origin pull/731/head && git checkout a558dcda   # PR head; pyproject.toml:47 already = 6aff33c4
# 0a. Confirm the pinned commit is merged upstream, not a branch tip (#707 precedent had to retarget):
git ls-remote https://github.com/local-inference-lab/flashinfer.git | grep -i 6aff33c4   # record output; no GPU

4. Tier 0 — CPU only, zero GPU time (this is the highest value per minute; do it first)

The author did run these and reports test_roce_proxy_parity.py 2 passed and pytest tests/ -q 2621 passed / 480 skipped, but nobody has reproduced them and CI status is unobservable. Reproducing is free and is the only gate the repo makes non-waivable (docs/design-review.md:247-251).

export BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1
uv sync --extra prepare --extra test          # exactly .github/workflows/python-cpu.yml:25-29 (not opened) — note: NO --locked, repo has no uv.lock
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/preparation/test_roce_proxy_parity.py -q     # expect 2 passed
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q                                          # expect ~2621 passed / 480 skipped

Optional but cheap and directly on-topic (the pin also changes where forwards get cached):

CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest \
  tests/preparation/test_roce_proxy_parity.py tests/preparation/test_source_identity.py (not opened) \
  tests/preparation/test_forward_cache_sources.py tests/preparation/test_packaging.py (not opened) tests/cli -q

Pass: 2 passed in the parity test (0-byte divergence between helios/native/roce_proxy.c (not opened) lines 10..EOF and installed flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened), tests/preparation/test_roce_proxy_parity.py:35-65), full suite ≥ the author's counts with no new failures. The one known failure (export::blob::tests::verified_inode_mutation_is_rejected_before_link, reproduces 3/3 on main) is out of scope — do not chase it.

If the parity test fails: stop. That is an automatic PR reject, not a hardware finding: re-sync helios/native/roce_proxy.c (not opened) below its 9-line provenance header or the pin must not land (docs/roce-ring.md:361-365). Do not spend GPU time on a pin that fails this.

5. Tier 1 — GPU smoke at the new pin, no model, no export (~10 min, 1 GPU on cn5)

Proves the revamped b12x binary actually loads and runs kernels on SM120 before committing to a multi-hour export.

export CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1    # gate per AGENTS.md:302
.venv/bin/python -m pytest \
  tests/preparation/test_runtime_core.py tests/test_compilation.py (not opened) \
  tests/components/test_sampling_flashinfer.py tests/preparation/test_scratch_cuda.py -q
# Helios's own cooperative-grid clamp path (the mechanism #217's "cooperative SM budget" is adjacent to):
.venv/bin/python -m pytest tests/preparation/test_runtime_core.py::test_cooperative_core_clamps_to_device_capacity -q

The second command is the interesting one: it exports an oversized cooperative grid via helios/tests/cooperative_core_fixture.py and then runs the ignored Helios test oversized_cooperative_grids_replay_at_device_capacity (tests/preparation/test_runtime_core.py:383-395). It exercises Helios's clamp_cooperative_grid against a real device capacity (helios/src/runtime_core/mod.rs:137 (not opened), :1362-1399). It does not touch FlashInfer — say so in the report; it is a "the surrounding mechanism still works" check, not evidence about #217.

Pass: no load/link errors, no CUDA errors, no new failures vs. the same run at the old pin. This is the cheapest way to catch a broken rev on SM120.

6. Tier 2 — the real GPU work: A/B on GLM-5.3-Flash TP4, cn5, all 4 GPUs

Why GLM-5.3-Flash: it is the only model on the fleet that is (a) staged, (b) a 512-expert routed-MoE model — i.e. the exact kernel family #217 modifies, (c) qualified at TP4 in-repo (tests/fixtures/codec_geometry/glm53-tp4-mtp5.*, docs/model-preparation.md:171-172), and (d) sized to your 4×96 GiB. Qwen3.8-Flash is the alternative, but it is a 95 GiB download you do not have staged; prefer GLM.

Design: twin-arm A/B in one job, identical settings, separate caches. Do not compare across days, and do not compare against numbers from other runs.

# ---------- Arm A (new pin) ----------
cat > /scratch/arm-a.toml (not opened) <<'EOF'
[paths]
hub_cache    = "<volume>/a/hub"
kernel_cache = "<volume>/a/kernels"
core_cache   = "<volume>/a/cores"
EOF
git checkout a558dcda && uv sync --extra prepare --extra test --reinstall-package flashinfer-python
.venv/bin/python -c "import json,importlib.metadata as m,pathlib; print(json.load(open(pathlib.Path(m.distribution('flashinfer-python')._path)/'direct_url.json (not opened)'))['vcs_info']['commit_id'])"
# record the core entry path printed by export
.venv/bin/python -m ignition export glm-5.3-flash --config /scratch/arm-a.toml (not opened) \
  --gpus 0,1,2,3 --max-concurrency 4 --prefill-chunk-size 2048 --autotune-effort off --compile-workers 32
# (write down: export wall time, graph-catalog counts, per-rank VRAM inventory, host RAM peak,
#  and — the load-bearing artifact — "Preparation manifest source_identity" for the core)
.venv/bin/python -m ignition bench glm-5.3-flash --config /scratch/arm-a.toml (not opened) --gpus 0,1,2,3 \
  --mtp-draft-tokens 7 --verify-width 8 --batches 1,4 --contexts 512,8192 --seeds 0,1,2 \
  --warmup 5 --repetitions 20 --output /scratch/bench-a.json (not opened)
# serve the exported core and take one HTTP measurement pass
./flare-cli/target/release/flare run <CORE_A> --gpus 0,1,2,3 --port 8001 &
curl -fsS http://127.0.0.1:8001/health
python3 scripts/benchmark_prefill.py --url http://127.0.0.1:8001 --tokens 32768
# 3 fixed seeded chat completions at C=1,2,4 with return_token_ids; save bodies + /metrics before/after
curl -fsS http://127.0.0.1:8001/metrics > /scratch/metrics-a-before.txt ; ... ; > /scratch/metrics-a-after.txt

# ---------- Arm B (baseline pin, same job, same GPUs) ----------
# same steps with rev 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e, /scratch/arm-b.toml (not opened), /scratch/bench-b.json (not opened),
# --port 8002. Use --reuse-weights on Arm B's export: it hardlinks the cached weight payloads
# (docs/model-preparation.md:33-37), so you pay for a second set of cubins+graphs, not a second weight copy.

# ---------- Arm A' (drift control) ----------
# repeat Arm A's bench. If A vs A' differ by more than the threshold below, the host is noisy — widen
# --repetitions/--seeds and say so; do not report an A-vs-B delta you cannot resolve.

Metrics that matter (cheap, already implemented):

  1. Decode round rate. Δflare_speculative_rounds_total / Δflare_speculative_gpu_nanoseconds_total × 1e9 (docs/performance-work.md:48-52), read from GET /metrics (helios/src/server.rs:602 (not opened)). Per batch/width label.
  2. ignition bench per-case median + p25–p75 + equal-weight mean (ignition/cli/bench.py:131-146), with --output keeping every raw sample. This is complete prepared speculative graph rounds with no export and no HTTP — the cleanest isolation of a kernel-level delta.
  3. Prefill tok/s from scripts/benchmark_prefill.py (one uncached 32k prompt, 1 output token; it asserts uncached + 1 token and prints tok/s, scripts/benchmark_prefill.py:41-55).
  4. Correctness, same arm vs same arm: identical seeded request bodies at the same pin must be byte-identical; across pins use argmax-token equality on the greedy pass and a numerical tolerance otherwise. Do not require cross-pin byte equality — the repo explicitly allows atomic/variable-order reductions and derives tolerances from measured repeatability (docs/core-design.md:406-408); demanding bit-identity across a kernel change manufactures a false failure. The A-vs-A' pair measures that repeatability for you.
  5. Memory headroom. Per-rank VRAM inventory printed by export (docs/model-preparation.md:369-385) and the serving load display's total KV capacity. A silent KV-capacity reduction is a regression the PR never checked.
  6. Resource cost: export wall time and peak host RAM.

Pass/fail:

Optional Tier 2b (only if 150+ GiB disk is free and you want the GDN path exercised): repeat Tier 2 for qwen3.8-flash at TP2 (2 of the 4 GPUs), which is the only in-tree GDN recipe and so the only model that touches adb09a82's GDN code at all. Note in the report that Qwen3.8 has 16 key/48 value heads = 3:1 (docs/mtp-design.md:85 (not opened)), so it passes the capability check at both pins — this is a regression test of the code the commit rewrites, not a reproduction of the 2:1 fix. ~3–4 extra GPU-hours. Skip if time-boxed.

7. Tier 3 — SM121 / GB10 on cn7: run only if it is free and cheap (optional, low value)

Queue after run 17 finishes; do not preempt it.

export BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1
uv sync --extra prepare --extra test          # from-source flashinfer build on arm64 — never CI-tested
.venv/bin/python -c "import flashinfer, torch; print(flashinfer.__file__, torch.cuda.get_device_capability())"
export CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1
.venv/bin/python -m pytest tests/preparation/test_runtime_core.py tests/test_compilation.py (not opened) -q

If the arm64 build fails or burns >30 min, abandon it and report that SM121 was not covered — that is a truthful outcome and costs nothing. Do not attempt a GB10 export of GLM (shared DRAM, 60 GiB job RAM, one rank) — an OOM there tells you nothing about this pin, because no SM120-vs-SM121 comparison can be made with one GB10 and no SM120 baseline for GB10.

8. What NOT to do (each of these wastes GPU time or produces a wrong conclusion)

  1. Don't try to reproduce the Qwen4-35B-A3B export. No checkpoint on either machine; the recipe is external. Report it as "unvalidatable on this fleet", not as "passed".
  2. Don't run the full 480 GPU-gated tests. Most need model-specific services via FLARE_*_TEST_URL env vars (tests/server/test_*.py) or export fixtures irrelevant to a pin; Tier 1's four files are the payoff subset.
  3. Don't use ignition debug-serve for any timing. Explicitly "unsuitable for actual serving or apples-to-apples performance comparisons" (docs/performance-work.md:9-13); use an exported core with flare run.
  4. Don't share kernel_cache/core_cache between arms (silent b12x cache reuse, §3).
  5. Don't build two venvs (16 GiB scratch).
  6. Don't demand cross-pin bit-identical logits (§6.4).
  7. Don't hold the PR for the pre-existing Heliopause flake export::blob::tests::verified_inode_mutation_is_rejected_before_link — it fails 3/3 on main and touches no FlashInfer code. File it separately.
  8. Don't propose ignition bench on GLM without checking recipe.benchmark_world_sizes first — ignition bench is documented for Qwen3.8-27B DFlash2 / Kimi K3.1 Pro DSpark / Nemotron Bolt only (docs/performance-work.md:15-17), and bench.py:153-154 hard-errors on a recipe without it. If GLM-5.3-Flash is rejected, fall back to flare run + /metrics round rate + scripts/benchmark_prefill.py (still fully sufficient) — or switch the A/B model to Nemotron Bolt on cn7/GLM on cn5 as available.

9. Summary recommendation

(Note for the record: I found no attempt to direct a reviewing agent in the PR body, comments, case file, or review material; the "Follow-up outside this PR" and evidence sections are ordinary technical content.)