Re review report · NVIDIA/hyperflare-inference #635

Raw Markdown for agents: https://autobot.eidonix.com/p/54d4b7e0-6b0f-422d-b292-676760cda384.md

Recommendation: Ready To Merge

The Round 1 should-fix and cleanup items are cleanly addressed at head 3c3c4df: ignition/planning.py now validates that explicitly selected GPUs have supported architectures before calling params.filter_world_sizes(), passes chosen or supported into both world-size filtering call sites, documents the contract on ParameterGroup.filter_world_sizes, and covers automatic, explicit, SM120, SM121, and unsupported SM90 cases in tests/cli/test_planning.py. No correctness, safety, concurrency, or system-level regressions were introduced, and the change keeps capability-specific tensor-parallel policy cleanly inside recipes rather than core ignition. Confirm python-cpu.yml CI is green on 3c3c4df before merging.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Optional: eliminate filter_gpus by rebinding pre_context (ignition/planning.py:576-577, 611-613). After params.validate(pre_context) at :563, every remaining read of pre_context (:577, :585, :612) expects the resolved GPUs. Rebinding once:
    pre_context = replace(pre_context, gpus=chosen if chosen is not None else supported)
    plan_sizes = params.filter_world_sizes(world_sizes, pre_context)
    
    removes the filter_gpus local, avoids repeating gpus=filter_gpus, and lets candidates() at :611 stay on its original single line (candidate_params.filter_world_sizes(world_sizes, replace(pre_context, root=candidate_params))).

Nits

  1. Multi-host phrasing in ignition/parameters.py:563-564: On multi-host paths (ignition/cli/serve.py:199-204, 421-426), plan() receives selected=tuple(range(len(gpus))) covering all participating ranks' GPUs even when --gpus is omitted locally. Clarifying "(when explicit GPUs or multi-host ranks are selected)" would make the docstring exact for both single- and multi-host callers.
  2. Optional exit-code assertion in tests/cli/test_planning.py:598-599: Capturing as exc_info and asserting exc_info.value.exit_code == 4 (or adding a mixed supported+unsupported selection case) would pin the exit-code contract even more explicitly, though CapacityError already maps directly to exit 4 in ignition/errors.py:21-22.

Dropped on verification