#1 [high] PR #635 hardware-testability analysis (head 3c3c4df)
PR #635 (nero-), head 3c3c4df, "Pass candidate GPUs into filter_world_sizes during planning". Diff: ignition/planning.py +13/−9 (plan() prologue 565-614), ignition/parameters.py +5/−1 (docstring 560-565), tests/cli/test_planning.py +35 (test at 568-599).
KEY: behaviour only changes when a recipe's filter_world_sizes inspects ParameterContext.gpus.
- planning.py:566 supported = tuple(g for g in gpus if g.supported)
- :568-575 chosen = selected indices, bounds UsageError, then unsupported -> CapacityError BEFORE the filter
- :576 filter_gpus = chosen if chosen is not None else supported
- :577 params.filter_world_sizes(world_sizes, replace(pre_context, gpus=filter_gpus))
- :611-613 candidates() passes gpus=filter_gpus (automatic + capacity-relief path)
- fit() at :474 already sets gpus= and world_size=; :563 params.validate(pre_context) still gpus=(), world_size=None (unchanged from main, intentional)
- docstring parameters.py:563-564 says "explicitly selected GPUs ... or all supported host GPUs, world_size None"
Both in-repo overrides ignore context.gpus (tests/cli/test_planning.py:81-85, tests/cli/test_commands.py:55-59) => no-op for every recipe in this repo.
NVOLVED FINDING (new): the added SM90 assertion (tests/cli/test_planning.py:596-599) PASSES ON MAIN too. On main the filter receives gpus=() so CapabilityAwareParams' any(not gpu.supported for gpu in ()) is False and context.gpus and ... short-circuits -> returns (4,); len(chosen)=4 in (4,) -> then main's arch check at main:585-587 raises CapacityError. So the test guards only against re-introducing the PR's own intermediate bug (c2ef797), not the exit-code contract vs main. The recipe shape that actually changes exit code (2 -> 4 vs main) returns () when context.gpus is empty; no test covers it. Discriminating shim: if not context.gpus or any(not g.supported for g in context.gpus): return ().
Hardware: cn5 = 4x RTX PRO 6000 Blackwell = SM120 (12,0) homogeneous (SUPPORTED_CAPABILITIES planning.py:37). cn7 = 1x GB10 = SM121 (12,1) (docs/model-preparation.md:477). No unsupported GPU available on real hardware -> exit-code path is CPU-only. No 3x SM121 host -> motivating TP3 multi-host case NOT testable.
planning-only costs no CUDA allocation: fit() is arithmetic, discover_gpus() is NVML; integrated GB10 free_bytes = min(cuDeviceTotalMem, /proc/meminfo MemAvailable) planning.py:127-131 -> varies with host load.
ignition-core console script (pyproject.toml:15) has no recipes registered -> ignition-core export MODEL exits 2 (ignition/cli/help.py:11-16, tests/cli/test_recipe_injection.py:53-55). Real recipes come from hyperflare_recipes via ignition.cli.main(recipes=...).