#1 [high] Change: what PR #635 does (verified from diff)
PR #635 "Pass candidate GPUs into filter_world_sizes during planning", author nero- (Jonathan Gutierrez, GitHub CONTRIBUTOR), head c2ef797, base main, opened+updated 2026-11-30, 2 files +41/-5, no reviews, no CI checks, ready for review. No PR comments at all (pr_comments empty).
Code change — ignition/planning.py (plan(), lines 543-650 at head):
- Before:
plan_sizes = params.filter_world_sizes(world_sizes, pre_context)was computed at old line ~566, BEFOREsupported/chosenwere resolved; pre_context hasgpus=()(ParameterContext default, ignition/parameters.py:130). - After (head lines 565-591):
world_sizes = recipe.checkpoint_tensor_parallel(checkpoint)->supported = [gpu for gpu in gpus if gpu.supported](566) ->chosenfromselectedwith the out-of-range--gpusUsageError (568-572) ->filter_gpus = chosen if chosen is not None else tuple(supported)(573) ->plan_sizes = params.filter_world_sizes(world_sizes, replace(pre_context, gpus=filter_gpus))(574). The "no supported tensor-parallel size remains" UsageError now follows (575-576), and theif chosen is not None:block for theneeds N GPUsCapacityError / unsupported-GPU error is nested under it (578-589). Theelif len(supported) < plan_sizes[0]host-size error is intact (590-591). - candidates() (608-614):
candidate_params.filter_world_sizes(world_sizes, replace(pre_context, root=candidate_params, gpus=tuple(supported)))— now passes supported GPUs too. - Pre-GPU
params.validate(pre_context)at line 563 is unchanged (still no gpus, no world_size).filter_gpus= chosen when--gpusgiven, else all supported GPUs.
Test — tests/cli/test_planning.py:568-598 test_filter_world_sizes_receives_selected_or_supported_gpus: defines local CapabilityAwareParams(RecipeParameters) whose filter_world_sizes restricts sizes to (3,4) when all context.gpus have capability (12,1) (SM121) and to (4,) otherwise; toy recipe with ranks for TP3 and TP4; asserts 4x SM120 automatic -> TP4; 3x SM120 with selected=(0,1,2) -> CapacityError "needs 4"; 3x SM121 explicit selected -> TP3; 3x SM121 automatic -> TP3.
#3 [high] Change: undeclared side effects and limits of the new GPU argument
Verified behavioral details beyond the description:
- Error-precedence swap (undeclared): before, the "no supported tensor-parallel size remains for {alias} with the selected parameters" UsageError (head lines 575-576) was raised BEFORE the out-of-range
--gpusUsageError ("--gpus ... names a GPU this host does not have", 569-571). Now the--gpusindex check runs first, so--gpus 9on an unsupported-parameter recipe reports the GPU-index error instead of the parameter error. Same messages, different order. params.validate(pre_context)at planning.py:563 still receivesgpus=(), and a second validate withgpus=chosenruns only on the failure path (582). So filter_world_sizes now sees GPUs while the validate immediately before it does not — an asymmetry the description does not mention (it says "Pre-GPU params.validate(pre_context) ... unchanged", which is true).- The hook never receives
world_size: neither call site passes it (574, 611-613), so a recipe can see which GPUs but not which candidate TP size is under consideration; it can only filter the set.Plan.parameter_context(planning.py:231-239) by contrast carries both gpus and world_size for later hooks. - Automatic planning passes only supported GPUs (
tuple(supported)), so the filter cannot observe non-supported devices on the host; explicit--gpuspasses the actual chosen devices even if some are unsupported (the unsupported-device CapacityError at 587-589 still fires afterwards). - Consistency:
candidates()(608-614) returns early withfitted(chosen...)whenchosen is not None(609-610), so the two call sites never disagree about which GPU set applies. - Surface reach of
filter_world_sizescalls in-tree: only planning.py (2 sites). In-repo overrides exist only in tests (tests/cli/test_planning.py:81 ToyShardingParameters, tests/cli/test_commands.py:55 FixtureShardingParameters) and both ignore context.gpus. tests/cli/test_planning.py:105 reads context.gpus in validate (SM103 rejection) — the neighbouring hook that already had GPUs, though itsany(...)is empty-safe.
#4 [high] Related work: #545 built the hook, #499/#508 moved capability gating into recipes
- The hook itself and ParameterContext.gpus were introduced by #545 "ignition: introduce compositional RecipeParameters and dynamic CLI" (merged 2026-11-26, lukealonso): it made planning dispatch validate/filter_world_sizes/adjust_* through recipe parameters and documented the hooks in docs/preparation-development.md:32-36. #635 plugs the gap #545 left: pre_context.gpus defaulted to () (ignition/parameters.py:130) so the hook had no GPU data. So #635 is a direct follow-on to #545, and its test subclasses the same mechanism.
- #545's post-merge Autobot review (PR #545 comment 2026-11-26 21:20) flagged one blocker (PreparationManifest key shrinkage breaking core combine) and several should-fix items about the parameters machinery; none concern filter_world_sizes' context. #635 does not touch that.
- #533 (open, roobyz) also edits ignition/planning.py plan() and the same ParameterContext/pre_context area (adds --request-context/context_target, Plan.prepared_context). Different hook, overlapping function; no conflict with #635's hunks (563-614 region) visible, but both reorder/insert around the same plan() prologue.
- Capability gating in planning used to live in core code, not in the filter hook: #499 (merged 2026-11-24, FujitsuPolycom) added
Recipe.row_shard_prefill_world_sizesand a recipe-declared opt-in that "restricts automatic GPU selection to row_shard_prefill_world_sizes" and refuses SM103 GPUs; #508 (merged 2026-11-26) added row-sharded attention weight accounting and shared gating in planning.py. At #635's head there is norow_shardreference left in ignition/planning.py (grep) — those per-recipe switches moved out of core with the recipe split, and docs/TODO.txt:349 still tracks "Qualify --row-shard-attention on SM121 and multi-host RoCE". Context: the way to express architecture gating is now a recipe RecipeParameters subclass, which is exactly what #635 makes possible for world-size filtering. - Author's own #467 (closed) moved TP2/TP4 Inkling Mini work to local-inference-lab/hyperflare-recipes#17 after the repo split; #635's description likewise defers live validation to a companion PR in hyperflare-recipes (DeepSeek V4.1 TP3), which enforces the charter/AGENTS.md:382-396 recipe boundary.
#5 [high] Claims and evidence: CPU test only, no CI on head, multi-host path untested
- Evidence claimed: "CUDA_VISIBLE_DEVICES="" pytest -q tests/cli/test_planning.py passed (7 passed, 0 failed)". Not verifiable here (no test execution tool), and no CI ran on head c2ef797 (orientation packet: "no checks"; .github/workflows/python-cpu.yml runs
pytest tests/ -qon every pull_request with CUDA_VISIBLE_DEVICES="" — so the check exists in the repo but did not report for this head, e.g. because the PR is from a fork/first-push or was opened without triggering; worth noting as unexplained). - Test count check: tests/cli/test_planning.py at head has 7 test functions (grep
^def test_: lines 159, 223, 298, 402, 479, 521, 568), consistent with "7 passed". - The new test's SM121 case uses
sm121_gpus = 3 GPUswith capability (12,1) and recipe ranks {3,4}; the SM120 case uses 4 GPUs at (12,0) with the same recipe. Both are syntheticplanning.Gpudescriptors (name "SM120"/"SM121", 140 GiB) — no hardware. The description discloses this limitation. - Unsupported: the deeper claim in "Why" (cross-host SM121 GB10 RoCE TP vs single-host SM120 PCIe collectives) has no evidence in this repo at all; the test does not model multi-host (plan() is called with a flat GPU tuple, no --ranks/rendezvous), so
context.gpusunder multi-host planning is fed fromtopology_gpu(...)entries in ignition/cli/serve.py:421 and that path is untested here. - Behavior preserved claims verified: out-of-range
--gpusstill raises UsageError (569-571 kept verbatim); pre-GPU params.validate(pre_context) still at 563; SM103-style--sharded-prefillvalidate(UsageError "SM103") in tests still passes since validate still gets gpus on the failure path (582) and inside fit() (469-478). - Claimed benefit "backward compatible for recipes that ignore context.gpus": verified — both in-repo filter_world_sizes overrides ignore context.gpus, and passing a superset/empty gpus tuple only changes recipes that read the field.
#11 [high] Research summary
Case file for PR #635 (nero-, head c2ef797, open, ready for review, 2 files +41/−5, no comments, no reviews, no CI). Ten scratchpad entries cover every angle: change, undeclared side effects, why, related work, recent activity, people, community, charter fit, claims/evidence, reach, process.
Key findings not evident from the description: (1) the reordering silently swaps error precedence — the out-of-range --gpus UsageError now fires before the "no supported tensor-parallel size remains" error (planning.py:569-576); (2) params.validate() immediately before the filter still gets gpus=() (563) while the filter now gets real GPUs, and neither call site passes world_size, so a recipe can see which GPUs but not which candidate TP size; (3) automatic planning exposes only supported devices, explicit --gpus exposes the exact (possibly unsupported) selection, and the multi-host path feeds peer-topology GPUs from serve.py:421 — untested; (4) no CI ran on the head even though .github/workflows/python-cpu.yml (not opened) runs the CPU suite on every PR, and the only evidence is the author's CPU unit test, with the SM121 live validation deferred to an external hyperflare-recipes PR.
Context established: the hook came from #545 four days earlier and simply defaulted ParameterContext.gpus to (); earlier per-flag capability gating in planning (#499, #508) has since left core, which is the strongest argument for this PR's approach. #533 overlaps the same plan() prologue on a different hook; no conflict visible. The author is a repeat owner of DGX Spark / SM121 cross-host TP work (#161, #220, #433, #467), and zero engagement exists so far. Charter lines on model-agnostic core, evidence, and the four-part description were mapped; the change adds no CLI, default, manifest, doc, or schema surface.
#13 [high] Project fit: charter aligns on model-agnostic seams; no roadmap item or maintainer request cited
Lines up:
- Charter "Keep the runtime small and model-agnostic. Ignition writes the recipes that handle model computation... shouldn't accumulate per-model branches": #635 adds no model branch; the policy lives in a recipe
RecipeParameterssubclass via the existingfilter_world_sizeshook (ignition/parameters.py:560-564), and tests/preparation/test_core_boundary.py:39-67 keeps core recipe-free. AGENTS.md:382-396 states official recipes live in local-inference-lab/hyperflare-recipes, which is where the companion consumer is. - Charter Goals: "serve... on SM103, SM120, and SM121" and "Support single-host and cross-node serving" — the motivating case (cross-host SM121 GB10 RoCE TP vs single-host SM120 PCIe) is inside the stated goals, and SUPPORTED_CAPABILITIES (planning.py:37-38) covers SM87/103/110/120/121.
- AGENTS.md:72-140 required four-part PR description: #635 has why / what changed / claimed benefit / evidence+limitations in order, and states the untested part.
- docs/preparation-development.md:32-36 already declares that planning "invokes its validate, filter_world_sizes, adjust_*" hooks, so making the hook usable is consistency with existing documentation; no doc becomes false and no doc was updated.
Does not line up / friction (facts, not judgements):
- Charter "What gets merged": PRs addressing a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs. #635 cites none: no issue number, no maintainer ask, no TODO entry, no measurement (docs/TODO.txt:263-267 on RoCE TP2/TP3 qualification is the nearest neighbour and is not referenced).
- Charter "Bring real evidence... Performance PRs need benchmarks... Bug fixes need the root cause": evidence is one CPU unit test with synthetic Gpu descriptors; the live export/qualification is in an external repo PR.
- Charter Code Review Standards "Supported matrix & compatibility: check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target": the PR changes the planning prologue for every recipe and every target, but its test covers only single-host, synthetic SM120/SM121, and no multi-host
--rankspath. - No design sign-off trailer in the description, unlike #499 (Design-Signed-Off-By/design-review=eb2f) and #533 (design-review=2e5b); nothing here is a new captured-graph op, so AGENTS.md:376-381 approval is not triggered.
#2 [medium] Charter/process fit: evidence standard, model-agnostic rule, PR description rules
Charter (read_charter):
- line 12 "Keep the runtime small and model-agnostic... recipes handle model computation... shouldn't accumulate per-model branches": #635 keeps ignition.planning model-agnostic (recipe subclass supplies the policy via filter_world_sizes), which lines up with the charter.
- "Bring real evidence" requires benchmarks for performance PRs / root-cause fixes; this is a plumbing/compat change whose evidence is a CPU unit test only (description admits "synthetic Gpu descriptors", live 3-node SM121 validation deferred to a companion PR in an external repo local-inference-lab/hyperflare-recipes).
- "Code Review Standards / Supported matrix": review should check interactions across every supported model, parallel layout, multi-host setup, and hardware target; #635 changes planning for all recipes on all of SM87/SM103/SM110/SM120/SM121 (SUPPORTED_CAPABILITIES, ignition/planning.py:37-38).
- "PR descriptions: four parts" is satisfied in form (why / what changed / claimed benefit / evidence + limitation).
- Goals mention SM120/SM121 workstation + DGX Spark and cross-node serving (charter "Support single-host and cross-node serving") — the motivating case (cross-host SM121 GB10 RoCE TP) is squarely in scope.
#6 [medium] People: nero-'s DGX Spark TP series and the maintainers who own planning.py
- Author nero- (Jonathan Gutierrez per commit c2ef797 author), GitHub association CONTRIBUTOR, not one of the charter's priority contributors (@voipmonitor, @original-el8, @lukealonso).
- Recent work: #433 Inkling 2 Mini text/vision/DSpark prep (merged 2026-11-21), #220 DeepSeek V4.1 Flash TP6 with per-rank Engram partitions (merged 2026-11-06), #219 Helios Engram partitioned tables (merged), #467 Inkling Mini TP2/TP4 (closed, moved to hyperflare-recipes#17), #161 DeepSeek V4.1 TrellisMX TP2 (closed), #518 --target-head-quantization (closed). Open issues #119 (orbit eviction of download store), #118 (DeepSeek V4.1 positions-before-128 logits).
- Track record: repeated ownership of multi-host DGX Spark (GB10/SM121) tensor-parallel preparation, including TP3/TP6 cross-host RoCE (#220 admits three or four ranks; #161 TP2 over CX7 RoCE on two DGX Sparks). That is exactly the scenario #635 unblocks (cross-host SM121 TP where single-host SM120 PCIe differs), so the motivation is grounded in the author's own recurring workload.
- Commits in area: author appears in history as "Nero" for e9d509d6 (#433); #635 is the only commit touching ignition/planning.py today.
- Who usually works here: ignition per-file history is dominated by Luke Alonso (267 commits in ignition in 180 days), Martin Vit (119), jasonc (70); tests/cli by Luke Alonso (103), Eugene Rakhmatulin (29), Martin Vit (20). The PR touches a file whose recent changes are almost all maintainer-authored (#545, #543, #508, #499, #592), so review is likely by lukealonso or PCCessna/FujitsuPolycom.
- Engagement so far: zero comments, zero reviews, no reactions (pr_comments empty; orientation packet "Reviews: none yet"). Discord handle "nero" given in the description, consistent with other PRs in this repo.
#7 [medium] Recent activity: planning.py is high-churn maintainer code; branch has no drift
Recent commits in the touched areas (from orientation packet + search_history, default branch):
- ignition/planning.py: c2ef797 (this PR) / f7d6428f 2026-11-29 kbenkhaled "Add sm110/thor identifiers (#592)" — added (11,0) to SUPPORTED_CAPABILITIES/SUPPORTED_ARCHITECTURES (planning.py:37-38); d3d0e783 2026-11-28 Ray Dollete "planning: support checkpoint context ceilings and RecipeParameters.adjust_context (#212)"; c9935887 2026-11-27 Luke Alonso integrated GA10B + explicit memory limits; 698ee450 2026-11-26 #545 compositional RecipeParameters (the hook's origin); f377dc85 #543; 33ab6df5 #508; d0adb958 #499.
- tests/cli/test_planning.py: a39f6777 2026-11-28, d3d0e783, 5adb27f2, f3a5b709, 698ee450, f377dc85, 33ab6df5, 27716185.
- No commits on the default branch since #635 branched (0a8c20f) touch either changed file (orientation packet) — so the PR is rebase-clean against main at head c2ef797, and main's planning.py still has the old pre-GPU filter_world_sizes call (verified at ref main: planning.py:566 and :609).
- The GPU capability table keeps growing (#592 added SM110 the day before), which is the case for letting recipes see capability rather than only core's hardcoded list: planning.py:37-38, :52-53.
#8 [medium] Reach: every ignition plan/export/bench path, zero CLI surface, external recipe consumer
- Impact: every
ignition export/debug-serve/bench/plancall path goes through planning.plan() (ignition/cli/preparation.py:70-79 derive(), ignition/cli/serve.py:422-431 export/ranks, ignition/cli/bench.py:187-188). Behavior for recipes that ignore context.gpus is unchanged (no signature, default, manifest, or CLI change) — zero configuration/flag/doc surface is added or changed; no docs files edited, and docs/preparation-development.md:32-36 already promises that planning invokes filter_world_sizes (does not state what context.gpus holds there, so no doc is made false). - Downstream dependency: the concrete consumer is an external recipe subclass in local-inference-lab/hyperflare-recipes (description cites a companion "DeepSeek V4.1 TP3 PR"); AGENTS.md:382-396 requires model logic to live there and tests/preparation/test_core_boundary.py:39-67 enforces that ignition never imports recipes — this PR keeps core recipe-free by adding no model branch. Ordering: this must land before (or with) the recipes
uv.lockbump, same cross-repo merge pattern as #499/#508/#545. - Compatibility risk to watch for a recipe author: with the hook now architecture-aware, a recipe that filters on context.gpus will behave differently under automatic vs explicit
--gpus(automatic passes only supported GPUs, explicit passes the exact selection), and under multi-host planning the GPUs come from peer topologies (serve.py:421) rather than local NVML. - Reach on hardware targets: applies on all of SUPPORTED_CAPABILITIES (SM87, SM103, SM110, SM120, SM121) since it just forwards devices; nothing is gated.
- Operators: no user-visible message, flag, or default changes (only the error-order swap noted in entry 3), so no operator-facing documentation update is implied.
#9 [medium] Process: ready-for-review, 1 commit, 2 files, no CI, no design sign-off, no cited issue
- State: open, "ready for review" per orientation packet, opened and last updated the same day (2026-11-30, 2026-11-30), base main, head c2ef797 (author Jonathan Gutierrez, single commit "Pass candidate GPUs into filter_world_sizes during planning"). Labels: none. Reviews: none. Comments: none. CI on head: no checks (repo does have .github/workflows/python-cpu.yml:3-33 running
pytest tests/ -qon pull_request, so the absence is a trigger/fork condition, not a missing suite). - Size: 2 files, +41/-5 (ignition/planning.py +9/-5, tests/cli/test_planning.py +32/-0) — small, single-purpose, no docs, no schema, no Rust.
- No design sign-off trailer or Design-Signed-Off-By in the description (compare #499/#533 which carry design-review ids); no maintainer request/issue is cited as the reason, unlike the charter's "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs". docs/TODO.txt:263-267 ("Qualify RoCE ring transport beyond GLM-5.3 Flash TP4 ... TP2 and TP3") is the closest roadmap-ish item touching the motivating configuration, but #635 cites no issue or TODO.
- Process expectation from AGENTS.md:72-140 (four-part description): satisfied in order (why / what changed / claimed benefit / evidence + limitations), and it names the untested part explicitly.
#10 [medium] Why: no linked issue; need inferred from author's SM121 TP series and TODO
- No issue in this repo asks for GPU-aware world-size filtering (searched issues: "planning world size GPUs capability recipe" and "filter_world_sizes" returned only PRs). The need is documented only by the author's description and by the shape of core's code: SUPPORTED_CAPABILITIES is a fixed tuple (ignition/planning.py:37-38, last extended by #592 on 2026-11-29 to add SM110) and
Gpu.supported(52-53) is the only capability signal planning uses; before this PR nothing in the plan path let a recipe see capability except the later validate/adjust hooks (planning.py:469-478 for fit(), 582 for the chosen-GPU failure path). - Closest prior art for capability gating inside planning (now removed from core in the recipe split): #499 made automatic GPU selection "restrict to row_shard_prefill_world_sizes" and reject SM103 GPUs; #508 "enforcing SM103"... (per its description: qualification limited to single-host SM120 PCIe, SM121/multi-host RoCE unqualified, docs/TODO.txt:349). These were per-flag core switches; #635 generalizes the same need to a recipe-declared hook — an argument the reviewer can weigh either way (small footprint via existing hook vs. one more thing in planning).
- Age/width of the want: the cross-host SM121 GB10 vs single-host SM120 PCIe distinction recurs across the author's series (#161, #220, #467) and docs/TODO.txt:263-267 (RoCE ring beyond GLM-5.3 Flash TP4, "other recipes, TP2 and TP3"); the hook #545 that #635 completes is 4 days old at the PR's opening.
#12 [medium] Community: zero engagement, no autobot case file opened
- pr_comments on #635 returns nothing: no human comment, no review, no inline review comment, no reaction (orientation packet: "Reviews: none yet", "Labels: none").
- Unlike #499, #508, #533 and #545, no flare-autobot "A case file has been opened" comment exists on #635, i.e. the automatic review pipeline has not run on it yet (it normally posts within minutes of opening; #499's arrived ~2h after open, #533's ~3h). Interest/discussion so far: none.
- The only engagement channel named is the description's "Discord: nero", the same handle used on the author's other PRs (#220, #433, #467), so review may also be happening off-GitHub.
- Comparison for expectations: comparable small core planning PRs (#508 +281/-21, #499 +1546/-191, #533 +79/-31) all drew an autobot review with blockers, mostly about evidence, metadata recording, and doc truthfulness — the classes of feedback #635 could plausibly attract are (a) no live/GPU evidence, (b) change not recorded anywhere, (c) no cited maintainer request.