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
- One venv, never two.
torch==2.14.1+cu132+ a from-source flashinfer build is large, and both machines give a job only 16 GiB scratch. Flip the pin in place anduv sync --extra prepare --extra test --reinstall-package flashinfer-python --reinstall-package flare-heliopausebetween arms. Do not create a second virtualenv. - One cache directory per arm.
B12X_COMPILE_CACHE_DIRiskernel_cache/b12xwith no pin component (ignition/cli/environment.py:48) and "b12x's compile-cache keys do not hash kernel source" (scripts/b12x_gemm_stage_race.py:23-24). Sharing a kernel cache across arms can silently reuse the other arm's binaries and manufacture a false "no difference". Use a distinct[paths] kernel_cache(andcore_cache) per arm — valid sections/keys inignition/cli/config.py:22-33. - Verify the installed revision, don't assume it.
uv syncis silent about which git SHA landed:
Record.venv/bin/python -c "import importlib.metadata as m; print(m.distribution('flashinfer-python')._path)" # then read direct_url.json (not opened) .venv/bin/python -c "import flashinfer; print(flashinfer.__file__)"direct_url.json(not opened)'svcs_info.commit_idin the results table for every run. A test that reports "new pin" without this line is worthless. - Disk preflight.
df -hon the largest writable volume. Both job types advertise only 16 GiB scratch while the Qwen3.8 checkpoint is 95.12 GiB stored / 66.82 GiB GPU-bound (docs/core-design.md:682-692) and a packed core is comparable. Point[paths] hub_cache,core_cache,kernel_cacheat that volume before any export. If < ~150 GiB free, skip Tier 2b entirely. - Recipes: env A = PR-head checkout; env B =
local-inference-lab/hyperflare-recipesatd248db6(as the author used) with ignition installed from the PR-head checkout. That repo'suv.lockpins ignitionc513e46/flashinfer5a8ceedand its freshuv syncfails withImportError: cannot import name 'AsyncTransferChannel'(PR body, follow-up), so bypass the lock. cargo build --release --manifest-path flare-cli/Cargo.toml(not opened) (docs/model-preparation.md:70-75). A dev signing key is created automatically when[publishing]is absent (docs/model-preparation.md:51-54).
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):
- Decode round rate.
Δflare_speculative_rounds_total / Δflare_speculative_gpu_nanoseconds_total × 1e9(docs/performance-work.md:48-52), read fromGET /metrics(helios/src/server.rs:602(not opened)). Per batch/width label. ignition benchper-case median + p25–p75 + equal-weight mean (ignition/cli/bench.py:131-146), with--outputkeeping every raw sample. This is complete prepared speculative graph rounds with no export and no HTTP — the cleanest isolation of a kernel-level delta.- 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). - 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. - 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.
- Resource cost: export wall time and peak host RAM.
Pass/fail:
- PASS — export completes on both arms; graph-catalog counts are identical (record them; a differing count means the pin changed a shape decision, which contradicts the PR's "shapes they already used" claim); seeded outputs match per arm and are token-equal across arms on the greedy pass; all four latency metrics for Arm A are within 2% of Arm B after the A-vs-A' drift check (2% is the repo's own publication bar,
docs/prefix-cache-offload.md:1761); no CUDA errors; run completes without job-scratch OOM. - FAIL (blocks merge) — any arm-A export/prep failure; any crash or CUDA error; a KV-capacity or VRAM regression outside noise; a latency delta that survives the drift control. File the delta as a #217 finding and recommend pinning
adb09a82instead, which isolates this PR to the Qwen4 GDN shapes (the PR itself offers this escape hatch, and closed #733 corroborates thatadb09a82alone is sufficient for the Qwen4-35B-A3B export). That is a one-character-class change to the same line and needs no code review round. - Budget: expect ~4–6 GPU-hours total on cn5 (two exports + three bench runs + two short serving passes). Export is the dominant cost; tune with
--autotune-effort offas the author did, and skip--lock-gpu-clocks(it needssudo -n nvidia-smi, docs/model-preparation.md:193-202) — instead keep both arms on the same unlocked footing and lean on the A-vs-A' control.
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)
- 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".
- Don't run the full 480 GPU-gated tests. Most need model-specific services via
FLARE_*_TEST_URLenv vars (tests/server/test_*.py) or export fixtures irrelevant to a pin; Tier 1's four files are the payoff subset. - Don't use
ignition debug-servefor any timing. Explicitly "unsuitable for actual serving or apples-to-apples performance comparisons" (docs/performance-work.md:9-13); use an exported core withflare run. - Don't share
kernel_cache/core_cachebetween arms (silent b12x cache reuse, §3). - Don't build two venvs (16 GiB scratch).
- Don't demand cross-pin bit-identical logits (§6.4).
- 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 onmainand touches no FlashInfer code. File it separately. - Don't propose
ignition benchon GLM without checkingrecipe.benchmark_world_sizesfirst —ignition benchis documented for Qwen3.8-27B DFlash2 / Kimi K3.1 Pro DSpark / Nemotron Bolt only (docs/performance-work.md:15-17), andbench.py:153-154hard-errors on a recipe without it. If GLM-5.3-Flash is rejected, fall back toflare run+/metricsround 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
- Test: yes, but the value is in Tiers 0–2, not in the model the PR is about. Tier 0 alone (free, ~15 min) closes the only gate the repo treats as non-waivable; Tier 1 (~10 min, 1 GPU) is the cheapest real signal that the new rev loads on SM120; Tier 2 (~4–6 GPU-hours, cn5) is the only thing on this fleet that can bound the #217 MoE risk the PR leaves unmeasured — the finding most likely to change the merge decision.
- No speedup claim to verify. Say so plainly in the report so nobody "chases" one.
- Success criteria are: parity test green, GLM-5.3-Flash TP4 exports and serves at both pins, seeded outputs agree, and graph latency non-inferior within 2% — plus an explicit "Qwen4-35B-A3B GDN fix and SM121 not validated on this fleet" limitation.
- If Tier 2 shows a real #217 regression, the actionable outcome is not "reject": it is pin
adb09a82instead of6aff33c4, a one-line change that keeps the PR's entire functional value and drops both the unmeasured MoE delta and the coupling to open #723. - One non-GPU pre-merge item worth assigning in parallel: confirm
6aff33c4is a merged commit onlocal-inference-lab/flashinfermain(git ls-remote, §3) — #707 had to retarget exactly this, and #723's tester cites a different SHA (530e2473).
(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.)