PR #635: Pass candidate GPUs into filter_world_sizes during planning

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/2e55f562-8fca-42d7-93b8-c2b6ef58bb79

Opened by a workflow run, Nov 30, 2026 5:41 AM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: nero- (CONTRIBUTOR; Discord "nero"; commits as Jonathan Gutierrez) Motivation: Planning picks a tensor-parallel world size before it resolves GPUs, so a recipe's filter_world_sizes hook always saw an empty context.gpus and could not gate TP sizes on GPU architecture (cross-host SM121/GB10 RoCE TP3 vs single-host SM120 PCIe TP4). The PR resolves supported/chosen GPUs first and passes them into the filter. Scale: +41 / −5 lines in 2 files (ignition/planning.py +9/−5, tests/cli/test_planning.py +32/−0) Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #635 "Pass candidate GPUs into filter_world_sizes during planning"

Charter alignment — good. The change keeps ignition.planning model-agnostic: capability policy stays in a recipe RecipeParameters subclass reached through the existing #545 hook, with no per-model branch and no new flag or CLI surface. The motivating case (cross-host SM121/GB10 RoCE TP vs single-host SM120 PCIe) sits squarely inside the stated SM120/SM121 and cross-node goals. It also generalizes gating that core used to hardcode before #499/#508, which is the strongest structural argument for the approach.

Novelty & status — additive, not obsolete or superseded. main still calls the filter with gpus=() (planning.py:566, :609), and no commit since 0a8c20f touches either file, so the PR is rebase-clean. #533 edits the same prologue but implements a different hook (--request-context); it is a rebase conflict, not a canonical replacement.

Evidence — weak. The only backing is one CPU test on synthetic Gpu descriptors, and no CI check ran on the head, so the reported "7 passed" is unverified from this repo. The real consumer and the only live hardware validation live in an external hyperflare-recipes PR that cannot be inspected. The multi-host path — topology-derived GPUs via serve.py:421, --ranks, peer topology — which is precisely the stated motivation, is untouched by the test. Charter "What gets merged" lists maintainer requests, roadmap items, reproducible bugs, measured issues, or bad docs; #635 cites none, though docs/TODO.txt:263-267 (RoCE ring TP2/TP3 qualification) is the adjacent, uncited line.

Cost — low, with two real defects. +9/−5 in one file, no manifest/schema/CLI change, verified backward compatibility (both in-repo overrides ignore context.gpus). But the description claims error behaviour is "unchanged" while the out-of-range --gpus check now precedes the empty-plan_sizes UsageError (finding 1) — an undeclared precedence swap. Second, validate() still receives gpus=() while the filter next to it receives real GPUs (finding 2), an asymmetry a recipe author will trip over. The hook also still cannot see world_size (finding 3), and automatic vs explicit --gpus pass different GPU sets (finding 4).

Verdict: Worth it with changes. Small, well-placed, and a genuine completion of #545; it is the right layer. Before merge: disclose or revert the error-precedence swap, resolve or document the validate/filter asymmetry, get CI to actually run the CPU suite, add --ranks/multi-host coverage, and cite the roadmap line or a maintainer request. Decide explicitly whether world_size belongs in the same context.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, enhancement, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +enhancement, +area:preparation

Subtraction and simplicity

Subtraction/Simplicity review of PR #635 (nero-, head c2ef797): ignition/planning.py +9/−5, tests/cli/test_planning.py +32/−0. The diff is substantively lean — no new flag, knob, config field, manifest entry, wrapper, fallback branch, or dead code, and no material AGENTS.md or module-convention violation. It moves one existing call later and fills in a context field fit() already populates. Three mechanical subtractions:

  1. ignition/planning.py:566, 573, 611-613 — one value ("the supported GPUs") is spelled three ways, and this PR itself added both tuple() conversions of the same list (566 builds a list, 573 converts, 612 converts again). Make :566 a tuple generator and use gpus=filter_gpus at :612. Safe because candidates() returns at :609-610 whenever chosen is not None, so at :611 filter_gpus == tuple(supported) and only root differs; all other uses (:590, :602, :604, :614, :646) are tuple-agnostic. Do NOT collapse :573 into chosen or tuple(supported) — an empty selected yields falsy ().

  2. tests/cli/test_planning.py:577-588 — the new test hand-builds a Checkpoint, a Recipe and two Gpu tuples that the module's own _recipe() (:118) and _gpu() (:154) already build; it is the only test in the file that does so (20+ other call sites). Replace with _recipe("toy", ranks=(3,4), parameters=CapabilityAwareParams(...)) plus _gpu() tuples: ~12 lines to ~5, all four assertions preserved, and the one-off 140 GiB free==total GPUs disappear.

  3. tests/cli/test_planning.py:591, 593, 595, 596 — reserve_bytes=0 is a no-op; the default is 0 (ignition/parameters.py:1405) and _normalize_parameters only overrides a non-None argument (planning.py:440-444). Delete the four kwargs.

Not proposed: the double filter_world_sizes evaluation (:574 then :611) is pre-existing in kind (main had :566 and :609); fixing it would add a branch, a net complexity increase.

Open: whether reserve_bytes=0 was habit-copied, and whether the external recipes consumer cares (it reads Plan/ParameterContext, not these locals).

Full report · Notes

Correctness and contracts

Reviewed PR #635 (Correctness, Contracts & System-Level Consequences) at head c2ef797 against main. The layer is right — GPU resolution before filter_world_sizes, policy in the recipe, no model branch in core — but the ordering is wrong in one place.

  1. Major: filter_gpus = chosen (ignition/planning.py:573) hands raw, possibly unsupported explicit --gpus devices to the filter, while the architecture CapacityError stays below at :587-589. A capability-aware recipe (the shape the PR's own test blesses, tests/cli/test_planning.py:571-575) returns (), so the new empty-size UsageError at :575-576 fires: ignition export MODEL --gpus 0 on an SM89/SM90 flips from "GPU 0 (…) is not an SM87, … SM121 device" (exit 4) to "no supported tensor-parallel size remains…" (exit 2, ignition/errors.py:13-22, docs/cli-design.md:1533-1534). Automatic path is fine (it uses tuple(supported)).
  2. Major (same root): that empty-size error now sits above the params.validate whose comment at :580-581 says explicit parameter UsageErrors must surface "before falling back to a generic capacity/GPU-count error" — the comment's intent is inverted for exactly the recipes this PR enables.
  3. Minor: automatic sees the whole supported host set, explicit sees the exact selection (:573 vs :611-613); world_size still None at both call sites though fit()/Plan.parameter_context pass it; no doc states the contract (docs/preparation-development.md:32-36).
  4. Minor: empty-size vs out-of-range --gpus precedence swapped vs main (main:566-568, 573-575 → head :568-576); both exit 2.
  5. Minor: test gaps — no unsupported-explicit-GPU case (that message has zero repo coverage), second call site untested, multi-host untested (disclosed), and no CI ran on the head; "7 passed" is consistent with the file's 7 test functions but unverified.
  6. Sound: no concurrency/hot-path/memory/blast-radius surface (plan() is CLI setup only), backward compatible, no sign-off trigger, manifests byte-identical, no metric-span change, platform-neutral.

Fix: vet chosen for supported architecture before filtering (or pass tuple(gpu for gpu in chosen if gpu.supported)), document the hook's context, add the unsupported---gpus test.

Open: whether the precedence swap and mask are intentional; the external recipes companion PR (only live evidence) and multi-host --ranks behavior could not be inspected.

Full report · Notes

Final review

Recommendation: Changes Requested

The design and layering are right—resolving candidate GPUs before RecipeParameters.filter_world_sizes() keeps ignition.planning model-agnostic, matches the existing ParameterContext.gpus contract from fit(), and cleanly enables SM120/SM121 capability-dependent TP sizing on both single-host and multi-host paths. One concrete defect in the reordered prologue needs fixing before merge: explicit --gpus currently forwards unsupported GPUs (e.g., SM89/SM90) into filter_world_sizes() before the architecture check runs, which can turn a hardware CapacityError (exit 4) into a misleading parameter UsageError (exit 2) for capability-gated recipes. Moving the existing 3-line if not gpu.supported: check ahead of filter_world_sizes() (with a matching unit test and passing python-cpu.yml CI) resolves this cleanly.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

  1. Reject unsupported explicitly selected GPUs before calling filter_world_sizes() (ignition/planning.py:568-576, 587-589).
    • Verified behavior/impact: When selected is not None, chosen = tuple(gpus[index] for index in selected) (:572) is drawn from raw gpus and passed straight into params.filter_world_sizes(..., replace(pre_context, gpus=filter_gpus)) (:573-574), while the if not gpu.supported: architecture check stays below at :587-589. If a capability-aware recipe returns () for unsupported architectures (e.g., SM89/SM90, where Gpu.supported at :51-53 is False), :575-576 raises UsageError("no supported tensor-parallel size remains for ... with the selected parameters") (exit code 2, ignition/errors.py:13-14) instead of CapacityError("GPU ... is not an SM87, SM103, SM110, SM120, or SM121 device") (exit code 4, ignition/errors.py:21-22), violating the documented preparation exit-code contract (docs/cli-design.md:1533-1534) and giving users a misleading parameter diagnostic for unsupported hardware.
    • Fix: Move the existing 3-line loop from :587-589 directly into the if selected is not None: block right after chosen = tuple(gpus[index] for index in selected) (:572), before filter_gpus and filter_world_sizes(). This guarantees filter_world_sizes() only ever receives supported GPUs on both automatic and explicit paths while preserving pre-GPU params.validate(pre_context) (:563), out-of-range --gpus bounds checks (:569-571), and supported-GPU validation such as SM103 checks (:582, :478). Add a test case in tests/cli/test_planning.py verifying that explicit --gpus on an unsupported capability (e.g. (8, 9)) with a capability-filtering recipe raises CapacityError matching "is not an".

Subtract / Simplify

  1. Build supported as a tuple once and reuse filter_gpus (ignition/planning.py:566, 573, 611-613).
    • supported is never mutated in plan() (only iterated, indexed via sorted, or passed to len() at :590, 602, 604, 614, 646), yet it is constructed as a list at :566 and converted via tuple(supported) twice at :573 and :612.
    • Change :566 to supported = tuple(gpu for gpu in gpus if gpu.supported), :573 to filter_gpus = chosen if chosen is not None else supported (keep the explicit chosen is not None check rather than chosen or supported), and :612 to gpus=filter_gpus (equivalent because :609 returns early whenever chosen is not None).
  2. Reuse existing _recipe() and _gpu() helpers in the new test (tests/cli/test_planning.py:577-588).
    • Every other test in tests/cli/test_planning.py uses _recipe() (:118-151) and _gpu() (:154-156). Replacing the hand-constructed Checkpoint, Recipe, and Gpu tuples with _recipe("toy", device_gib=60, ranks=(3, 4), parameters=CapabilityAwareParams(max_concurrency=4, prefill_chunk=512)), ckpt = model.checkpoints[0], and _gpu(i) / _gpu(i, capability=(12, 1)) cuts ~12 lines to 4 while preserving all assertions and memory-fit margins.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: no (94%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with. decide malicious: all_clear (100%): No malicious content found

explore

Author: nero- (CONTRIBUTOR; commits as Jonathan Gutierrez; Discord "nero") Motivation: Flare planning picks a tensor-parallel world size and then picks GPUs, but the recipe hook that narrows the world-size list ran before GPUs were resolved, so it saw an empty GPU list. The PR resolves GPUs first and passes them in, letting recipes choose valid TP sizes per architecture (e.g. cross-host SM121/GB10 versus single-host SM120). Scale: +41 / −5 lines in 2 files Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #635 "Pass candidate GPUs into filter_world_sizes during planning"

Charter alignment. Good. Architecture-dependent world-size policy stays inside recipes (ParameterGroup.filter_world_sizes); no per-model branches or flags enter ignition.planning. That fits "keep the runtime small and model-agnostic" and "solve the right problem in the right place," and matches the #212 preference for one general mechanism. Ownership is correct: runtime generic, capability logic in recipes. The description carries the required four parts (why, what changed, claimed result, evidence plus stated limitations).

Novelty & status. Genuinely additive — not obsolete, not superseded. main has not drifted, the branch is rebase-clean at c2ef7974, no merged fix exists on main, and no competing open PR covers this hook. The gap is real: fit() populates context.gpus, while filter_world_sizes still receives gpus=().

Value vs maintenance cost. Footprint is small (ignition/planning.py +9/−5, one test), the blast radius is a single one-shot setup function reached from serve/bench/preparation, and both in-repo filter_world_sizes overrides remain backward compatible — a defensible cost for this narrow, general hook. The evidence, however, is thin by charter standards: synthetic Gpu descriptors on CPU, zero human review, no labels, no cited issue/roadmap item/maintainer request, and the only live SM121 multi-host validation lives in local-inference-lab/hyperflare-recipes#103 (DeepSeek V4.1 TP3), unreadable from this repository.

Must fix before merge.

  1. Real CLI regression vs main: explicit --gpus forwards unsupported devices into the filter (planning.py:573-574), turning a hardware CapacityError (exit 4) into a parameter UsageError (exit 2) at :575-576 (errors.py:13-22, cli/__init__.py:373-377). Pass supported devices to the filter rather than hoisting the :587-589 architecture check above it — hoisting would instead mask recipe-declared UsageErrors for mixed selections, repeating the same precedence bug.
  2. The 11:17 UTC "addressed all review items" reply is not on the branch: supported is still a list (:566), candidates() still passes tuple(supported) (:611-612), the architecture check remains after the filter, the filter_world_sizes docstring is unchanged, and no unsupported-GPU test exists.
  3. Unexplained asymmetry/limitation: params.validate(pre_context) (:563) still sees gpus=() while the filter sees real GPUs, and neither call site receives world_size.

Verdict: Worth it with changes. Small, charter-compliant, right-layer — merge only once the exit-code regression is fixed without masking parameter errors, the claimed edits actually land with an unsupported-GPU --gpus test and green CI, and the benefit is substantiated beyond unreadable external links.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, enhancement, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

No label changes

Subtraction and simplicity

Subtraction/Simplicity/Conventions lens on PR #635. Verdict: the diff is already lean — no new flags, knobs, wrappers, fallbacks, or duplicate helpers. Two worthwhile deletions in the PR's own new lines.

Head correction: head is now 3c3c4df9, not the dossier's c2ef7974. The author's claimed edits are all PRESENT (tuple supported at ignition/planning.py:566; check hoisted at :573-575; filter_gpus in candidates() at :611-613; docstring at ignition/parameters.py:560-565; test reuses _recipe()/_gpu() with SM90 at tests/cli/test_planning.py:579-599). Dossier amendment A5 is superseded and must not be cited as open.

Findings:

Rejected as wrong simplifications: extracting a shared fixture (inline subclass matches test_planning.py:547-556 precedent) and reusing ToyShardingParameters (:62-115, ignores context.gpus).

Open: can't run tests or confirm head CI; S2 proven by code reading, not coverage.

Full report · Notes

Correctness and contracts

Reviewed PR #635 at head 3c3c4df (newer than the dossier's c2ef797 snapshot: the hoisted architecture check, the tuple supported, and the documented docstring are all now on the branch, so the dossier's A4/A5 "reply not on the branch" is superseded).

No Blocker or Major defects. The change's core invariant holds: filter_gpus is either chosen (each member screened by the architecture check at planning.py:573-575) or supported (:566), so filter_world_sizes can never see unsupported hardware, and the automatic no---gpus path still reaches the CapacityError at :590-591 exactly as main did.

Three Minor findings:

  1. Mixed explicit --gpus selections (some supported, some not) now raise the GPU-architecture CapacityError (exit 4) before the block whose own comment at planning.py:583-584 promises "Let parameter validation surface explicit UsageErrors … before falling back to a generic capacity error" — main reached that block first (main :577-587). Exit class 2→4 and message change; fix: keep the arch check after, pass tuple(g for g in chosen if g.supported).
  2. The new docstring at parameters.py:563-564 is wrong for multi-host: --gpus names one local GPU (serve.py:411-414) but plan() is called with selected=tuple(range(len(gpus))) over all peers (:421, :426), so the filter sees every rank's GPU labelled "explicitly selected".
  3. Test gaps: no mixed-selection case, no exit-code assertion, and the SM120 automatic assertion (test_planning.py:589-590) passes unchanged on main — only the SM121 cases (:594-595) exercise the new candidates() passthrough; no multi-host heterogeneous-capability test.

Sound, stated plainly: no concurrency/locking/buffering/metric-sampling/hot-path change; no wire, protobuf, manifest or captured-graph change; no OS-conditional code touched; RecipeParameters signatures unchanged and GPU policy stays in recipes; the PR description matches the head diff exactly and "29 passed" is consistent with the 29 tests that collect across the four named files.

Retracted: my earlier hypothesis that the automatic path flipped exit 4→exit 2 — it passes only supported devices, so it is identical to main. Open: python-cpu.yml (not opened) green on 3c3c4df is unconfirmed, and the only live SM121 evidence is external (local-inference-lab/hyperflare-recipes#103).

Full report · Notes

Re-review

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

Full report Decision to Test: yes (68%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes

Pre Test Report

Hardware test plan — PR #635 (Pass candidate GPUs into filter_world_sizes)

Bottom line first

The change should not consume a real export, serve, or benchmark slot, and there is no claimed speedup to measure. PR #635 is a pure planning-time change: it resolves candidate GPUs before calling RecipeParameters.filter_world_sizes() (ignition/planning.py:565-614, docstring at ignition/parameters.py:560-565, +35 lines of test at tests/cli/test_planning.py:568-599). It changes which tensor-parallel size is planned for capability-aware recipes and which error is raised for unsupported explicit GPUs — nothing on the serving path. There is no latency/throughput claim anywhere in the PR, and ignition bench measures only captured-graph latency, explicitly "not serving throughput" (ignition/cli/bench.py:120-122). So any "speedup" measurement would be measuring nothing.

What hardware can add is the one thing the CPU suite cannot: proof that the change is a no-op for real recipe filter_world_sizes() overrides (the only overrides that matter live in local-inference-lab/hyperflare-recipes, which cannot be inspected from this repo) and that the SM120/SM121 capability branch actually selects SM120→TP4 and SM121→TP3 on real NVML-discovered devices. That is a planning-only probe taking seconds and allocating zero GPU memory — plan()/fit() is arithmetic over Gpu descriptors; only discover_gpus() touches NVML (ignition/planning.py:56-91, fit() at :456-502).

Critical finding for the test engineer (not in any prior review)

The PR's new SM90 assertion does not distinguish this change from main. tests/cli/test_planning.py:596-599 uses a recipe subclass that returns () only if any(not gpu.supported for gpu in context.gpus). On main, filter_world_sizes() receives gpus=() (ignition/planning.py:130 ParameterContext.gpus default), so any(...) is False, context.gpus and ... short-circuits, and the shim returns (4,); len(chosen)==4 is in (4,), and main's own architecture check then raises CapacityError — the same exception the assertion expects. The test therefore pins the error contract but not the behaviour delta; it would also pass against the pre-fix head c2ef797, which is its real purpose. The recipe shape that actually changes the exit code versus main (an empty-gpus shim returning (), turning main's exit 4 into exit 2) has no coverage.

Consequence for hardware: do not spend GPU time trying to reproduce the exit-code regression. No SM89/SM90 device exists on cn5 or cn7, so the CapacityError path (ignition/planning.py:573-575) is unreachable on real hardware here and must be validated on CPU. If the engineer wants the missing discriminating case, the shim is one line: if not context.gpus or any(not g.supported for g in context.gpus): return ().

Available hardware mapped to the change

Machine Real capability Relevance
cn5 — 4 × RTX PRO 6000 Blackwell, 96 GiB SM120 (12,0), homogeneous, supported (SUPPORTED_CAPABILITIES, ignition/planning.py:37) The single-host SM120→TP4 half of the motivation. --gpus renumbering under CUDA_VISIBLE_DEVICES can be exercised here.
cn7 — 1 × GB10, arm64 SM121 (12,1) (docs/model-preparation.md:477) The SM121 half, but only TP1 is physically reachable. GB10 free memory is min(cuDeviceTotalMem, /proc/meminfo MemAvailable) (ignition/planning.py:127-131), so its free_bytes drifts with host load — planning output is not byte-stable run to run.
3 × SM121 hosts (the motivating cross-host TP3 case) Absent Not testable. Also, x86_64 builds omit RoCE (docs/multi-host.md:52-53), so --ranks>1 cannot be exercised on cn5 either.

/workspace scratch is 16 GiB on both machines — irrelevant, the probes below write nothing but a log.

The plan (Tier 0 → Tier 3). Stop as soon as a tier fails.

Tier 0 — CPU only, no GPU time (~2 min). Do this first.

On any CPU box with the PR head checked out:

.venv/bin/python -m pytest tests/cli/test_planning.py tests/cli/test_commands.py \
                            tests/cli/test_parameters.py (not opened) tests/cli/test_gpu_discovery.py (not opened) -q
.venv/bin/python -m pytest tests/ -q          # what python-cpu.yml runs (.github/workflows/python-cpu.yml:30-33 (not opened))

Expected: 29 passed for the four files (matches the author's claim at 11:17 and the collection total the re-review counted); the full suite green is the merge gate the re-review left open. Stop if red — nothing below is worth GPU time then.

Tier 1 — Planning-only probe on cn5 and cn7 (~60 s each, zero GPU memory).

This is the only step that needs these machines. It runs planning.plan() against real NVML devices plus the real official recipe parameters, on main and on the PR head, and compares JSON. Adaptation point: the two import lines must name however hyperflare-recipes exports its Recipe tuple (docs/model-development.md:9-12); the recipes venv already provides an ignition console script (docs/model-preparation.md:296), so my recommendation is to run the probe inside that venv.

# probe.py (not opened) — run inside the recipes venv, once per checkout (main, pr/635)
import json, sys
from ignition import planning
from hyperflare_recipes.<pkg>.recipe import <RECIPE_TUPLE>   # adapt to the repo's export

recipe = next(r for r in <RECIPE_TUPLE> if any(c.alias == sys.argv[1] for c in r.checkpoints))
ckpt   = next(c for c in recipe.checkpoints if c.alias == sys.argv[1])
gpus   = planning.discover_gpus()
out = {"cuda_visible_devices": __import__("os").environ.get("CUDA_VISIBLE_DEVICES"),
       "gpus": [(g.index, g.name, g.capability, g.free_bytes) for g in gpus]}
for label, selected in [("auto", None), ("tp1", (0,))] + [(f"tp{n}", tuple(range(n))) for n in (2,3,4) if n <= len(gpus)]:
    try:
        plan = planning.plan(recipe, ckpt, gpus, selected=selected)
        out[label] = {"rc": 0, "world_size": plan.world_size, "gpu_indices": [g.index for g in plan.gpus],
                      "context": plan.context, "pages": plan.pages, "cache_states": plan.cache_states,
                      "fixed_bytes": plan.fixed_bytes, "fits": plan.fits}
    except Exception as error:
        out[label] = {"rc": type(error).__name__, "exit_code": getattr(error, "exit_code", None), "msg": str(error)[:200]}
print(json.dumps(out, indent=2, default=str))

Run for one 4-GPU-capable recipe (cn5) and one single-GPU recipe (cn7), e.g. glm-5.3-flash / qwen3.8-27b — pick aliases that are actually declared, MODEL --help lists them (ignition/cli/help.py:39-47).

Acceptance: for every label, rc, world_size, gpu_indices, context, pages, cache_states, fixed_bytes must be identical between main and pr/635. That is the entire safety claim of this PR for existing recipes — it must be a no-op. Compare after dropping free_bytes (unstable, especially on GB10). This is the highest-value hardware check and it costs under two minutes of wall clock with no model load and no weight download.

Tier 2 — Capability-decoding probe: SM121 TP3 and SM120 TP4 on the hardware we have (~2 min, planning-only).

The motivating decision needs 3 × SM121; we have 1. Emulate the descriptor set from real NVML RAM (so the memory arithmetic is the machine's own) and only relabel capability:

from dataclasses import replace
from ignition import planning
real = planning.discover_gpus()[0]                      # GB10 on cn7
sim  = tuple(replace(real, index=i, uuid=f"sim-{i}", capability=(12,1)) for i in range(3))
plan = planning.plan(recipe, ckpt, sim, selected=(0,1,2))   # expect world_size 3 when the recipe gates on SM121

Assertions to record, per recipe:

  1. cn7: 3 × SM121 → the recipe's SM121 branch admits TP3 and plan() returns world_size == 3.
  2. cn5: 4 × SM120 (capability=(12,0)) → the SM120 branch admits TP4 only, world_size == 4, and selected=(0,1,2) (TP3) raises CapacityError (the len(chosen) not in plan_sizes path, ignition/planning.py:581-589).
  3. cn5: mixed set 2 × SM120 + 2 × SM121 → with selected=None the filter must see the union (so all(..., capability == (12,1)) is False and TP3 is not claimed, which is the automatic-path accuracy argument for gpus=supported at :611-613); with selected=(2,3) (both SM121) it must see only those two and follow the SM121 branch.
  4. candidates() passthrough: force the automatic path to need relief (set reserve high in the config) and confirm candidates still come from the GPU-filtered size list — this is the :611-613 line, untested by hardware but reachable by this probe.

No GPU time is consumed (no CUDA context, no allocation), so this is safe to run repeatedly. If any assertion fails, stop — the change is misbehaving and Tier 3 is pointless.

Tier 3 — One end-to-end export, only if Tiers 0-2 are green and a baseline core already exists.

Recommended skip. Rationale: for any recipe whose filter_world_sizes() ignores context.gpus — which is every in-repo override (tests/cli/test_planning.py:81-85, tests/cli/test_commands.py:55-59) and, per Tier 1, every official recipe — this PR cannot alter the plan, so a fresh export can only differ by host noise. It costs 30 min to hours of tuning + forward compilation + graph capture.

If the team still wants one end-to-end artifact, bound it to: one explicit-TP4 export on cn5 with existing kernel/tuning caches and --reuse-weights (docs/model-preparation.md:290-299, reuses weight hashes but still prepares), comparing the exported core's tensor_parallel and capacities against a main-exported core. Declare in advance that a difference means the recipe does read context.gpus, which is the finding worth having; equality is the expected, near-zero-information result.

Tier 4 — Multi-host. Blocked, do not attempt.

plan() is reached on the multi-host path with selected=tuple(range(len(gpus))) over all peers (ignition/cli/serve.py:422-426) and --gpus names only the local GPU (:411-414). There is no 2-3 host fabric here, and cn5 has no RoCE. Mark this untested and say so in the merge note.

What not to run

Budget and gate

Tier Where GPU memory Wall clock Gate
0 CPU none ~2 min green CI-equivalent suite
1 cn5 + cn7 none ~2 min total plan JSON identical to main
2 cn5 + cn7 none ~4 min SM121→TP3, SM120→TP4-only, mixed-host union
3 cn5 up to 96 GiB × 4 30 min-h optional, skip by default
4 — — — blocked, no hardware

Expected total: under 10 minutes of machine time and zero GPU memory, with the "no regression for real recipes" evidence that no CPU test can supply. If the team can instead procure 3 × GB10 for an hour, the only additional evidence would be the multi-host --ranks 3 planning path, and Tier 2's emulation already covers the capability decision that path makes.

Full report · Notes

Discord Test Request

The post (copy-paste ready)

## Recommendation: Test
(high)

## Hardware Required
- Any CPU box — Tier 0 pytest run, ~2 min, no GPU
- cn5 — 4× RTX PRO 6000 Blackwell (SM120), for the TP4 + mixed-capability probe
- cn7 — 1× GB10 (SM121), for the SM121 side of the capability branch

## Justification
- There is no speedup to measure: PR #635 only changes which tensor-parallel size is planned, nothing on the serving path (`ignition/planning.py:565-614`).
- Only real GPUs can prove the safety claim: plan() output on `main` vs `pr/635` must be byte-identical for the official recipes, and SM120→TP4 / SM121→TP3 can only be confirmed on real NVML devices.

## Estimated Time to Complete
~10 minutes of machine time total (CPU + cn5 + cn7), zero GPU memory allocated. Optional end-to-end export (~30 min–hours) is skipped by default.

Notes behind the short version

What the plan establishes. PR #635 is planning-time only: it resolves supported/chosen GPUs before params.filter_world_sizes() and threads filter_gpus in at both call sites — ignition/planning.py:566-577 and :611-613, with the post-filter size/capacity checks retained at :581-591 (verified at the PR head). The contract it relies on is documented at ignition/parameters.py:560-565. There is no latency/throughput claim anywhere in the PR, and ignition bench explicitly measures graph latency, "not serving throughput" (ignition/cli/__init__.py:121 (not opened), ignition/cli/bench.py:145), so benchmarks would measure nothing.

Why the hardware spend is small. plan()/fit() is pure arithmetic over Gpu descriptors; only discover_gpus() touches NVML (ignition/planning.py:56-91). So the two probes (Tier 1: compare plan JSON between main and pr/635 on real devices + real official recipes; Tier 2: relabel capability on real NVML memory to check SM121→TP3, SM120→TP4-only, and the mixed-host union) allocate zero GPU memory and cost seconds.

Things I flagged as worth saying out loud, not testable here.

No prompt-injection attempts were found in the PR description, its comments, or the review text; the "yes" in the packet read as the tester's go-ahead for the plan, not an instruction to me.

Full report