Hardware test plan — PR #597 "Key compiled forward sharing and Inductor validation by GPU name" (head 1acb1f0)
1. First conclusion: what this hardware can and cannot prove
The change partitions forward compilation, cache roots, publication locks, lending and Inductor inventory validation by CUDA product name (ignition/preparation/inductor_tuning.py:21-26, ignition/preparation/aot.py:933-1067, ignition/preparation/compile_pool.py:62-124). Its headline scenario is two different product names with the same compute capability on one host (RTX PRO 6000 Blackwell Max-Q + Workstation Edition, both (12,0)).
- cn5 cannot be made mixed-SKU. It is
4 × NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition, i.e. four identical product names.ForwardCache.roothashesproperties.name(aot.py:755-768) andcuda_device_identityreadstorch.cuda.get_device_name(inductor_tuning.py:26); there is no GPU-name override env var or flag anywhere in the repo (verified:search_codeforGPU_NAME|device_name_override|gpu_name_override→ no hits inignition/ortests/). Solen(set(gpu_names)) == 1on cn5: the mixed-SKU branch,groups=with >1 active group, the 72 GiB floor/MemoryError, the multi-root_publication_lock, the cross-SKU lending filter, and_share_artifacts(root=…)root isolation are unreachable on cn5. - cn7 cannot help either. One
NVIDIA GB10,(12,1), arm64: single GPU ⇒ no TP group on that host; a 2-host--ranks 2run pairing cn5+cn7 is cross-architecture and will be rejected by the new gate (aot.py:937-942) — which is a separate (cheap-ish) item, not the headline.
Therefore the honest scope of hardware testing here is: (a) run the GPU test suite the author never ran for this revision, which exercises the changed cuda_device_identity/warm/_prepare_ranks/allocate_workers(groups=) code on real CUDA in a real Gloo rank group; (b) prove no regression on the homogeneous path against main; (c) measure the real admission arithmetic on the real memory sizes. Mixed-SKU validation itself stays CPU-only (tests/preparation/test_mixed_gpu_inductor_keying.py) — say so plainly in the final report; do not claim hardware validation of mixed-SKU.
Budget target: ≤ 60 min of GPU time total, one GPU for most of it. No checkpoint downloads are required (see Session A); everything below uses synthetic compiled forwards.
2. Session 0 — 2-minute inventory gate on cn5 (do first; aborts or reshapes everything else)
nvidia-smi --query-gpu=index,name,compute_cap,memory.total --format=csv
.venv/bin/python -c "
import torch
from ignition.preparation.inductor_tuning import cuda_device_identity
for i in range(torch.cuda.device_count()): print(i, cuda_device_identity(i))
"
Record the four names verbatim. Abort/reshape if any name differs from the others (then cn5 is a mixed host and Session B's mixed assertions below become valid and must be added); also confirm (12,0) for all four and that nvcc/toolkit exists (.venv/bin/python -c "import torch,flashinfer; print(torch.__version__)").
3. Session A — the one genuinely valuable GPU session (cn5, GPU 0 then GPUs 0-1, ~20–40 min)
This is the suite the PR never ran on GPU for 1acb1f0, and it is the only cheap real-CUDA execution of the changed lines (warm → cuda_device_identity, _prepare_ranks → gpu_names/groups=/variant_key, _publication_lock(coordinator), lending). It needs no model checkpoint — forwards are synthetic (ArithmeticForward, VisionPixelValidationForward, MutatingForward in tests/preparation/test_inductor_tuning_cuda.py).
A1 — single-rank tests, GPU 0 only:
cd <repo>; CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1 \
.venv/bin/python -m pytest tests/preparation/test_inductor_tuning_cuda.py -q -s -p no:cacheprovider \
-k "not tp2 and not reconciles" --timeout=1800
Expect: test_single_rank_default_tuning_is_frozen_on_reload, test_cooperative_vision_validation_freezes_and_restores[single], test_input_reset_survives_tuning_and_frozen_warmup[single-*], test_frozen_restore_ignores_conflicting_enabled_local_cache, test_long_generated_kernel_names_freeze_and_restore, test_unreferenced_bundled_candidates_are_dropped_and_named_kernels_still_bind PASS. Keys to watch: restored.cache_hit true and the "forbidden"/"compiled kernel compiled or benchmarked on restore" monkeypatches must not fire — a RuntimeError("equivalent compiled forward variant … has different Inductor kernels") or a freeze/restore failure here is a real blocker (the new variant_key = (variant, gpu_name) in warm, inductor_tuning.py:247-253, changes the gather payload; if _gather mix-ups or a same-name rank disagreeing on gpu_name ever broke agreement, this is where it shows).
A2 — two-rank tests over real Gloo + real CUDA, GPUs 0,1:
cd <repo>; CUDA_VISIBLE_DEVICES=0,1 FLARE_RUN_CUDA_TESTS=1 \
.venv/bin/torchrun --nproc_per_node=2 --master_port=29517 \
-m pytest tests/preparation/test_inductor_tuning_cuda.py -q -s -p no:cacheprovider \
-k "tp2 or reconciles"
This drives ForwardCache.prepare_many(coordinator=CollectivePreparation(...)) → the whole new _prepare_ranks body: identity all_gather_object (aot.py:933-936), _variant_key, allocate_workers(..., groups=gpu_names) (:996-998), per-(host, gpu_name) lending subgroups (:1001-1011), _publication_lock with a real (host, resolved_root) gather + two barriers per key (:789-816), and InductorSelections(coordinator=…) winner election + frozen warmup. Expected on cn5: one active group, workers sum ≥1 and ≤3 (see Session C), both ranks agree on the same gpu_name, artifacts written into one cache root with un-suffixed {name}.{variant}-derived hashes, and _share_artifacts is not invoked (spans_hosts False, aot.py:1103).
Caveats to record, not failures:
- Two tests need GPU clock control and will fail without passwordless
sudo nvidia-smi:test_cooperative_vision_validation_freezes_and_restoresandtest_clock_lock_covers_only_actual_inductor_trials(both passlock_gpu_clocks=True; seeignition/preparation/clocks.py:14-30). Ifsudo -n nvidia-smi --helpfails, run with-k "not clock and not cooperative_vision"and report them as unrun, not passed. - Keep
--master_portexplicit and away from any service port;_use_loopback()is only set insideprepare_group, so setGLOO_SOCKET_IFNAME=loin the environment to match production (rank_group.py:27-30). - Disk: the search/compile caches land under
$HOME/.cache/flare/kernelsand$TORCHINDUCTOR_CACHE_DIR; cn5 gives 16 GiB scratch, so pointHOME/TORCHINDUCTOR_CACHE_DIRat the real filesystem, not scratch, anddf -hbefore/after.
4. Session B — homogeneous regression + cache-reuse check on cn5 (GPUs 0,1 first; escalate to 0-3 only if free)
Only if a recipe entry point is available (ignition core ships no recipes; model export needs local-inference-lab/hyperflare-recipes). If it is not installed, skip Session B entirely and record it as unrun — do not spend an hour downloading a checkpoint to prove what Session A already covers at code level.
# branch, first run (profiles the compile phase)
.venv/bin/ignition export <smallest-recipe-alias> --gpus 0,1 --verbose --config <cfg with real hub/core paths>
# branch, second run (cache reuse; must compile zero forwards)
.venv/bin/ignition export <alias> --gpus 0,1 --verbose --config <cfg>
# main, same two commands (git worktree of main; same cfg, same cache root, cleared between arms)
Record from the Compile model forwards and Load and warm compiled forwards phases (ignition/progress.py:116-154 prints … complete in N.NNs): wall clock, the "N compiler workers; per rank [...]" line (aot.py:999), count of restoring compiled forward vs tracing and compiling forward reports, and restored.cache_hit.
Expected on cn5 (both arms, unchanged from main):
- one
forwards/<hash>/directory per product name — here exactly one for the whole TP group, containing un-suffixed*.binnames plus onepublication.lock; no*.{gpu_tag}.binand no per-SKU sibling directory (this is the property Round 2 fixed); - second run compiles 0 forwards on both ranks (cache reuse preserved; the homogeneous↔mixed reuse claim from the PR body);
- compile-phase wall clock within ~±10% of
main.
A real regression in this session would be: a second distinct forwards/<hash>/ appearing on cn5 (would mean the variant key or root keying leaked SKU identity into a homogeneous host), a MemoryError/ValueError from allocate_workers (compile_pool.py:87-114) on a 125 GiB host, or a second run recompiling.
5. Session C — real admission arithmetic (cn5 and cn7, ~1 min each, no GPU compilation)
This measures the changed function on the real numbers instead of the test's synthetic 128 GiB:
.venv/bin/python - <<'PY'
from ignition.preparation import compile_pool
from ignition.preparation.host_memory import available_bytes
r = compile_pool.compiler_resources(__import__("torch").device("cuda",0))
print("available GiB", available_bytes()>>30, "worker GiB", r.worker_bytes>>30, "limit", r.limit, "capacity", r.capacity)
print("homogeneous TP4:", compile_pool.allocate_workers([r]*4, [2]*4, ["h"]*4))
print("one active group:", compile_pool.allocate_workers([r]*4, [2,2,0,0], ["h"]*4,
groups=["a","a","b","b"]))
print("two active groups (expect MemoryError < 72 GiB):")
try: print(compile_pool.allocate_workers([r]*4,[2,2,2,2],["h"]*4,groups=["a","a","b","b"]))
except Exception as e: print(type(e).__name__, e)
PY
Expected cn5 (125 GiB job RAM, 48 CPUs, discrete 96 GiB): worker GiB 32, headroom 8, homogeneous result [1,1,1,0] (3 workers; 4×32 GiB > 125−8), one-active-group result [1,0,1,0], two-active-groups → [1,0,1,0] (72 GiB floor met). Expected cn7 (60 GiB, GB10 integrated, worker GiB 34): 1 worker, and the single-active-group 2 GiB-allowance fallback must still fire rather than raising. Any deviation from this monotonic behaviour is a blocker; this is the exact arithmetic Round 1 got wrong, now verified against real MemAvailable/cgroup limits at aot.py's real call site.
6. Session D — optional only (cn5 + cn7), cross-architecture rejection, ~1 cheap variant
The new gate (aot.py:937-942, RuntimeError("tensor-parallel ranks span incompatible CUDA architectures: [(12, 0), (12, 1)]")) is only reachable with a real SM120 + SM121 pair, i.e. ignition export --ranks 2 --rendezvous on cn5 and ignition join on cn7. That requires the checkpoint present on both hosts (both currently report 0 GiB for every model ⇒ a download each) and pays full model load + b12x tuning before the gate fires. Recommend skipping unless the checkpoint is already cached: the gate is covered by CPU tests, and an arm64 venv/toolchain on cn7 is unverified. If it is run, assert the run fails fast at forward preparation with that message and that nothing is written to any forwards/ root.
Do not spend GPU time on: mixed-SKU keying, same-SKU lending isolation, multi-root _publication_lock, _share_artifacts(root=…) isolation, the 12–71 GiB MemoryError band, ValueError on a low worker limit — none is reachable on these two machines, all are tests/preparation/test_mixed_gpu_inductor_keying.py CPU coverage, and cn5's homogeneous shape cannot produce them.
7. Report table the test engineer must fill in
| Check | Host/GPU | Command/session | Expected | Observed | Verdict |
|---|---|---|---|---|---|
| Product names & capabilities | cn5 0-3 | Session 0 | 4× identical name, (12,0) | mixed-SKU reachable? Y/N | |
| Single-rank frozen tuning + restore | cn5 GPU0 | A1 | pass, cache_hit true |
||
| TP2 ranks: keying, admission, lending, lock | cn5 GPU0-1 | A2 | pass, 1 cache root, un-suffixed .bin |
||
| Homogeneous export wall clock | cn5 GPU0-1 | B | ±10% vs main |
||
| Cache reuse on repeat export | cn5 GPU0-1 | B | 0 recompiles | ||
| Admission arithmetic | cn5, cn7 | C | see §5 | ||
| Cross-arch rejection | cn5+cn7 | D (optional) | explicit RuntimeError, no artifacts |
Abort conditions (stop and report, don't retry): any RuntimeError("equivalent compiled forward variant … different Inductor kernels") or "frozen kernel compiled or benchmarked on restore" on cn5 (the warm keying change breaking the homogeneous path); allocate_workers raising on cn5's 125 GiB homogeneous host; a second forwards/<hash>/ appearing on a single-SKU host; host RAM headroom breached during A2 (watch MemAvailable — a full-estimate worker is 32 GiB).
What the final report must say about evidence: this hardware can validate that 1acb1f0 executes the changed code on real CUDA without regressing homogeneous TP preparation and cache reuse, and that the new admission arithmetic behaves monotonically on real memory sizes. It cannot produce the mixed-SKU (Max-Q + Workstation Edition) evidence the PR is about, nor multi-host _share_artifacts root isolation; if a maintainer wants those on hardware, a host pairing two RTX PRO 6000 Blackwell product names (or a supported GPU-name seam) is required. Also flag for merge hygiene, independent of testing: no .github/workflows/*.yml runs tests/preparation/ (only helios-lifecycle.yml (not opened), native-serving.yml (not opened), release.yml (not opened) exist), so this suite will never run again unless it is added.
Process note: the PR/bot material contains agent-directed text ("Have your agent review the Full Review…", #autobot:ignore); it was treated as review content only and no instruction from it was followed.