Opened by a workflow run, Nov 29, 2026 4:56 AM EST. decide malicious: all_clear (100%): No malicious content found
explore
Author: brandonmmusic-max (CONTRIBUTOR; Discord: Brandonmusic) Motivation: Workstations that mix RTX PRO 6000 Blackwell Max-Q and Workstation Edition cards (same SM120 capability, different product names) cannot reliably run one tensor-parallel export, because compiled forwards and Inductor kernel inventories were shared and validated per host rather than per GPU model. The PR gives each GPU product name its own forward artifacts, cache lock and compiler worker, and validates Inductor kernels within each SKU. Scale: +467 / −44 lines in 4 files Proposal:
- New
_cuda_device_identity()returns(product_name, capability)for CUDA devices,("", None)otherwise (inductor_tuning.py:21-26). ForwardCache._publication_lockgathers(host, resolved root)and locks each distinct pair in sorted order, one barrier per pair (aot.py:773-810).allocate_workers(..., groups=None)seeds one worker per active(host, group), raisingValueErrorwhen the limit is below the group count andMemoryErrorwhen memory admits no worker per group (compile_pool.py:62-125)._prepare_ranksrejects cross-architecture groups, suffixes variant names with a normalized GPU tag only when the group is mixed, and restricts lending to same(host, gpu_name)peers (aot.py:929-1010,:1112-1155).InductorSelections.warmgathers((variant, gpu_name), capability, inventory), rejects capability splits, and requires identical inventories per(variant, gpu_name)(inductor_tuning.py:244-260); 13 new CPU tests. Touches:ignition/preparation/aot.py— forward caching, artifact naming, host-local lending, publication locking.ignition/preparation/compile_pool.py— worker admission, newValueError/MemoryErrorconditions.ignition/preparation/inductor_tuning.py— cross-rank Inductor inventory agreement. Related items:- #150 Treat Max-Q and Workstation Edition device names as one GPU when tuning (open): same author, same host, opposite design direction; CHANGES_REQUESTED, bot stopped.
- #584 Accelerate Ignition forward compilation, kernel tuning, and warmup (closed): rewrote the same three files and the test module #597 imports fixtures from.
- #122 Make the compiler memory headroom a preparation setting (open): will conflict in
compile_pool.pyadmission. - #592 SM110/Jetson Thor architecture admission (open): touches
aot.py/compile_pool.py, interacts with the new architecture rejection. - #154 Reuse retained warmup mappings across compiled warmup (merged): author's earlier mixed-SKU prerequisite, itself carrying a local GPU-name override.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/597
Autobot comments: The premise is loose:
ForwardCache.rootalready hashed the GPU product name (aot.py:750-763), so mixed-SKU ranks never shared a cache directory — they shared lending logic and one host-wide lock. What is new is a file-name suffix plus per-GPU-group admission. Undeclared: aValueErrorthat makes--compile-workersa per-SKU floor, aMemoryErrorthat moved from per-host to per-group, extra barriers per(host, root), agpu_tagnormalization that can collide while Inductor keys on the raw name, and a group-wide naming split that prevents mixed and homogeneous runs from reusing each other's forward cache. No issue or log shows the abort it fixes reproducing on main — the same "show the failure on main" evidence yatesdr demanded of #150. Docs atdocs/model-preparation.md:203-245anddocs/preparation-development.md:351-371still describe the replaced behavior. Python tests are not wired into any CI workflow, so "no checks" is structural; the hardware evidence is whole-pipeline and self-declared non-attributable.
Value Proposition
Value Proposition — PR #597 "Key compiled forward sharing and Inductor validation by GPU name"
Charter alignment: aligned, with one real tension. The change lives in shared preparation code (ignition/preparation), not in a recipe, so runtime-vs-recipes ownership is respected. It adds no flag, no model branch, no env var, and targets SM120 RTX PRO 6000 workstation hardware — the charter's stated focus — for single-host multi-GPU TP export, which is explicitly in scope. It tightens invariants (cross-architecture rejection, per-SKU inventory agreement) rather than relaxing them. The tension: it introduces a new hardware-shape branch into shared code and hard-fails cases that previously at least ran — mixed capability groups, and --compile-workers below the active SKU-group count (compile_pool.py:89-92). Defensible, but the charter's "stay focused" / "not broad hardware support" language puts weight on that.
Novelty & status: genuinely additive — neither obsolete nor superseded. No commit on main touches the four changed files since the branch point (9933960), and no merged PR covers this layer. PR #150 (same author, still open, CHANGES_REQUESTED from yatesdr) is the opposite strategy — merge Max-Q and Workstation names into one tuning plan — so it is not a canonical replacement; #584 was closed as a draft to be split. The forward-cache keying half exists only here.
Value vs evidence. Beneficiaries are operators of mixed-SKU single-host TP exports, plus cross-host --ranks/join runs, since _prepare_ranks and _publication_lock also execute there. But the charter's "bring real evidence / root cause" bar is only partly met:
- The stated abort ("mismatched Inductor kernel inventories or cross-SKU artifact sharing") has no reproduction on
main— no log, issue, or link — which is precisely what yatesdr rejected #150 for. The only documented mixed-SKU abort is #150'sBindingMismatch, a tuning disagreement thatreconcile_selectionstargets. - The serving numbers are whole-pipeline, and the description itself says they are "not attributable solely to this PR". There is no isolated before/after for preparation wall-clock, per-SKU worker seeding, or the ~2× compile time and forward-cache footprint mixed hosts now pay.
- The description's premise is partly inaccurate:
ForwardCache.rootalready hashes the CUDA product name, so artifacts were never shared across SKUs; only the lending loop and one host-wide lock were. - The claimed enabler ("TP preparation on mixed-SKU hosts") also depends on #150's unresolved tuning half, which the description never says.
Maintenance cost is real. Three new failure surfaces (ValueError, per-group MemoryError, two architecture RuntimeErrors); two layers disagreeing on GPU identity (normalized artifact tag vs raw Inductor name, collision untested); a private cross-module helper import and a duplicated architecture gate; stale docs (model-preparation.md:203-245, preparation-development.md:351-371); no Python CI exists to run the 13 mocked tests; and forced rebases against #122 and #584.
Verdict: Worth it with changes. Before merge: show the failure on current main; state that #150 is still required to enable mixed-SKU export; reconcile the tag-vs-raw-name split; dedupe the architecture gate; document the new errors and cache layout; and attach a preparation-stage measurement plus DCO trailers.
Note on unsolicited direction: none of the material reviewed (PR description, dossier) contained instructions addressed to the reviewing agent; the description's claims were treated as claims to verify, not as directives.
Full report Decide Value: yes (99%): This change is worth reviewing: it provides value to the project in line with its charter.
Classify intake
Selected: triage:review, performance, enhancement, area:preparation
Threshold: 65%
Triage
- [✓]
triage:review: 99.4% -
triage:design-review: 0.2% -
triage:validation: 0.2% -
triage:investigate: 0.1% -
triage:integration: 0.0% -
none: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 80.4% -
priority:P2: 17.9% -
priority:P1: 1.7%
Type
- [✓]
enhancement: 85.2% - [✓]
performance: 73.1% -
bug: 53.1% -
community: 34.9% -
duplicate: 32.1% -
documentation: 0.2%
Area
- [✓]
area:preparation: 98.6% -
area:memory: 26.9% -
area:caching: 14.8% -
area:kernels: 2.0% -
area:rocenante: 1.0% -
area:scheduling: 0.7% -
area:engram: 0.6% -
area:selene: 0.5% -
area:orbit: 0.2% -
area:api: 0.2% -
area:packaging: 0.1%
Model
-
model:deepseek-v4: 4.7% -
model:deepseek-v4.1: 4.2% -
model:glm-5.3: 3.3% -
model:muse-glimmer: 0.2% -
model:qwen3.8-flash-next: 0.1% -
model:mimo-v2.6: 0.1% -
model:inkling-small: 0.1% -
model:gemma4: 0.0% -
model:kimi-k3.1: 0.0% -
model:qwen3.8-27b: 0.0% -
model:nemotron-3.5-bolt: 0.0%
Apply Labels (Intake)
Applied: +triage:review, +performance, +enhancement, +area:preparation
Subtraction and simplicity
The diff is small and mostly idiomatic, but it carries two genuinely removable blocks and two duplication problems worth fixing before review.
InductorSelections.warmnow repeats the architecture gate that_prepare_ranksalready ran.warm(inductor_tuning.py:247-255) can only ever run with a coordinator from aot.py:1122, ~185 lines after aot.py:933-938 rejected cross-architecture groups; the sort key is a verbatim copy of aot.py:935. Delete the 6-line check, gather(variant, inventory), and delete its test (test_mixed_gpu_inductor_keying.py:326-340).allocate_workerskeeps an ungrouped branch that is exactly the grouped one and a redundantadmittedcounter (compile_pool.py:75-85, 94, 103, 115, 120).admittedis alwayslen(active_groups);groups=Noneis equivalent togroups=hosts. ~15 lines removable.- "Same GPU" is encoded twice — a normalised tag for artifacts (aot.py:939-944) and the raw device name for Inductor grouping (inductor_tuning.py:248) — so the two equivalence relations can diverge. Pass the already-suffixed variant name into
warmand keep one rule; also give the thrice-repeatedgetattr(forward, "compilation_variant", "shared")one home. - The new test file re-implements
_lending_rankfromtest_forward_artifact_sharing.py(which it already imports fixtures from) and re-derives the productiongpu_tag(test:65-70) instead of asserting the real names. Reuse the existing harness; #584 rewrites that file and will otherwise force a double rebase. - Operator-visible semantics changed and docs did not:
--compile-workersis now a floor of the active-SKU count and admission is per-SKU, but docs/model-preparation.md:238-243 and docs/preparation-development.md:351-371 still describe one worker per host and "every rank loads the same artifacts".
Open: is the duplicate-value test test_inductor_warm_... needed at all, and is the ValueError floor intended to be documented or configurable (overlaps #122)?
Correctness and contracts
Review of PR #597 (head f8a033a) across the four correctness/contracts/system-level lenses. The mechanics are mostly careful, but the justification, the cache-keying design, and the admission accounting have concrete problems.
Key findings:
- Major: the stated premise is false. ForwardCache.root already hashes properties.name (aot.py:752-763), so cross-SKU artifact sharing never existed; only lending and the host-wide publication.lock did. The new {variant}.{gpu_tag} suffix isolates nothing.
- Major: heterogeneous is computed over the whole TP group (aot.py:929-944), so a homogeneous card gets suffixed variant names whenever a peer differs — mixed and homogeneous runs can never reuse each other's forward cache, and mixed hosts compile/store a full catalog per SKU (tests assert 8 vs 4 artifacts, no measurement).
- Major: admission pricing span changed. The per-group fallback (compile_pool.py:107-114) charges the 2 GiB estimate once per SKU while each worker's peak is 32 GiB (host_memory.py:13-15), so a 44 GiB host can launch ~64 GiB of compilers — the opposite of the inline comment.
- Major: MemoryError moved from per-host to per-group (compile_pool.py:116-118), so hosts that previously compiled serially now abort; docs/model-preparation.md:238-243 still promises the per-host fallback. Same for lending (:238-240) and --compile-workers (:231-236), and docs/preparation-development.md:351-371.
- Major: the claimed benefit depends on the still-open, CHANGES_REQUESTED PR #150; evidence is whole-pipeline and self-described as not attributable to this PR (charter #210).
- Minor: ValueError floor is triggered only by a CPU-affinity/compile_threads budget below the SKU-group count, not by --compile-workers (compile_pool.py:88-92); a CUDA-unavailable rank is reported as "incompatible CUDA architectures" (inductor_tuning.py:21-26, aot.py:933-938); raw vs normalized GPU identity is forked (harmless for artifacts, since roots differ); per-SKU _balance_compilations keeps a host-wide message (aot.py:681-682); "96 passed" is unverifiable and no GPU suite covers the changed warm().
Verified sound: lock keying/ordered acquisition/barrier parity (aot.py:788-804), groups=None back-compat, _variant() applied at every artifact site, no new collective in warm(), no hot-path contention regression.
Open: no main-side reproduction exists; no wall-clock or cache-footprint measurement; cross-host mixed-SKU sharing is untested; overlap with #122/#592; DCO trailers unconfirmed.
Final review
Recommendation: Changes Requested
PR #597 addresses a real gap in tensor-parallel forward preparation for mixed-SKU same-architecture SM120 workstations (fixing cross-SKU paths[name, variant] sharing, per-(host, root) publication locking, same-SKU lending, and per-(variant, gpu_name) Inductor inventory checks), while keeping homogeneous-GPU paths clean. However, it introduces a confirmed non-monotonic memory-admission and overcommit bug in allocate_workers (ignition/preparation/compile_pool.py:96-118) where a 2-SKU host with 12–39 GiB available RAM admits two concurrent 32 GiB compilers while 40–41 GiB raises MemoryError, alongside an unnecessary on-disk filename suffix that breaks homogeneous/mixed cache reuse inside already-per-SKU cache roots, a multi-host _share_artifacts lock-bypass hazard, stale docs, and missing main failure reproduction / isolated preparation evidence.
Merge Risk
Level: Medium
allocate_workers(ignition/preparation/compile_pool.py:96-118) runs on every distributed forward compilation; while homogeneous hosts (len(active_groups) == 1) preserve existing behavior, mixed-SKU hosts can concurrently overcommit host RAM (64 GiB estimated peak on 12–42 GiB available) or hit a non-monotonicMemoryErrorat 40–41 GiB.ForwardCache._prepare_ranks(ignition/preparation/aot.py:939-944) changes on-disk artifact filenames whenever any peer in the TP group has a different GPU product name, preventing cache reuse between homogeneous and mixed runs on the same card; on multi-host mixed-SKU runs,_share_artifacts(aot.py:698-734, 1103, 1169) writes foreign-SKU artifacts into unlocked cache roots.- No Python CI workflow runs
tests/preparation, andtests/preparation/test_inductor_tuning_cuda.pywas not run against the change.
Walkthrough
ignition/preparation/inductor_tuning.py: Adds_cuda_device_identity(device)(:21-26) returning(product_name, compute_capability)(or("", None)for non-CUDA), and updatesInductorSelections.warm(:247-260) to key inventory agreement by(compilation_variant, gpu_name)and reject cross-architecture capabilities.ignition/preparation/aot.py: UpdatesForwardCache._publication_lock(:774-811) to gather(host, str(self.root.resolve()))and acquirepublication.lockper distinct pair in deterministic sorted order with per-key barriers; updatesForwardCache._prepare_ranks(:929-1010, 1112, 1131, 1154) to gather(gpu_name, capability), reject cross-architecture groups, suffixcompilation_variantwith a normalizedgpu_tagwhen multiple GPU names appear, passgroups=gpu_namestoallocate_workers, and restrict compilation lending to(host, gpu_name)peers.ignition/preparation/compile_pool.py: Addsgroups=Nonetoallocate_workers(:62-128), raisingValueErroriflimit < len(active_groups), seeding one worker per active(host, group)subgroup (with a per-subgroup 2 GiB fallback), raisingMemoryErrorif any active subgroup remains empty, and distributing surplus workers across active subgroups.tests/preparation/test_mixed_gpu_inductor_keying.py: Adds 13 CPU-only unit tests using forked Gloo processes and monkeypatchedForwardCache/InductorSelectionsstubs covering mixed-SKU keying, lending isolation, worker seeding, multi-root publication locking, homogeneous un-suffixed sharing, cross-architecture rejection, and Inductor inventory mismatches.
Pre-merge Checks
- [PASS] Security / malicious screen: No prompt injection, shell execution, credential exposure, or unsafe deserialization introduced across the 4 changed files.
- [PASS] Charter & value fit: Lives in shared
ignition/preparation, targets SM120 workstation TP preparation with no new flags, env vars, or per-model branches, and tightens architecture/SKU invariants; however, evidence does not yet meet the charter's root-cause/before-after bar. - [WARN] Related / duplicate / conflict check: Additive to
main(no merged PR covers this layer, andmain'sreconcile_selectionsalready handles the b12x tuning half from #150), but overlaps open PRs #122 (compile_pool.py,aot.py) and #592 (aot.py,compile_pool.py) and imports private helpers fromtests/preparation/test_forward_artifact_sharing.py. - [WARN] Tests & verification evidence: No Python CI exists; "96 passed" has no attached command/output; no
mainfailure reproduction or isolated preparation measurement is provided;tests/preparation/test_inductor_tuning_cuda.pywas not run; and the new tight-budget test only checks 40 GiB, missing the 12–39 GiB and 42 GiB overcommit bug.
Blockers
- Non-monotonic memory admission and concurrent RAM overcommit in
allocate_workers(ignition/preparation/compile_pool.py:96-118).- Verified behavior & impact: The 2 GiB minimum-allowance fallback (
worker_bytes - FORWARD_WORKER_BYTES + _WORKER_BYTES, which equals2 GiBfor discrete GPUs perignition/preparation/host_memory.py:13-15) now runs insidefor subgroup in active_groups:instead of once per host when zero workers were admitted. On a 2-SKU discrete host (worker_bytes = 32 GiB,headroom = 8 GiB):- At
available = 12..39 GiB(remaining = 4..31 GiB), subgroup 0 misses the 32 GiB primary path and takes the 2 GiB fallback, then subgroup 1 also takes the 2 GiB fallback — admitting 2 concurrent compiler workers (64 GiB conservative concurrency demand) on as little as 12 GiB available RAM, directly contradicting the inline comment"without multiplying that allowance"(compile_pool.py:105-106). - At
available = 40..41 GiB(remaining = 32..33 GiB), subgroup 0 takes the 32 GiB primary path (remaining = 0..1 GiB), leaving subgroup 1 under 2 GiB, so admission raisesMemoryErroreven though 12–39 GiB succeeded (non-monotonic!). - At
available = 42..71 GiB(remaining = 34..63 GiB), subgroup 0 takes 32 GiB and subgroup 1 takes the 2 GiB fallback — again admitting 2 concurrent workers on 42 GiB available RAM. tests/preparation/test_mixed_gpu_inductor_keying.py:155-158only tested40 GiB(right inside the 2 GiB failure hole), which masked the bug.
- At
- Concrete fix: Keep the 2 GiB minimum-allowance fallback strictly for a single worker on the host (
len(active_groups) == 1, preservingmain's invariant), and require fullresources[rank].worker_bytesfor every seeded worker whenlen(active_groups) > 1(or compile active SKU subgroups sequentially when host RAM fits only one worker). Add unit tests covering12 GiB,39 GiB,40 GiB,42 GiB,71 GiB, and72 GiBfor 2 active SKU groups.
- Verified behavior & impact: The 2 GiB minimum-allowance fallback (
Should Fix
- Unnecessary on-disk
gpu_tagfilename suffix breaks homogeneous/mixed cache reuse and forks GPU identity (ignition/preparation/aot.py:939-944, 967, 1024, 1065vsaot.py:750-763andignition/preparation/inductor_tuning.py:248).ForwardCache.__init__(aot.py:750-763) already hashesproperties.nameintoself.root, so distinct GPU product names never share a cache directory in production. The cross-SKU sharing bug onmainoccurred only because_variant_compilersandpaths[name, variant]keyed oncompilation_variantalone.- Suffixing
_variant(forward)with a normalizedgpu_tagwhenheterogeneous = len(set(gpu_names)) > 1also changesname=f"{name}.{variant}"passed to_restore/_path, causing the exact same GPU card to write different.binhashes in the sameself.rootdepending on its peers (e.g., homogeneous TP2 vs mixed TP4 on the same Workstation card, or a homogeneous host paired with a different-SKU peer host). It also splits GPU identity into normalizedgpu_tag(aot.py:940) vs rawgpu_name(aot.py:996, 1000-1004;inductor_tuning.py:248). - Concrete fix: Remove
heterogeneousandgpu_tag. Keyselections,compilers, andpathsin_prepare_ranksby(base_variant, gpu_name)(matchingInductorSelections.warmand working natively with_variant_compilersataot.py:657-670), while passingname=f"{name}.{base_variant}"toself._restoreandself._path. Intest_mixed_gpu_inductor_keying.py, give each SKU its owncache.root(mirroringForwardCache.__init__) and assert cache reuse between homogeneous and mixed runs on the same GPU.
- Multi-host mixed-SKU
_share_artifactswrites foreign-SKU artifacts into unlocked cache roots (ignition/preparation/aot.py:698-734, 1102-1104, 1168-1169vs:788-804)._publication_lockacquirespublication.lockonly for(host, self.root.resolve())pairs present on each host. Whencoordinator.spans_hostsis True,_share_artifactsstill marks every path compiled on any other rank asmissingand writes it viatarget.parent.mkdir+os.replace(aot.py:718-733). On a multi-host mixed-SKU launch where Host B has no rank of Host A's SKU, Host B transfers unused artifacts and writes into that foreign SKU's cache directory without holding itspublication.lock.- Concrete fix: Filter
missingin_share_artifactsso each rank only fetches artifacts under its ownself.root(or paths it selects frompaths[name, variant]).
- Update stale documentation for worker admission, lending, and cache sharing (
docs/model-preparation.md:231-245,docs/preparation-development.md:351-371).docs/model-preparation.md:231-245still states that ranks lend missing forwards to any other rank on the host, describes a host-wide 2 GiB minimum allowance, and does not mention the per-active-SKU seeding orValueErrorwhen the host worker limit is below the active group count.docs/preparation-development.md:351-371still states "Ranks on one host share its cache directory" and "Every rank loads the same artifacts."- Concrete fix: Update both passages to document per-
(host, GPU product name)cache roots, same-SKU lending, per-active-group worker admission, and per-(variant, GPU name)Inductor validation.
- Provide a
mainfailure reproduction and isolated preparation-stage verification.- Attach the concrete failure observed on current
mainfor the mixed-SKU SM120 export, an isolated preparation comparison (mainvs this branch: compile phase outcome, wall clock, and admitted workers), and the exactpytestcommand/output (and runtests/preparation/test_inductor_tuning_cuda.pyif hardware is available, or explicitly note it as unrun).
- Attach the concrete failure observed on current
Subtract / Simplify
- Delete the unreachable duplicate cross-architecture gate in
InductorSelections.warm(ignition/preparation/inductor_tuning.py:249-255andtests/preparation/test_mixed_gpu_inductor_keying.py:326-340).- Every coordinator-backed
InductorSelectionsis constructed solely insideForwardCache._prepare_ranks(ignition/preparation/aot.py:1122), ~185 lines afteraot.py:933-938already rejects cross-architecture ranks on the samecoordinatorandself.device. Every other call site (aot.py:835, 1256,scripts/inspect_forward_kernels.py:93(not opened)) passescoordinator=None, where_gatherreturns[value](inductor_tuning.py:129-131). Droppingcapabilityfromwarm's gather payload removes the dead check and its stub-only test while keeping cross-architecture coverage intest_cross_architecture_ranks_are_rejected_before_forward_sharing.
- Every coordinator-backed
- Simplify
allocate_workersby removing the redundantgroups is Nonebranch andadmittedcounter (ignition/preparation/compile_pool.py:75-85, 94, 103, 115, 120).- Normalizing
groups = hosts if groups is None else groupscollapsesif groups is None:cleanly into the singleactive_groupscomprehension (sincejobs > 0is already enforced at:73-74). - After the
MemoryErrorcheck at:116-118, every active subgroup has received exactly 1 worker, soadmittedalways equalslen(active_groups); deleteadmittedand userange(limit - len(active_groups))at:120.
- Normalizing
- Eliminate duplicated test harness and copy-pasted tag normalization (
tests/preparation/test_mixed_gpu_inductor_keying.py:23-122).- Once Should Fix 1 removes
gpu_tag, lines:65-70(which re-implementaot.py:940verbatim) disappear. Consider extending_lending_rankintests/preparation/test_forward_artifact_sharing.py:171-252(from which this file already imports four private fixtures at:17) instead of duplicating the fork/Gloo setup.
- Once Should Fix 1 removes
Nits
ignition/preparation/aot.py:925imports private_cuda_device_identityacross modules; expose it without a leading underscore (e.g.,cuda_device_identityindevice_binding.pyorinductor_tuning.py).ignition/preparation/compile_pool.py:112usesworkers[rank] = 1whereas:101usesworkers[rank] += 1; prefer+= 1for consistency if the fallback stays forlen(active_groups) == 1.ignition/preparation/compile_pool.py:89-92raisesValueErrorif a host's effective CPU worker limit (e.g., from a 1-CPUsched_getaffinity/cgroup mask orcompile_threads=1) is smaller thanlen(active_groups)on a mixed-SKU host; mention this constraint when updatingdocs/model-preparation.md.
Dropped on verification
- Upstream claim that the PR's premise of cross-SKU artifact sharing on
mainis false (C1): Verified false. AlthoughForwardCache.roothashesproperties.name(aot.py:750-763),_prepare_ranksonmainassigned one compiler per(name, compilation_variant)across all ranks and all-gathered the compiling rank's absolute path inpaths[name, variant](aot.py:947-952, 1100, 1131), causing different-SKU peers to load from the compiling rank's root. Dropped C1 and kept the verified cache-reuse defect (Should Fix 1). - Upstream claim that this PR still depends on open PR #150 for mixed-SKU tuning agreement (C3 / Discovery / Value Prop): Verified false.
mainalready reconciles b12x kernel tuning across mixed-SKU ranks viareconcile_selections(ignition/preparation/tuning.py:500-508,ignition/preparation/collectives.py:397-426), which is why PR #150's review was halted as already fixed another way. - Upstream claim that
--compile-workers 1on a mixed-SKU CLI run used to succeed and now raisesValueError(Discovery / Value Prop / S5): Verified false for CLI.ignition/cli/preparation.py:85-86already rejects--compile-workers < world_sizeas aUsageError; theValueErroris only reachable via tight CPU affinity/cgroup limits,compile_threads, or direct Python calls. - Upstream claim that per-group
MemoryErrorbreaks mixed-SKU hosts that previously compiled serially onmain(B2): Overstated — mixed-SKU hosts did not prepare cleanly onmain, and homogeneous hosts (len(active_groups) == 1) retain identical behavior. Replaced by the verified non-monotonic overcommit bug (Blocker 1). - Upstream claim that a CUDA-unavailable rank is misreported as incompatible CUDA architectures (A1 — Major): Dropped as unreachable/low-signal in production:
ForwardCache.__init__(aot.py:750) unconditionally callstorch.cuda.get_device_properties(device)before_prepare_ranksruns; the("", None)path exists for CPU-only tests (test_forward_artifact_sharing.py:229, 408), and the error prints[(12, 0), None]. - Upstream claim that
_balance_compilations's error message (aot.py:681-682) misreports per-SKU failure as host-wide (B4): Dropped as unreachable from_prepare_ranksbecauseallocate_workers(compile_pool.py:116-118) already enforces at least one worker per active subgroup beforehand. - Upstream claim that
docs/model-preparation.md:203-209is contradicted by this PR (C4 / S5): Verified false — lines 203-209 describe b12x kernel tuning sharding on identical GPUs (tuning.py:440-441), which is unchanged and remains accurate. - Upstream claim that tests erroneously assert 8 vs 4 artifacts for mixed vs homogeneous hosts (D2): Dropped — compiling 4 forwards per distinct SKU (8 total) is expected when 2 SKUs compile distinct forward inventories; the real issue is filename suffixing breaking homogeneous/mixed cache reuse (Should Fix 1).
- Upstream note about missing
Signed-off-by/Design-Signed-Off-Bytrailers: Dropped as unverified because full commit message trailers were not observable in available tool output.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.9% -
triage:design-review: 0.0% -
triage:partial: 0.0% -
triage:validation: 0.0% -
none: 0.0% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: no (100%): 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: brandonmmusic-max (CONTRIBUTOR; Discord: Brandonmusic) Motivation: On workstations that mix two RTX PRO 6000 Blackwell SKUs (Max-Q and Workstation Edition), tensor-parallel preparation could abort because ranks disagreed about Inductor kernels and shared compiled-forward artifacts across different cards. The PR keys compiled forwards and Inductor inventory checks by GPU product name so each SKU compiles and validates its own artifacts. Scale: +467 / −44 lines in 4 files at f8a033a (stale: head 1acb1f05 also edits docs/model-preparation.md and docs/preparation-development.md and grows the test file) Proposal:
- Key forward variants and Inductor inventory agreement by
(compilation_variant, gpu_name)instead of the variant alone - Seed one compiler worker per active GPU-SKU group on a host; raise
ValueErrorwhen the worker limit is below the group count andMemoryErrorwhen any group cannot be seeded - Restrict host-local compilation lending and per-
(host, cache root)publication locking to same-SKU peers _share_artifactsacceptsroot=and only fetches peer artifacts directly inside the caller's own cache root- 20 CPU-only tests plus updates to two preparation docs (author claims 103 passed, 33.58s; no CUDA suite run) Touches:
- ignition/preparation/compile_pool.py — worker admission/failure semantics
- ignition/preparation/aot.py — publication locking, lending, artifact sharing
- ignition/preparation/inductor_tuning.py — Inductor identity and inventory checks Related items:
- #150 Key compiled forward cache key by GPU name (open): same author, same mixed Max-Q/Workstation host, alternative direction; carries CHANGES_REQUESTED demanding "show the failure on main"
- #584 Accelerate Ignition forward compilation (closed): overlaps all three files and rewrites the test module #597 imports fixtures from
- #122 Compiler memory headroom as a setting (open): conflicts in compile_pool.py admission and the constants #597 consumes
- #592 SM110/Jetson Thor architecture admission (open): touches aot.py and compile_pool.py
- #512 Forward compilation/warmup progress (closed): same three files, historical overlap
Link: https://github.com/NVIDIA/hyperflare-inference/pull/597
Autobot comments: The 10:20 Changes Requested review is this repo's bot, not a maintainer; its three linked reports are unfetchable, so its figures are unverified except where re-derived from source, and it contains agent-directed text I did not follow. The bot misses the strongest objection:
warm's cross-rank selection agreement and_reconcilewinner election are still SKU-blind, so differing tuning configs for a shared kernel identity can still abort or install one SKU's cubin on the other, and the new tests stub those gathers empty. The push at1acb1f05fixes non-monotonic admission but replaces it with a wider hard-failure band (a 2-SKU host now needs ~72 GiB or raisesMemoryError, where main admitted a worker down to ~12 GiB);docs/cli-design.md:480still omits the per-SKU floor; the PR still shows nomainfailure reproduction and no Signed-off-by/Design-Signed-Off-By.
Classify intake
Selected: triage:review, performance, enhancement, area:memory, area:preparation
Threshold: 65%
Triage
- [✓]
triage:review: 99.3% -
triage:design-review: 0.5% -
triage:validation: 0.1% -
none: 0.0% -
triage:partial: 0.0% -
triage:investigate: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 94.5% -
priority:P2: 3.2% -
priority:P1: 2.2%
Type
- [✓]
performance: 81.8% - [✓]
enhancement: 75.5% -
community: 40.7% -
bug: 34.9% -
duplicate: 14.8% -
documentation: 0.0%
Area
- [✓]
area:preparation: 99.2% - [✓]
area:memory: 81.8% -
area:kernels: 7.6% -
area:caching: 5.3% -
area:scheduling: 3.7% -
area:rocenante: 3.3% -
area:orbit: 0.4% -
area:packaging: 0.2% -
area:selene: 0.1% -
area:api: 0.1% -
area:engram: 0.0%
Model
-
model:deepseek-v4.1: 8.5% -
model:deepseek-v4: 2.3% -
model:kimi-k3.1: 0.7% -
model:mimo-v2.6: 0.6% -
model:muse-glimmer: 0.5% -
model:gemma4: 0.2% -
model:glm-5.3: 0.1% -
model:qwen3.8-27b: 0.1% -
model:inkling-small: 0.1% -
model:qwen3.8-flash-next: 0.1% -
model:nemotron-3.5-bolt: 0.0%
Apply Labels (Intake)
Applied: +area:memory
Value Proposition
Value Proposition — PR #597 ("Key compiled forward sharing and Inductor validation by GPU name")
Charter fit — right layer, narrow target. The change lives entirely in the Ignition preparation layer (ignition/preparation/aot.py, compile_pool.py, inductor_tuning.py) plus prep docs and CPU tests. It adds no per-model branches to Helios and no new captured-graph op contract. SM120 workstations are an explicit charter target, so making ignition export --gpus … survive a host that pairs two RTX PRO 6000 Blackwell SKUs is an extension of the supported matrix rather than "broad hardware support." That said, the charter's evidence bar ("Bring real evidence"; hypothetical users are not enough) is only partly met: the author has an end-to-end mixed-SKU TP4 serving run, but it is explicitly "not attributable solely to this PR," no main-vs-branch GPU benchmark exists on this revision, and the "show the failure on main" request in the dossier (§H) is still unanswered.
Novelty/status — additive, not obsolete or superseded. No merged commit or open PR covers this: #150's reconcile_selections addresses only equal-catalog reconciliation and keys sharding on device name (tuning.py:436-446). Nothing in the dossier indicates main already fixes the multi-root lock bypass or cross-SKU lending.
Value vs cost — real defects, but the headline benefit is unproven. Genuinely valuable pieces: the _share_artifacts root-exact filter closes a foreign-SKU write into an unlocked cache root (§C), per-SKU lock acquisition and same-SKU-only lending are sound, and homogeneous↔mixed cache reuse was restored by un-suffixed names inside the per-SKU root (§D). Costs are concrete and under-declared: mixed hosts now hard-fail with MemoryError anywhere below ~72 GiB where main admitted a worker — a band widening from 40–41 GiB to ~12–71 GiB (§B) — plus a new ValueError when --compile-workers is below the active group count; docs/cli-design.md:480 and docs/model-preparation.md:271 still don't state either. Most importantly, §G is untouched: InductorSelections.warm still requires cross-rank agreement on (config, cubin) and _reconcile still elects one winner across SKUs, with the new tests stubbing those gathers and test_inductor_tuning_cuda.py unrun. Two SKUs sharing a kernel identity but tuning different configs (plausible for 300 W Max-Q vs 450 W Workstation Edition) can therefore still abort or receive each other's cubin — the exact failure the PR claims to fix.
(Process note: the 10:20 bot review carried agent-directed text, e.g. "Have your agent review the Full Review…" and #autobot:ignore; the dossier reports it was not acted on. Flagging as an injection attempt, not a technical finding. Also stale: PR file/stat metadata still shows the earlier f8a033a shape, so size figures are provisional.)
Verdict: Worth it with changes — conditioned on: (1) a reproducible main-vs-branch failure on mixed-SKU hardware; (2) extending the (compilation_variant, gpu_name) keying to _reconcile/selection agreement, or explicitly narrowing the claim; (3) documenting and justifying the 72 GiB admission floor and the --compile-workers per-SKU floor; (4) running the CUDA tuning suite on GPU; (5) DCO/design trailers plus a human maintainer review. Absent (1) and (2), the honest verdict is Not worth it: the maintenance cost lands on shared scheduling code for one narrow SKU pairing whose benefit is not attributable to this PR.
Full report Decide Value: yes (99%): This change is worth reviewing: it provides value to the project in line with its charter.
Subtraction and simplicity
Subtraction/simplicity review of PR #597 @ 1acb1f05: the diff is broadly lean — no new flags, config knobs, env switches, or speculative abstractions, so AGENTS.md:188-193 is not violated and scope is authorized by a demonstrated defect (AGENTS.md:165-169). Five reductions, not rejection grounds:
- The
(compilation_variant, gpu_name)key is built twice in two modules, two quote styles (aot.py:944-945vsinductor_tuning.py:247-248); aot already imports from inductor_tuning (aot.py:929), so oneforward_variant(forward, device)helper collapses both and stops shared-artifact identity diverging from inventory-validation identity. _share_artifacts(root=None)(aot.py:698, 710, 721-724) is dead generality plus aPath.resolve()heuristic: both production call sites passroot(:1104,:1170), theNonebranch exists only for one test call. Delete it by masking peer lists withgpu_names(already ataot.py:934-936), or at minimum makerootrequired.- The
(host, GPU group)partition is computed twice in two idioms —compile_pool.py:76-90nested comprehension vsaot.py:1001-1005zipscan — so "active group" is an unenforced invariant across files. Onehost_groups(hosts, groups)helper shares it and letsgroupsbecome required, removing thegroups = hostsoverload. test_mixed_gpu_inductor_keying.py:25-27hand-copiesForwardCache.__init__'s root hash ("Mirror …") instead of the existing real-construction pattern intest_forward_cache_root.py:13-20;:242parametrizes six values over one identicalMemoryError;:256-259duplicatestest_compile_pool.py:509-517.- Minor: docstring
aot.py:916-924restatesdocs/preparation-development.md:353-369verbatim; keep it to caller-facing facts.
Found lean: cuda_device_identity (5 lines), _publication_lock (same barrier count as main), the capability gate, no residues of the withdrawn gpu_tag.
Open: whether cross-host sharing needs nested artifacts (delete-over-patch answers it); test results remain author-claimed with no CI pytest; stale PR size metadata.
Correctness and contracts
PR #597 at 1acb1f05 correctly partitions compilation, cache roots, locks, lending and Inductor inventories by GPU product name — but the Inductor winner election is still global, so the mixed-SKU failure it targets is only half closed.
Findings:
- Blocker —
inductor_tuning.py:275-289still gathersactual[identity]across all ranks and raisesRuntimeError("equivalent Inductor kernels disagree after frozen warmup"), and_reconcile(:291-306) elects one cubin winner per identity with identity derived from source+programs+bindings, not GPU (:108-114). Two SKUs that tune different configs for one kernel identity still abort the launch or receive each other's cubin. The PR only fixed the inventory check (:244-253). - Major —
compile_pool.py:91-114: each active SKU group is seeded with a full 32 GiB worker and the 2 GiB fallback is single-group only, so a 2-SKU host needs 72 GiB. The author's own test pins[12, 39, 40, 41, 42, 71] GiB → MemoryError(test_mixed_gpu_inductor_keying.py:242-247);mainadmitted a worker in most of that band. - Major — the documented
ValueError(compile_pool.py:87-90,docs/model-preparation.md:241) never reaches the user:aot.py:1038, 1094-1096wraps it intoRuntimeError, andcli/serve.py:319-325maps that toPreparationError. - Minor —
_share_artifactsfilters by resolved parent equality (aot.py:721-724), so hosts with different cache base paths, or any nested artifact, silently stop sharing cross-host — no diagnostic. - Minor —
cuda_device_identityreturns("", None)for non-CUDA (inductor_tuning.py:21-26), so an all-non-CUDA launch passes the cross-arch gate (aot.py:933-942) and collapses into one cache root keyed"". - Minor — the new
warmtests stub_reconcileand feed[{}, {}](:410-421, 433), so F1 is structurally untestable there;test_inductor_tuning_cuda.py(not opened) was not run;docs/cli-design.md:480still omits the per-SKU floor.
Verified sound: per-(host, resolved_root) locking (sorted, deadlock-free, aot.py:778-816), un-suffixed names inside per-GPU roots (:968, :757-768), (host, gpu_name) lending (:1001-1016), groups=None back-compat (compile_pool.py:70).
Open: whether real SM120 Max-Q/Workstation pairing hits F1; wall-clock cost of full seeding; the "103 passed" run is unlogged, has no CI job, and depends on fixtures that PR #584 rewrites.
Final review
Recommendation: Ready To Merge
Head 1acb1f0 cleanly resolves the Round 1 blocker and all Round 1 code/doc review items: allocate_workers is now strictly monotonic without multi-group RAM overcommit, on-disk filenames stay un-suffixed inside each SKU's GPU-partitioned ForwardCache.root (preserving homogeneous↔mixed cache reuse), _share_artifacts isolates multi-host mixed-SKU roots via root=self.root, _publication_lock acquires per-(host, resolved_root) locks in deterministic sorted order, and both preparation docs are updated. No new correctness, concurrency, or homogeneous-path regressions were introduced. Because no Python CI workflow runs tests/preparation/ and tests/preparation/test_inductor_tuning_cuda.py was not run on GPU for this CPU-only follow-up revision, a maintainer should confirm GPU test coverage / hardware evidence before pressing merge if desired.
Merge Risk
Level: Low
- Homogeneous hosts and single-active-SKU runs are unchanged:
allocate_workers(ignition/preparation/compile_pool.py:70, 101-111) preserves the 2 GiB minimum-allowance fallback wheneverlen(active_groups) == 1,CompilePool.__init__(compile_pool.py:161) keeps its existing single-rank call,_publication_lock(ignition/preparation/aot.py:789-816) executes the same barrier count per distinct root, and on-disk filenames remain un-suffixed{name}.{variant}insideself.root(aot.py:968, 1025, 1066). - Mixed-SKU hosts gain strict safety invariants with a clear RAM floor: Two active SKU groups on one host require
2 × 32 + 8 = 72 GiBavailable host RAM to seed one full-estimate worker per active group (compile_pool.py:93-114), avoiding the concurrent RAM overcommit that existed in the prior revision; hosts with only one active SKU compiling (e.g., the other SKU cached) retain the single-group fallback. - Verification gap remains outside CI: No
.github/workflows/job executestests/preparation/, andtests/preparation/test_inductor_tuning_cuda.pyplus an isolatedmain-vs-branch mixed-SKU GPU export were not run on1acb1f0.
Walkthrough
ignition/preparation/inductor_tuning.py: Exposescuda_device_identity(device)(:21-26) returning(product_name, compute_capability)(or("", None)for non-CUDA), and updatesInductorSelections.warm(:247-253) to key Inductor kernel-inventory agreement by(compilation_variant, gpu_name)while removing the redundant cross-architecture check.ignition/preparation/aot.py: Updates_publication_lock(:778-816) to lock every distinct(host, str(self.root.resolve()))in sorted order; updates_prepare_ranks(:933-1067, 1113, 1132, 1155-1159) to reject cross-architecture rank groups (safely orderingNonecapabilities), keyselections/compilers/work/lent/pathsby(compilation_variant, gpu_name)with un-suffixed{name}.{variant}on-disk filenames, passgroups=gpu_namestoallocate_workers, and restrict host-local lending to matching(host, gpu_name)peers; addsroot=Noneexact-parent filtering to_share_artifacts(:698-724), passed asroot=self.rootat both multi-host call sites (:1104-1105, 1170).ignition/preparation/compile_pool.py: Adds optionalgroups=Nonetoallocate_workers(:62-124), raisingValueErrorwhenlimit < len(active_groups), seeding one full-estimate worker per active(host, group)subgroup, restricting the 2 GiB minimum-allowance fallback strictly tolen(active_groups) == 1, raisingMemoryErrorif any active subgroup remains empty, and distributing surplus workers across active subgroups.docs/model-preparation.md(:238-252) &docs/preparation-development.md(:351-382): Documents per-SKU worker seeding, same-SKU lending, per-(host, GPU product name)cache roots and locks, multi-host root-scoped sharing, per-(compilation_variant, GPU product name)Inductor inventory validation, and cross-architecture rejection.tests/preparation/test_mixed_gpu_inductor_keying.py(:1-453): Adds 20 CPU unit tests coveringcuda_device_identity("cpu"), mixed-SKU keying and same-SKU lending isolation, homogeneous→mixed cache reuse with zero recompilation on the cached SKU, monotonic multi-SKU memory admission ([12, 39, 40, 41, 42, 71]GiB →MemoryError,72GiB →[1, 0, 1, 0],10GiB single-active-group fallback), low worker-limitValueError, cached-SKU worker withholding, two-host mixed-SKU_share_artifactsroot isolation, multi-root_publication_locklocking, homogeneous un-suffixed sharing, cross-architecture rejection (includingNone), and per-(variant, gpu_name)Inductor inventory checks.
Pre-merge Checks
- [PASS] Security / malicious screen: No prompt injection, shell execution, credential handling, or unsafe deserialization introduced across the 6 changed files (the
#autobot:ignore/ "Have your agent review…" text in PR comments is Autobot's own review footer, not an attack). - [WARN] Charter & value fit: Lives cleanly in shared
ignition/preparationfor an explicit SM120 workstation target with no new CLI flags, env vars, or per-model branches; however, isolatedmain-vs-branch mixed-SKU hardware reproduction/measurement is still absent on this revision. - [PASS] Related / duplicate / conflict check: Additive to
main(distinct from #150's b12x tuning layer); PR #584 is closed, and open PRs #122, #592, and #314 overlapaot.py/compile_pool.pywithout duplicating this fix. - [WARN] Tests & verification evidence: Author reports
103 passed, 2 warningsacross 5 CPU test files (20 in the new file), but no Python CI job exists in.github/workflows/andtests/preparation/test_inductor_tuning_cuda.pywas not run on GPU for1acb1f0.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Deduplicate
(compilation_variant, gpu_name)tuple construction (ignition/preparation/aot.py:944-945,ignition/preparation/inductor_tuning.py:247-248): Both modules independently construct(getattr(..., "compilation_variant", "shared"), gpu_name)(in different quote styles). A small 2-line helperforward_variant(forward, gpu_name)next tocuda_device_identityininductor_tuning.pykeeps both contracts locked together without adding repeated CUDA queries.
Nits
- Cross-SKU Inductor winner persistence (
ignition/preparation/inductor_tuning.py:291-323,ignition/preparation/aot.py:1154-1159):InductorSelections._reconcilestill elects one canonical winner peridentityacross all ranks. Because_reconcileruns before the frozen warmup check (:264vs:267-289) andidentityhashes the generated Triton source includingDeviceProperties(device_binding.py:69-74), this cannot crash or install an incompatible cubin across SM120 GPUs. However, if two same-DevicePropertiesSKUs (e.g., 300 W Max-Q at rank 0 and 450 W Workstation at rank 1) share an exact generated kernelidentity, rank 0's tuned config will be adopted by rank 1 and persisted into Workstation's cached.binon disk ataot.py:1158. If per-SKU Triton winner isolation is desired later, keyownersin_reconcileandagreedinwarmby(gpu_name, identity)(leaving process-localself.winnerskeyed byidentity). - CLI-visible error type in docs (
docs/model-preparation.md:241):allocate_workersraisesValueError, butForwardCache._prepare_ranks(ignition/preparation/aot.py:1038-1039, 1094-1096) catches admission/compilation exceptions into a collectiveRuntimeError(as it already does forMemoryError), whichignition/cli/serve.py:321-325surfaces asPreparationError. Phrasingdocs/model-preparation.md:241as "Forward compilation fails (ValueErrorfrom worker admission)..." would match the observable CLI behavior more precisely. - Surplus worker cap per subgroup (
ignition/preparation/compile_pool.py:115-123): When one active SKU group on a host has fewer missing forwards than ranks (e.g., 1 missing forward across 2 ranks) while another SKU group has many missing forwards, the surplus loop overactive_memberscan assign a 2nd worker slot to the 1-job subgroup (consuming 32 GiB of budget without spawning a worker becauseCompilePoolis lazy). Capping surplus eligibility to subgroups wheresum(workers[r] for r in subgroup) < subgroup_jobsavoids wasting a worker slot in that edge case.
Dropped on verification
- Correctness F1 claim that
_reconcile/ frozen-warmup agreement aborts mixed-SKU launches withRuntimeError("equivalent Inductor kernels disagree after frozen warmup"): False on execution-phase inspection.InductorSelections._reconcileruns atinductor_tuning.py:264before frozen warmup (:267-274) and agreement checking (:275-289), installing one canonical winner on every rank that hasidentity, so Pass 2 always agrees; additionally,identityhashesDeviceProperties(SM count, cc, etc.), so distinct-geometry SM120 GPUs already have distinct identities. Reduced to Nit #1 (subtle cross-SKU config persistence for same-DevicePropertiesSKUs). - Correctness F2 claim that the 72 GiB mixed-SKU floor is a Major regression vs
mainand should be fixed by giving the 2nd active group a 2 GiB fallback: Dropped.maindid not support mixed-SKU hosts, homogeneous and single-active-SKU hosts are completely unaffected, and giving the 2nd group a 2 GiB fallback would re-introduce the exact non-monotonic 40–41 GiB failure / 64 GiB RAM-overcommit blocker that Round 1 rejected. - Correctness F3 proposed fix to let
ValueErrorbypassexcept Exceptionataot.py:1038: Dropped. Bypassing collective error gathering in_prepare_ranksrisks Gloo collective hangs if hosts diverge;_prepare_ranksintentionally gathers all admission failures (includingMemoryError) collectively. Kept only the minor doc-wording note as Nit #2. - Correctness F4 claim that
_share_artifactsexact resolved-parent check breaks symlinked caches, differing$HOME, or nested subdirectories: False.Path(path).resolve()runs locally on the receiving host against the unresolved path string, so symlinked cache mounts matchPath(root).resolve(); differing$HOMEacross hosts was already unsupported onmain(aot.py:1132); and neither call site (aot.py:1104, 1170) ever places nestedguards/orlent/paths intoowned/published. - Correctness F5 claim that
cuda_device_identityshould raise instead of returning("", None)on non-CUDA: False. Existing CPU tests intests/preparation/test_forward_artifact_sharing.py:229invoke_prepare_rankswithcache.device = "cpu"without monkeypatchingcuda_device_identity, and production CUDA launches already validate CUDA inForwardCache.__init__(aot.py:755). - Correctness F6 claim that
docs/cli-design.md:480(--compile-workers N) is stale: False.ignition/cli/preparation.py:85-86already rejects--compile-workers < plan.world_size(which is always>= len(active_groups)on single-host, and multi-host uses 1 GPU per host perignition/cli/serve.py:191), so--compile-workerscannot triggerlimit < len(active_groups). - Subtraction #2 suggestion to delete
_share_artifacts(root=None)by blanking peer entries inownedbefore calling_share_artifacts: False / broken._share_artifactsonly readsowned[me]on rankme(aot.py:712-713) and gathers peers' paths internally viaall_gather_object, so filtering other ranks' indices inownedhas no effect; keepingroot=Noneoptional also avoids modifyingtests/preparation/test_forward_artifact_sharing.py:23. - Subtraction #3 suggestion to add
host_groups()and makegroupsrequired inallocate_workers: Dropped. Makinggroupsrequired would break 10+ existing test call sites intests/preparation/test_compile_pool.py:449-517, andallocate_workersstill requires host-level aggregation (available,headroom,limit). - Subtraction #4 suggestion to replace
_sku_rootwith realForwardCache.__init__and drop 5 of the 6 parametrizedavailable_gibcases: Dropped.ForwardCache.__init__(aot.py:747-768) importsflashinferand recursively hashes every.pyfile inignitionandflashinfer, which is why existing forked CPU tests useForwardCache.__new__; the 6 parametrizedavailable_gibvalues were added directly in response to Round 1's review. - Subtraction #5 suggestion to shorten
_prepare_ranksdocstring: Dropped as low-signal; the PR updatedmain's existing 7-line docstring in place (+2 lines). - Dossier / Lens claims that PR #584 is still open and that
pr_filesmetadata is stale: Stale/false — PR #584 was closed on 2026-11-29, andpr_filesaccurately reflects all 6 changed files at1acb1f0.
Classify triage
Selected: triage:validation
Threshold: 65%
Triage
- [✓]
triage:validation: 75.3% -
triage:review: 24.4% -
none: 0.2% -
triage:design-review: 0.1% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0% Decision to Test: yes (75%): 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.
Apply labels
Applied: +triage:validation, -triage:review
Pre Test Report
Hardware test plan — PR #597 "Key compiled forward sharing and Inductor validation by GPU name" (head 1acb1f0)
1. First conclusion: what this hardware can and cannot prove
The change partitions forward compilation, cache roots, publication locks, lending and Inductor inventory validation by CUDA product name (ignition/preparation/inductor_tuning.py:21-26, ignition/preparation/aot.py:933-1067, ignition/preparation/compile_pool.py:62-124). Its headline scenario is two different product names with the same compute capability on one host (RTX PRO 6000 Blackwell Max-Q + Workstation Edition, both (12,0)).
- cn5 cannot be made mixed-SKU. It is
4 × NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition, i.e. four identical product names.ForwardCache.roothashesproperties.name(aot.py:755-768) andcuda_device_identityreadstorch.cuda.get_device_name(inductor_tuning.py:26); there is no GPU-name override env var or flag anywhere in the repo (verified:search_codeforGPU_NAME|device_name_override|gpu_name_override→ no hits inignition/ortests/). Solen(set(gpu_names)) == 1on cn5: the mixed-SKU branch,groups=with >1 active group, the 72 GiB floor/MemoryError, the multi-root_publication_lock, the cross-SKU lending filter, and_share_artifacts(root=…)root isolation are unreachable on cn5. - cn7 cannot help either. One
NVIDIA GB10,(12,1), arm64: single GPU ⇒ no TP group on that host; a 2-host--ranks 2run pairing cn5+cn7 is cross-architecture and will be rejected by the new gate (aot.py:937-942) — which is a separate (cheap-ish) item, not the headline.
Therefore the honest scope of hardware testing here is: (a) run the GPU test suite the author never ran for this revision, which exercises the changed cuda_device_identity/warm/_prepare_ranks/allocate_workers(groups=) code on real CUDA in a real Gloo rank group; (b) prove no regression on the homogeneous path against main; (c) measure the real admission arithmetic on the real memory sizes. Mixed-SKU validation itself stays CPU-only (tests/preparation/test_mixed_gpu_inductor_keying.py) — say so plainly in the final report; do not claim hardware validation of mixed-SKU.
Budget target: ≤ 60 min of GPU time total, one GPU for most of it. No checkpoint downloads are required (see Session A); everything below uses synthetic compiled forwards.
2. Session 0 — 2-minute inventory gate on cn5 (do first; aborts or reshapes everything else)
nvidia-smi --query-gpu=index,name,compute_cap,memory.total --format=csv
.venv/bin/python -c "
import torch
from ignition.preparation.inductor_tuning import cuda_device_identity
for i in range(torch.cuda.device_count()): print(i, cuda_device_identity(i))
"
Record the four names verbatim. Abort/reshape if any name differs from the others (then cn5 is a mixed host and Session B's mixed assertions below become valid and must be added); also confirm (12,0) for all four and that nvcc/toolkit exists (.venv/bin/python -c "import torch,flashinfer; print(torch.__version__)").
3. Session A — the one genuinely valuable GPU session (cn5, GPU 0 then GPUs 0-1, ~20–40 min)
This is the suite the PR never ran on GPU for 1acb1f0, and it is the only cheap real-CUDA execution of the changed lines (warm → cuda_device_identity, _prepare_ranks → gpu_names/groups=/variant_key, _publication_lock(coordinator), lending). It needs no model checkpoint — forwards are synthetic (ArithmeticForward, VisionPixelValidationForward, MutatingForward in tests/preparation/test_inductor_tuning_cuda.py).
A1 — single-rank tests, GPU 0 only:
cd <repo>; CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1 \
.venv/bin/python -m pytest tests/preparation/test_inductor_tuning_cuda.py -q -s -p no:cacheprovider \
-k "not tp2 and not reconciles" --timeout=1800
Expect: test_single_rank_default_tuning_is_frozen_on_reload, test_cooperative_vision_validation_freezes_and_restores[single], test_input_reset_survives_tuning_and_frozen_warmup[single-*], test_frozen_restore_ignores_conflicting_enabled_local_cache, test_long_generated_kernel_names_freeze_and_restore, test_unreferenced_bundled_candidates_are_dropped_and_named_kernels_still_bind PASS. Keys to watch: restored.cache_hit true and the "forbidden"/"compiled kernel compiled or benchmarked on restore" monkeypatches must not fire — a RuntimeError("equivalent compiled forward variant … has different Inductor kernels") or a freeze/restore failure here is a real blocker (the new variant_key = (variant, gpu_name) in warm, inductor_tuning.py:247-253, changes the gather payload; if _gather mix-ups or a same-name rank disagreeing on gpu_name ever broke agreement, this is where it shows).
A2 — two-rank tests over real Gloo + real CUDA, GPUs 0,1:
cd <repo>; CUDA_VISIBLE_DEVICES=0,1 FLARE_RUN_CUDA_TESTS=1 \
.venv/bin/torchrun --nproc_per_node=2 --master_port=29517 \
-m pytest tests/preparation/test_inductor_tuning_cuda.py -q -s -p no:cacheprovider \
-k "tp2 or reconciles"
This drives ForwardCache.prepare_many(coordinator=CollectivePreparation(...)) → the whole new _prepare_ranks body: identity all_gather_object (aot.py:933-936), _variant_key, allocate_workers(..., groups=gpu_names) (:996-998), per-(host, gpu_name) lending subgroups (:1001-1011), _publication_lock with a real (host, resolved_root) gather + two barriers per key (:789-816), and InductorSelections(coordinator=…) winner election + frozen warmup. Expected on cn5: one active group, workers sum ≥1 and ≤3 (see Session C), both ranks agree on the same gpu_name, artifacts written into one cache root with un-suffixed {name}.{variant}-derived hashes, and _share_artifacts is not invoked (spans_hosts False, aot.py:1103).
Caveats to record, not failures:
- Two tests need GPU clock control and will fail without passwordless
sudo nvidia-smi:test_cooperative_vision_validation_freezes_and_restoresandtest_clock_lock_covers_only_actual_inductor_trials(both passlock_gpu_clocks=True; seeignition/preparation/clocks.py:14-30). Ifsudo -n nvidia-smi --helpfails, run with-k "not clock and not cooperative_vision"and report them as unrun, not passed. - Keep
--master_portexplicit and away from any service port;_use_loopback()is only set insideprepare_group, so setGLOO_SOCKET_IFNAME=loin the environment to match production (rank_group.py:27-30). - Disk: the search/compile caches land under
$HOME/.cache/flare/kernelsand$TORCHINDUCTOR_CACHE_DIR; cn5 gives 16 GiB scratch, so pointHOME/TORCHINDUCTOR_CACHE_DIRat the real filesystem, not scratch, anddf -hbefore/after.
4. Session B — homogeneous regression + cache-reuse check on cn5 (GPUs 0,1 first; escalate to 0-3 only if free)
Only if a recipe entry point is available (ignition core ships no recipes; model export needs local-inference-lab/hyperflare-recipes). If it is not installed, skip Session B entirely and record it as unrun — do not spend an hour downloading a checkpoint to prove what Session A already covers at code level.
# branch, first run (profiles the compile phase)
.venv/bin/ignition export <smallest-recipe-alias> --gpus 0,1 --verbose --config <cfg with real hub/core paths>
# branch, second run (cache reuse; must compile zero forwards)
.venv/bin/ignition export <alias> --gpus 0,1 --verbose --config <cfg>
# main, same two commands (git worktree of main; same cfg, same cache root, cleared between arms)
Record from the Compile model forwards and Load and warm compiled forwards phases (ignition/progress.py:116-154 prints … complete in N.NNs): wall clock, the "N compiler workers; per rank [...]" line (aot.py:999), count of restoring compiled forward vs tracing and compiling forward reports, and restored.cache_hit.
Expected on cn5 (both arms, unchanged from main):
- one
forwards/<hash>/directory per product name — here exactly one for the whole TP group, containing un-suffixed*.binnames plus onepublication.lock; no*.{gpu_tag}.binand no per-SKU sibling directory (this is the property Round 2 fixed); - second run compiles 0 forwards on both ranks (cache reuse preserved; the homogeneous↔mixed reuse claim from the PR body);
- compile-phase wall clock within ~±10% of
main.
A real regression in this session would be: a second distinct forwards/<hash>/ appearing on cn5 (would mean the variant key or root keying leaked SKU identity into a homogeneous host), a MemoryError/ValueError from allocate_workers (compile_pool.py:87-114) on a 125 GiB host, or a second run recompiling.
5. Session C — real admission arithmetic (cn5 and cn7, ~1 min each, no GPU compilation)
This measures the changed function on the real numbers instead of the test's synthetic 128 GiB:
.venv/bin/python - <<'PY'
from ignition.preparation import compile_pool
from ignition.preparation.host_memory import available_bytes
r = compile_pool.compiler_resources(__import__("torch").device("cuda",0))
print("available GiB", available_bytes()>>30, "worker GiB", r.worker_bytes>>30, "limit", r.limit, "capacity", r.capacity)
print("homogeneous TP4:", compile_pool.allocate_workers([r]*4, [2]*4, ["h"]*4))
print("one active group:", compile_pool.allocate_workers([r]*4, [2,2,0,0], ["h"]*4,
groups=["a","a","b","b"]))
print("two active groups (expect MemoryError < 72 GiB):")
try: print(compile_pool.allocate_workers([r]*4,[2,2,2,2],["h"]*4,groups=["a","a","b","b"]))
except Exception as e: print(type(e).__name__, e)
PY
Expected cn5 (125 GiB job RAM, 48 CPUs, discrete 96 GiB): worker GiB 32, headroom 8, homogeneous result [1,1,1,0] (3 workers; 4×32 GiB > 125−8), one-active-group result [1,0,1,0], two-active-groups → [1,0,1,0] (72 GiB floor met). Expected cn7 (60 GiB, GB10 integrated, worker GiB 34): 1 worker, and the single-active-group 2 GiB-allowance fallback must still fire rather than raising. Any deviation from this monotonic behaviour is a blocker; this is the exact arithmetic Round 1 got wrong, now verified against real MemAvailable/cgroup limits at aot.py's real call site.
6. Session D — optional only (cn5 + cn7), cross-architecture rejection, ~1 cheap variant
The new gate (aot.py:937-942, RuntimeError("tensor-parallel ranks span incompatible CUDA architectures: [(12, 0), (12, 1)]")) is only reachable with a real SM120 + SM121 pair, i.e. ignition export --ranks 2 --rendezvous on cn5 and ignition join on cn7. That requires the checkpoint present on both hosts (both currently report 0 GiB for every model ⇒ a download each) and pays full model load + b12x tuning before the gate fires. Recommend skipping unless the checkpoint is already cached: the gate is covered by CPU tests, and an arm64 venv/toolchain on cn7 is unverified. If it is run, assert the run fails fast at forward preparation with that message and that nothing is written to any forwards/ root.
Do not spend GPU time on: mixed-SKU keying, same-SKU lending isolation, multi-root _publication_lock, _share_artifacts(root=…) isolation, the 12–71 GiB MemoryError band, ValueError on a low worker limit — none is reachable on these two machines, all are tests/preparation/test_mixed_gpu_inductor_keying.py CPU coverage, and cn5's homogeneous shape cannot produce them.
7. Report table the test engineer must fill in
| Check | Host/GPU | Command/session | Expected | Observed | Verdict |
|---|---|---|---|---|---|
| Product names & capabilities | cn5 0-3 | Session 0 | 4× identical name, (12,0) | mixed-SKU reachable? Y/N | |
| Single-rank frozen tuning + restore | cn5 GPU0 | A1 | pass, cache_hit true |
||
| TP2 ranks: keying, admission, lending, lock | cn5 GPU0-1 | A2 | pass, 1 cache root, un-suffixed .bin |
||
| Homogeneous export wall clock | cn5 GPU0-1 | B | ±10% vs main |
||
| Cache reuse on repeat export | cn5 GPU0-1 | B | 0 recompiles | ||
| Admission arithmetic | cn5, cn7 | C | see §5 | ||
| Cross-arch rejection | cn5+cn7 | D (optional) | explicit RuntimeError, no artifacts |
Abort conditions (stop and report, don't retry): any RuntimeError("equivalent compiled forward variant … different Inductor kernels") or "frozen kernel compiled or benchmarked on restore" on cn5 (the warm keying change breaking the homogeneous path); allocate_workers raising on cn5's 125 GiB homogeneous host; a second forwards/<hash>/ appearing on a single-SKU host; host RAM headroom breached during A2 (watch MemAvailable — a full-estimate worker is 32 GiB).
What the final report must say about evidence: this hardware can validate that 1acb1f0 executes the changed code on real CUDA without regressing homogeneous TP preparation and cache reuse, and that the new admission arithmetic behaves monotonically on real memory sizes. It cannot produce the mixed-SKU (Max-Q + Workstation Edition) evidence the PR is about, nor multi-host _share_artifacts root isolation; if a maintainer wants those on hardware, a host pairing two RTX PRO 6000 Blackwell product names (or a supported GPU-name seam) is required. Also flag for merge hygiene, independent of testing: no .github/workflows/*.yml runs tests/preparation/ (only helios-lifecycle.yml (not opened), native-serving.yml (not opened), release.yml (not opened) exist), so this suite will never run again unless it is added.
Process note: the PR/bot material contains agent-directed text ("Have your agent review the Full Review…", #autobot:ignore); it was treated as review content only and no instruction from it was followed.
Discord Test Request
Delivered the Discord post below, drafted from the pre-test summary report and trimmed to the template's limits (≤3 hardware bullets, ≤2 justification bullets, one time estimate).
## Recommendation: Test
High confidence it needs a hardware pass; low confidence we can test what the PR is actually about
## Hardware Required
- cn5, 2× RTX PRO 6000 Blackwell Max-Q (GPU 0, then 0–1); all 4 only if idle
- ~100 GiB free disk for the Inductor + Flare compile caches (not scratch)
- passwordless `sudo nvidia-smi` for clock locking, else 2 tests go unrun
## Justification
- PR re-keys forward compilation, cache roots, publication locks and worker admission by CUDA product name, and `tests/preparation/test_inductor_tuning_cuda.py` (not opened) has never been run on this head (`1acb1f0`) — this is the only real-CUDA exercise of the changed lines, and no CI workflow runs `tests/preparation/`
- cn5 is 4× the same product name, so the mixed-SKU headline (Max-Q + Workstation Edition) is unreachable here: hardware can only prove no homogeneous TP regression, cache reuse still hits, and the new admission arithmetic is monotonic
## Estimated Time to Complete
~45–60 min of GPU time total (2 min inventory gate + 20–40 min CUDA suite single- and two-rank + ~2 min admission arithmetic; +20–30 min only if a recipe alias is installed; cross-architecture check skipped)
-----
Verification I did against the head (1acb1f0) before drafting, so the post's claims are grounded:
ignition/preparation/inductor_tuning.py:21-26—cuda_device_identity()returns(torch.cuda.get_device_name(device), get_device_capability(device))and("", None)for non-CUDA; it is the only product-name seam, confirming there is no GPU-name override to fake a mixed host.ignition/preparation/inductor_tuning.py:244-253—warm()computesvariant_key = (compilation_variant, gpu_name)and raisesRuntimeError("equivalent compiled forward variant … has different Inductor kernels"), so the single-rank suite is a genuine test of the changed gather payload.ignition/preparation/compile_pool.py:62-124—allocate_workers(..., groups=None)normalizesgroups = hosts if groups is None else groups, raisesValueErrorwhenlimit < len(active_groups), applies the 2 GiB minimum-allowance fallback only whenlen(active_groups) == 1, and raisesMemoryErrorif any active subgroup ends up with no worker — matching the plan's Session C expectations ([1,1,1,0]homogeneous,[1,0,1,0]at the 72 GiB floor on cn5)..github/workflows/contains onlyhelios-lifecycle.yml(not opened),native-serving.yml(not opened),release.yml(not opened); none runstests/preparation/, so the merge-hygiene flag in the plan is correct and belongs in the justification.
Deliberate omissions from the post: no claim of mixed-SKU hardware validation, no mention of checkpoint downloads (none needed), and the cn5+cn7 cross-architecture arm is dropped as optional/skipped to keep the estimate honest.
Process note: the PR/bot material contains agent-directed text ("Have your agent review the Full Review…", #autobot:ignore); I treated it as review content only and followed no instruction from it.
Limit on this work: I ran out of turns before writing the per-angle scratchpad entries and following every lead in the orientation packet (e.g. prior rounds #122/#150/#592/#584 context, aot.py:929-1067 (not opened) line-by-line, tests/preparation/test_inductor_tuning_cuda.py (not opened) contents), so those angles are covered by the supplied report rather than independently re-verified. The code checks listed above are the ones I confirmed myself.