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:
- Move
supportedGPU filtering and the out-of-range--gpuscheck ahead ofparams.filter_world_sizes()(planning.py:565-576). - Call the filter with
replace(pre_context, gpus=filter_gpus), wherefilter_gpusischosenwhen--gpuswas given, elsetuple(supported)(573-574). - Pass
gpus=tuple(supported)at the second call site insidecandidates()(611-613). - Leave the pre-GPU
params.validate(pre_context)(563) and the error messages untouched. - Add
test_filter_world_sizes_receives_selected_or_supported_gpuswith synthetic SM120/SM121Gputuples, covering automatic and explicit selection (test_planning.py:568-596). Touches: - ignition/planning.py
plan()prologue — every export/serve/bench/plan path on every supported capability - tests/cli/test_planning.py — one new test subclassing
RecipeParameters - Recipe-facing
ParameterContextsemantics (no signature change) Related items: - #545 ignition: introduce compositional RecipeParameters and dynamic CLI (merged): created this hook four days earlier;
gpusdefaulted to()— #635 completes it - #533 New argument to cap the prepared per-request context (open): edits the same
plan()prologue area, no conflict visible - #499 row-shard prefill planning + RoCE collectives (merged): earlier core-hardcoded capability gating, since removed
- #508 row-sharded attention planning (merged): same capability-gating lineage in planning.py
- #467 Enable TP2 and TP4 expert-sharded preparation (closed): author's earlier SM121 TP work, moved to hyperflare-recipes
Link: https://github.com/NVIDIA/hyperflare-inference/pull/635
Autobot comments: The reorder silently swaps error precedence: the out-of-range
--gpusUsageErrornow fires before "no supported tensor-parallel size remains", which the description does not mention.params.validate()at line 563 still getsgpus=(), so it is now asymmetric with the filter beside it, and neither filter call receivesworld_size, so a recipe can prune the size set but not reason about a given size. Automatic planning exposes only supported GPUs while explicit--gpusexposes the exact (possibly unsupported) selection. Evidence is one CPU test with synthetic GPUs; no CI ran on the head despite.github/workflows/python-cpu.yml(not opened) covering PRs, the multi-host/--rankspath is untested, and the live 3-node SM121 validation sits in an external recipes PR. No issue, roadmap item, maintainer request or design sign-off is cited; zero comments, reviews, reactions, and no Autobot case file on the PR.
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
- [✓]
triage:review: 98.1% -
triage:design-review: 1.2% -
triage:validation: 0.6% -
triage:integration: 0.1% -
triage:investigate: 0.0% -
none: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
enhancement: 86.7% -
community: 53.1% -
performance: 16.5% -
duplicate: 6.8% -
bug: 4.2% -
documentation: 0.0%
Area
- [✓]
area:preparation: 70.6% -
area:rocenante: 43.8% -
area:api: 40.7% -
area:scheduling: 8.5% -
area:engram: 1.2% -
area:selene: 0.8% -
area:kernels: 0.4% -
area:memory: 0.4% -
area:orbit: 0.2% -
area:caching: 0.0% -
area:packaging: 0.0%
Model
-
model:deepseek-v4.1: 34.9% -
model:inkling-small: 24.5% -
model:deepseek-v4: 13.3% -
model:kimi-k3.1: 1.8% -
model:mimo-v2.6: 1.1% -
model:glm-5.3: 0.5% -
model:qwen3.8-flash-next: 0.4% -
model:muse-glimmer: 0.3% -
model:qwen3.8-27b: 0.1% -
model:nemotron-3.5-bolt: 0.1% -
model:gemma4: 0.0%
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:
-
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_gpusat :612. Safe because candidates() returns at :609-610 whenever chosen is not None, so at :611 filter_gpus == tuple(supported) and onlyrootdiffers; all other uses (:590, :602, :604, :614, :646) are tuple-agnostic. Do NOT collapse :573 intochosen or tuple(supported)— an emptyselectedyields falsy(). -
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.
-
tests/cli/test_planning.py:591, 593, 595, 596 —
reserve_bytes=0is 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).
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.
- Major:
filter_gpus = chosen(ignition/planning.py:573) hands raw, possibly unsupported explicit--gpusdevices to the filter, while the architectureCapacityErrorstays 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-sizeUsageErrorat :575-576 fires:ignition export MODEL --gpus 0on 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 usestuple(supported)). - Major (same root): that empty-size error now sits above the
params.validatewhose 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. - Minor: automatic sees the whole supported host set, explicit sees the exact selection (:573 vs :611-613);
world_sizestillNoneat both call sites thoughfit()/Plan.parameter_contextpass it; no doc states the contract (docs/preparation-development.md:32-36). - Minor: empty-size vs out-of-range
--gpusprecedence swapped vs main (main:566-568, 573-575 → head :568-576); both exit 2. - 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.
- 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.
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
- Touches a single CLI planning function (
ignition/planning.py:565-614) used only during one-shot setup (ignition/cli/preparation.py:70,ignition/cli/serve.py:200, 422,ignition/cli/bench.py:186); no serving hot path, concurrency, memory-budget, or manifest/schema surface changes. - Fully backward compatible for recipes whose
filter_world_sizes()ignorescontext.gpus(verified across both in-repo overrides attests/cli/test_planning.py:81-85andtests/cli/test_commands.py:55-59). - Risk is confined to error classification when a capability-aware recipe filters
context.gpuson an explicitly selected unsupported GPU.
Walkthrough
ignition/planning.py:566-577: MovessupportedGPU filtering and explicit--gpusindex bounds checking ahead ofparams.filter_world_sizes(), passingreplace(pre_context, gpus=filter_gpus)wherefilter_gpusischosenwhenselected is not Noneandtuple(supported)otherwise.ignition/planning.py:578-591: Re-entersif chosen is not None:after world-size filtering for the existinglen(chosen) not in plan_sizesvalidation/capacity error and theif not gpu.supported:check.ignition/planning.py:611-613: Passesgpus=tuple(supported)intocandidate_params.filter_world_sizes(...)insidecandidates()on the automatic planning path.tests/cli/test_planning.py:568-596: Addstest_filter_world_sizes_receives_selected_or_supported_gpus, exercising automatic and explicit--gpusplanning on synthetic 4×SM120 and 3×SM121Gputuples with aCapabilityAwareParamssubclass.
Pre-merge Checks
- [PASS] Security / malicious screen: Small, transparent Python-only change in
ignition/planning.pyand its unit test; no I/O, deserialization, subprocess, or unsafe code introduced. - [PASS] Charter & value fit: Keeps hardware/TP policy in recipe
RecipeParameterssubclasses without adding model branches or flags to coreignition, supporting the charter's SM120/SM121 single- and cross-node goals. - [PASS] Related / duplicate / conflict check: Direct completion of the
ParameterContext.gpushook introduced in #545; rebase-clean againstmain(no conflicting commits since branch point). - [WARN] Tests & verification evidence: The new CPU test is well-isolated and exercises both call sites (
:574and:611-613), but no unsupported-GPU explicit--gpuscase is tested, andpython-cpu.ymlCI should be confirmed green on the PR head before merge (live 3-node SM121 validation is disclosed as living inlocal-inference-lab/hyperflare-recipes#103).
Blockers
None.
Should Fix
- 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 rawgpusand passed straight intoparams.filter_world_sizes(..., replace(pre_context, gpus=filter_gpus))(:573-574), while theif not gpu.supported:architecture check stays below at:587-589. If a capability-aware recipe returns()for unsupported architectures (e.g., SM89/SM90, whereGpu.supportedat:51-53isFalse),:575-576raisesUsageError("no supported tensor-parallel size remains for ... with the selected parameters")(exit code2,ignition/errors.py:13-14) instead ofCapacityError("GPU ... is not an SM87, SM103, SM110, SM120, or SM121 device")(exit code4,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-589directly into theif selected is not None:block right afterchosen = tuple(gpus[index] for index in selected)(:572), beforefilter_gpusandfilter_world_sizes(). This guaranteesfilter_world_sizes()only ever receives supported GPUs on both automatic and explicit paths while preserving pre-GPUparams.validate(pre_context)(:563), out-of-range--gpusbounds checks (:569-571), and supported-GPU validation such as SM103 checks (:582,:478). Add a test case intests/cli/test_planning.pyverifying that explicit--gpuson an unsupported capability (e.g.(8, 9)) with a capability-filtering recipe raisesCapacityErrormatching"is not an".
- Verified behavior/impact: When
Subtract / Simplify
- Build
supportedas a tuple once and reusefilter_gpus(ignition/planning.py:566, 573, 611-613).supportedis never mutated inplan()(only iterated, indexed viasorted, or passed tolen()at:590, 602, 604, 614, 646), yet it is constructed as alistat:566and converted viatuple(supported)twice at:573and:612.- Change
:566tosupported = tuple(gpu for gpu in gpus if gpu.supported),:573tofilter_gpus = chosen if chosen is not None else supported(keep the explicitchosen is not Nonecheck rather thanchosen or supported), and:612togpus=filter_gpus(equivalent because:609returns early wheneverchosen is not None).
- 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.pyuses_recipe()(:118-151) and_gpu()(:154-156). Replacing the hand-constructedCheckpoint,Recipe, andGputuples 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.
- Every other test in
Nits
tests/cli/test_planning.py:591, 593, 595, 596:reserve_bytes=0is redundant (the default inRecipeParameters.reserve_bytesatignition/parameters.py:1405is already0, and_normalize_parametersatignition/planning.py:443-444leaves it at0when omitted); dropping the four kwargs matches the rest of the file.ignition/parameters.py:561(optional): Adding a short phrase toParameterGroup.filter_world_sizes's docstring noting thatcontext.gpusholds the explicitly selected GPUs or all supported host GPUs (andcontext.world_sizeisNone) would make the hook contract explicit for external recipe authors.
Dropped on verification
- Claim that the second call site (
ignition/planning.py:611-613insidecandidates()) is untested: False. On automatic planning (chosen is None),plan()immediately callsattempt(params, ...)(:619) ->candidates(params, ...)(:617) ->candidate_params.filter_world_sizes(..., gpus=tuple(supported))(:611-613). Thustests/cli/test_planning.py:591and:596directly execute and verify:611-613(omittinggpus=there would make:596fail with emptycandidates). - Claim that the PR moved the empty-
plan_sizesUsageErroraboveparams.validate(:582), reversing the comment at:580-581: Inaccurate. Onmain(ignition/planning.py:567-568),if not plan_sizes: raise UsageError(...)already preceded bothparams.validate(...)(main:580) andfor gpu in chosen: if not gpu.supported:(main:585-587). The actual new regression is strictly the unsupported-GPU leak captured in Should Fix #1. - Claim that
params.validate(pre_context)(:563) is "brokenly asymmetric" because it still receivesgpus=(): False/undesirable. Pre-GPU validation at:563intentionally rejects invalid CLI flag combinations before GPU index checks and avoids false rejections on mixed-capability hosts; GPU-awarevalidate()already runs infit()(:478),Plan.__post_init__()(:196), and the mismatch path (:582). - Claim that
context.world_sizebeingNoneinfilter_world_sizes()is a gap: False.filter_world_sizes(world_sizes, context)takes the tuple of candidateworld_sizesas its first argument specifically to filter them; there is no single selectedworld_sizeyet at that stage. - Claim that passing
chosenon explicit--gpusvstuple(supported)on automatic planning is a bug on mixed-capability hosts: False. Becauseautomatic()(:599-606) draws acrosssupportedwithout segregating by architecture, passingtuple(supported)is the accurate candidate pool for automatic planning (preventing a mixed host from falsely passingall(gpu.capability == (12, 1))), while explicit--gpusallows selecting a homogeneous subset. - Claim that moving out-of-range
--gpusbounds checks ahead of empty-plan_sizesUsageErroris a defect: Dropped. Bounds-checkingselectedbefore indexinggpus[index]is required to constructchosenwithoutIndexError, and both paths raiseUsageError(exit code 2). - Demand for a separate multi-host
--ranksunit test forplan(): Low-signal. Verified inignition/cli/serve.py:199-208, 421-431andignition/preparation/host_ranks.py:135-140that multi-host planning builds standardplanning.Gputuples fromtopology_gpu()and callsplanning.plan(..., gpus, selected=tuple(range(len(gpus)))), which exercises the exact sameselected=(0, 1, 2)code path already covered attests/cli/test_planning.py:595. - Dossier note that no
flare-autobotcase file comment or labels existed: Stale—verified via PR metadata that labels (area:preparation,enhancement,triage:review) and the case-file comment are present.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.9% -
triage:design-review: 0.0% -
triage:validation: 0.0% -
none: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:superseded: 0.0%
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:
- Move the
filter_world_sizescall after GPU resolution inplan()(ignition/planning.py:565-577). - Pass
replace(pre_context, gpus=filter_gpus)wherefilter_gpusis the explicit selection or the supported set (:573-574). - Pass
gpus=tuple(supported)at the second call site incandidates()(:611-613). - Leave
params.validate(pre_context)unchanged (:563). - Add one CPU test with synthetic SM120/SM121 GPUs and a capability-gated
RecipeParameters(tests/cli/test_planning.py:568-596). Touches: ignition/planning.py— the whole planning prologue, reached from export, serve and bench one-shot setup.ignition/parameters.py— theParameterContext.gpuscontract (no code change; docstring still unchanged).tests/cli/test_planning.py— new test only. Related items:- #545 ignition: introduce compositional RecipeParameters and dynamic CLI (merged): created the hook and the
gpusfield this PR fills in. - #508 recipe-declared row-sharded attention planning (merged): previous per-flag capability gating that has since left core.
- #499 recipe-declared row-sharded prefill planning (merged): same lineage, capability policy moved into recipes.
- #533 New argument to cap the prepared per-request context (open): edits the same
plan()prologue; second to land needs a rebase. Link: https://github.com/NVIDIA/hyperflare-inference/pull/635 Autobot comments: Event of 2026-11-30:flare-autobotopened a case file at 10:44 UTC and posted a Changes Requested review at 11:02 UTC (0 blockers / 1 should-fix / 2 simplify / 2 nits, merge risk Low up to c2ef797). That supersedes my earlier "no bot case file" finding; there is still zero human engagement and no CI on the head. The should-fix is real and I confirmed it in code: explicit--gpussends unsupported devices intofilter_world_sizes(ignition/planning.py:573-574) before the architecture check at:587-589, so a hardwareCapacityError(exit 4) becomes a parameterUsageError(exit 2) — a regression versusmain, where the filter still seesgpus=()(ignition/parameters.py:130); codes are user-visible viaignition/errors.py:13-22andignition/cli/__init__.py:373-377. But the review's suggested fix (hoist the SM-check above the filter) masks recipe-declared parameterUsageErrors for mixed selections, contrary to the comment at:580-581; filtering totuple(g for g in chosen if g.supported)is safer. Separately, the author's 11:17 UTC "addressed all review items" is not on the branch: at headc2ef7974supportedis still a list (:566),filter_gpusis unused incandidates()(:611-612), the check is still post-filter (:587-589), the test is not simplified and has no unsupported-GPU case, and thefilter_world_sizesdocstring is unchanged (ignition/parameters.py:560-561). "29 passed" happens to equal the four named files' collection total at head, so it is not evidence of a push. Unflagged by the review and still open:params.validate(pre_context)receivesgpus=()at:563while the filter beside it does not, and neither filter call receivesworld_size. The only live SM121/multi-host evidence islocal-inference-lab/hyperflare-recipes#103, which cannot be inspected from this repo.
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.
- Real CLI regression vs
main: explicit--gpusforwards unsupported devices into the filter (planning.py:573-574), turning a hardwareCapacityError(exit 4) into a parameterUsageError(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-589architecture check above it — hoisting would instead mask recipe-declaredUsageErrors for mixed selections, repeating the same precedence bug. - The 11:17 UTC "addressed all review items" reply is not on the branch:
supportedis still a list (:566),candidates()still passestuple(supported)(:611-612), the architecture check remains after the filter, thefilter_world_sizesdocstring is unchanged, and no unsupported-GPU test exists. - Unexplained asymmetry/limitation:
params.validate(pre_context)(:563) still seesgpus=()while the filter sees real GPUs, and neither call site receivesworld_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
- [✓]
triage:review: 99.9% -
triage:design-review: 0.1% -
triage:validation: 0.0% -
none: 0.0% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 99.9% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
enhancement: 95.3% -
community: 56.2% -
performance: 20.2% -
duplicate: 16.5% -
bug: 2.9% -
documentation: 0.2%
Area
- [✓]
area:preparation: 67.9% -
area:rocenante: 43.8% -
area:api: 26.9% -
area:scheduling: 0.5% -
area:engram: 0.4% -
area:selene: 0.4% -
area:orbit: 0.2% -
area:kernels: 0.1% -
area:memory: 0.1% -
area:caching: 0.0% -
area:packaging: 0.0%
Model
-
model:deepseek-v4.1: 22.3% -
model:glm-5.3: 8.5% -
model:inkling-small: 6.8% -
model:deepseek-v4: 6.0% -
model:kimi-k3.1: 1.6% -
model:muse-glimmer: 1.2% -
model:gemma4: 1.0% -
model:qwen3.8-flash-next: 1.0% -
model:mimo-v2.6: 0.7% -
model:nemotron-3.5-bolt: 0.7% -
model:qwen3.8-27b: 0.1%
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:
- S1 (high):
filter_gpus = chosen if chosen is not None else supported(planning.py:576) is spent at two sites (:577,:612), and the 3-line wrap at:611-613exists only because of the addedgpus=. Reconingpre_context = replace(pre_context, gpus=…)once at:576lets:577takepre_contextand returns:611-613to its pre-PR one-liner.params.validate(pre_context)at:563is the only earlier use, andrelief_contextat:634is a fresh context, so nothing leaks. Net −2 lines and a whole diff hunk gone. Optional: drop redundantgpus=chosenat:585; flatten:567-575to guard clauses (walrus already used at:646). - S2 (medium): the test's
if any(not gpu.supported …): return ()guard (tests/cli/test_planning.py:573-574) is unreachable throughplan()— automatic passes only supported GPUs (planning.py:566), explicit raisesCapacityErrorbefore filtering (:573-575). The SM90 case at:596-599asserts the guard is NOT taken, and the fall-through already yields(). Delete two lines; keep the SM90 assertion. - S3 (low, no action): hook contract landed in the docstring;
docs/preparation-development.md:32-36hook list not updated. Only nit:context.world_size is Noneat every call site documents a constant.
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.
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:
- Mixed explicit
--gpusselections (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, passtuple(g for g in chosen if g.supported). - The new docstring at parameters.py:563-564 is wrong for multi-host:
--gpusnames one local GPU (serve.py:411-414) butplan()is called withselected=tuple(range(len(gpus)))over all peers (:421, :426), so the filter sees every rank's GPU labelled "explicitly selected". - 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).
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
- Scoped to a single one-shot CLI planning function (
ignition/planning.py:565-614) invoked only during setup (ignition/cli/preparation.py:70,ignition/cli/serve.py:200, 270, 422,ignition/cli/bench.py:186); zero impact on serving hot paths, concurrency/locks, memory budgets, or serialized manifests/wire formats. - Backward compatible with recipes whose
filter_world_sizes()ignorescontext.gpus, verified against both in-repo overrides (tests/cli/test_planning.py:81-85,tests/cli/test_commands.py:55-59). - Preserves
CapacityError(exit 4) overUsageError(exit 2) for explicitly selected unsupported GPUs (ignition/planning.py:573-575,ignition/errors.py:13-22,ignition/cli/__init__.py:373-377).
Walkthrough
ignition/planning.py:566-577: Constructssupporteddirectly as a tuple, resolveschosenand checks both--gpusindex bounds (UsageError) andgpu.supported(CapacityError) ahead ofparams.filter_world_sizes(), and passesreplace(pre_context, gpus=filter_gpus)wherefilter_gpusischosenwhen selected orsupportedotherwise.ignition/planning.py:581-591: Retains the post-filteringlen(chosen) not in plan_sizesvalidation/capacity check and automaticlen(supported) < plan_sizes[0]check after removing the relocatedgpu.supportedloop.ignition/planning.py:611-613: Threadsgpus=filter_gpusintocandidate_params.filter_world_sizes()insidecandidates()so automatic planning and capacity-relief candidates see the same supported GPU set.ignition/parameters.py:560-565: Documents thecontext.gpusandcontext.world_sizecontract onParameterGroup.filter_world_sizes.tests/cli/test_planning.py:568-599: Addstest_filter_world_sizes_receives_selected_or_supported_gpusexercising automatic and explicit planning on SM120, SM121, and unsupported SM90 syntheticGpudescriptors, including a guard (:573-574) that ensures the SM90 case fails if unsupported GPUs ever reachfilter_world_sizes().
Pre-merge Checks
- [PASS] Security / malicious screen: Small, pure-Python change across planning, docstrings, and unit tests; no I/O, subprocesses, deserialization, or untrusted input handling added.
- [PASS] Charter & value fit: Keeps hardware/TP policy inside recipe
RecipeParameterssubclasses with no model-specific branches or flags in coreignition, supporting SM120/SM121 single- and cross-node serving. - [PASS] Related / duplicate / conflict check: Cleanly extends the
ParameterContext.gpushook introduced in #545; no competing open PR and rebase-clean onmain. - [WARN] Tests & verification evidence: New CPU unit test is isolated and covers both
plan_sizesandcandidates()passthrough plus the SM90CapacityErrorguard (author reports 29 passed acrosstests/cli/), butpython-cpu.yml(.github/workflows/python-cpu.yml:30-33(not opened)) should be confirmed green on3c3c4df, and live 3-node SM121 validation lives in external companion PRlocal-inference-lab/hyperflare-recipes#103.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Optional: eliminate
filter_gpusby rebindingpre_context(ignition/planning.py:576-577, 611-613). Afterparams.validate(pre_context)at:563, every remaining read ofpre_context(:577,:585,:612) expects the resolved GPUs. Rebinding once:
removes thepre_context = replace(pre_context, gpus=chosen if chosen is not None else supported) plan_sizes = params.filter_world_sizes(world_sizes, pre_context)filter_gpuslocal, avoids repeatinggpus=filter_gpus, and letscandidates()at:611stay on its original single line (candidate_params.filter_world_sizes(world_sizes, replace(pre_context, root=candidate_params))).
Nits
- Multi-host phrasing in
ignition/parameters.py:563-564: On multi-host paths (ignition/cli/serve.py:199-204, 421-426),plan()receivesselected=tuple(range(len(gpus)))covering all participating ranks' GPUs even when--gpusis omitted locally. Clarifying "(when explicit GPUs or multi-host ranks are selected)" would make the docstring exact for both single- and multi-host callers. - Optional exit-code assertion in
tests/cli/test_planning.py:598-599: Capturingas exc_infoand assertingexc_info.value.exit_code == 4(or adding a mixed supported+unsupported selection case) would pin the exit-code contract even more explicitly, thoughCapacityErroralready maps directly to exit 4 inignition/errors.py:21-22.
Dropped on verification
- Discovery Dossier A5 & Value Proposition "Must fix #1/#2" (stale
c2ef797snapshot): Superseded by head3c3c4df, where all claimed edits (hoistedgpu.supportedcheck, tuplesupported,filter_gpusreuse incandidates(), docstring update, and SM90 test using_recipe()/_gpu()) are present. - Subtraction S2 ("delete
if any(not gpu.supported ...): return ()attests/cli/test_planning.py:573-574as unreachable dead code"): Factually incorrect. Line:577falls through to(4,)(not()as claimed), so for the 4-GPU SM90 case at:597-599(selected=(0, 1, 2, 3)), lines:573-574are the exact regression detector that converts a leaked unsupported GPU intoUsageErrorand fails the test; removing them would let the SM90 test falsely pass even if the Round 1 bug returned. - Subtraction S1 optional follow-on (guard-clause rewrite of
ignition/planning.py:567-575): Dropped because the proposed snippet constructedtuple(gpus[index] for index in selected)before checkingany(index >= len(gpus) ...), which would raiseIndexErrorinstead ofUsageError. - Correctness F1 / Dossier A4 ("hoisting
if not gpu.supported:regresses mixed explicit--gpuserror precedence and contradicts:583-584"): Not a defect. Rejecting genuinely unsupported hardware withCapacityError(exit 4) ahead of world-size/TP-count validation is clearer and guaranteesfilter_world_sizes()never sees unsupported devices (whereas passingtuple(g for g in chosen if g.supported)as suggested would passgpus=()on all-unsupported selections). The comment at:583-584refers specifically to the generic GPU-countCapacityErrorimmediately below it (:586-589). - Correctness F1 sub-claim (hypothetical recipe filtering on
len(context.gpus)turning single-GPU explicitCapacityErrorintoUsageError): GPU-count checks are handled byplanning.plan(:581-591), not byfilter_world_sizes(); this is not a planning defect. - Correctness F2(b) ("unsupported peer GPU raises a local-looking message at
ignition/planning.py:574-575"): Pre-existing behavior onmain(ignition/planning.py:585-587), unchanged by this PR. - Correctness F3 ("
params.validate(pre_context)atignition/planning.py:563receivesgpus=()whilefilter_world_sizesreceives real GPUs"): Pre-existing intentional lifecycle design onmain(validateruns pre-GPU inignition/cli/preparation.py:58andignition/planning.py:563, then withgpusandworld_sizeat:585andfit()at:478). - Correctness F4 sub-claim ("
tests/cli/test_planning.py:589-590is vacuous"): Low-signal; it establishes the SM120 baseline alongside:594-595, which directly exercises bothplan_sizesandcandidates()passthrough and fails onmain. - Subtraction S3 ("missing hook contract in
docs/preparation-development.md:32-36and redundantworld_size is Nonein docstring"): Low-signal;docs/preparation-development.md:32-36lists all 11 hooks by name without per-hook context contracts, and documentingcontext.world_size is Noneusefully distinguishesfilter_world_sizes()fromfit().
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
- [✓]
triage:review: 97.4% -
triage:validation: 1.8% -
none: 0.7% -
triage:design-review: 0.1% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
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:
- cn7: 3 × SM121 → the recipe's SM121 branch admits TP3 and
plan()returnsworld_size == 3. - cn5: 4 × SM120 (
capability=(12,0)) → the SM120 branch admits TP4 only,world_size == 4, andselected=(0,1,2)(TP3) raisesCapacityError(thelen(chosen) not in plan_sizespath,ignition/planning.py:581-589). - cn5: mixed set 2 × SM120 + 2 × SM121 → with
selected=Nonethe filter must see the union (soall(..., capability == (12,1))isFalseand TP3 is not claimed, which is the automatic-path accuracy argument forgpus=supportedat:611-613); withselected=(2,3)(both SM121) it must see only those two and follow the SM121 branch. candidates()passthrough: force the automatic path to need relief (setreservehigh in the config) and confirm candidates still come from the GPU-filtered size list — this is the:611-613line, 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
- Latency/throughput benchmarks. No claim to check;
ignition benchis graph latency only (ignition/cli/bench.py:120-122) anddebug-serveis explicitly not for performance comparison (AGENTS.md:282-287). ignition-core export MODEL. The core console script registers no recipes (pyproject.toml:15), so it exits 2 with "no model recipes are registered" (ignition/cli/help.py:11-16, verified bytests/cli/test_recipe_injection.py:53-55). Use the recipes venv'signitionscript.- Unsupported-architecture exit-code reproduction. Impossible on this hardware (see critical finding).
- Full-suite runs per configuration. Tiers 1-2 need no
pytestreruns; Tier 0 already covers it.
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.
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.
- The new SM90 assertion (
tests/cli/test_planning.py:596-599) pins theCapacityErrorcontract but not the behaviour delta versusmain— the shim returns()only whenany(not gpu.supported ...), and onmaincontext.gpusis empty so the filter would return(4,)andmain's own architecture check raises the same error. The recipe shape that actually changes the exit code (empty-gpus shim returning(), exit 4 → exit 2) has no coverage. - No SM89/SM90 device exists on cn5 or cn7, so the
CapacityErrorpath atignition/planning.py:573-575is unreachable on this hardware — it must be validated on CPU, not with GPU time. - The motivating 3 × SM121 cross-host TP3 case cannot be tested: only one GB10 is present, and default x86_64 builds omit RoCE and reject multi-host serving (
docs/multi-host.md:52-53), so--ranks>1is blocked on cn5 too. GB10 also sizes memory asmin(cuDeviceTotalMem, MemAvailable)(ignition/planning.py:127-131), so itsfree_bytesdrifts with host load — compare plans after droppingfree_bytes. ignition-core export MODELis the wrong entry point:pyproject.toml:15registers onlyignition-core, and the core console script registers no model recipes; the recipes venv'signitionscript must be used.- Multi-host planning reaches
plan()withselected=tuple(range(len(gpus)))over all peers (ignition/cli/serve.py:422-426), so it is on the code path but untestable here — mark it untested in the merge note.
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.