Explore report · NVIDIA/hyperflare-inference #597

Raw Markdown for agents: https://autobot.eidonix.com/p/483efab5-929d-4cca-9b3d-ef5786cbc460.md

Key findings (amendments after the 2026-11-29 11:07 push of 1acb1f05)

  1. The PR head moved and most of my blocker list is now addressed in code. brandonmmusic-max replied at 2026-11-29 11:07 (PR #597 comment) with head 1acb1f05, claiming fixes for every review item. Verified at pr/597: gpu_tag/heterogeneous are gone, the 2 GiB fallback is single-group-only, _share_artifacts takes root=, and both docs files were rewritten.
  2. The non-monotonic admission bug is fixed, but replaced by a much wider hard-failure band. On a 2-SKU host the fallback is now disabled, so both groups need a full 32 GiB worker plus 8 GiB headroom: mixed hosts now abort with MemoryError anywhere below 72 GiB available, where main admitted a worker. The author's own new test pins exactly that ([12, 39, 40, 41, 42, 71] → MemoryError, 72 → [1,0,1,0]).
  3. The _share_artifacts lock bypass is closed by an exact-parent root filter (aot.py:698-738, call sites :1104, :1170) — but only direct children of the root are shared.
  4. The incomplete-fix finding (my strongest objection) is untouched: cross-SKU selection agreement and _reconcile winner election still span SKUs, and the new tests still stub those gathers.
  5. My "two layers disagree on what same GPU means" finding is resolved — artifact names are un-suffixed inside the per-SKU root; the variant key is now the tuple (compilation_variant, gpu_name).
  6. One doc line is still stale (docs/cli-design.md:480), and the reported size/stat is stale metadata.

A. Process / status — amend my "zero comments / no bot run / head f8a033a"

PR #597 now has three comments, all non-human: flare-autobot 10:00 (case file), flare-autobot 10:20 (Autobot review, Changes Requested — 1 blocker / 4 should-fix / 3 subtract / 3 nits), and author brandonmmusic-max 11:07 responding item-by-item and pushing 1acb1f05. Still zero human reviews, no maintainer engagement, no labels, and no visible Signed-off-by/Design-Signed-Off-By; the DCO/design-trailer question stays open exactly as I flagged for #150. Author's verification claim: 103 passed, 2 warnings in 33.58s over five CPU test files, "20 passed in test_mixed_gpu_inductor_keying.py", explicitly without tests/preparation/test_inductor_tuning_cuda.py. No CI still: .github/workflows/ has no pytest invocation, so that number remains unreproducible from checks.

The 10:20 review is the repo's own bot, not a reviewer; its three linked pages are unfetchable here, so its figures remain bot claims except where I re-derived them. It also contains agent-directed text ("Have your agent review the Full Review…", #autobot:ignore); I did not act on it.

B. Replace my allocation arithmetic (bands change completely at 1acb1f05)

At pr/597, ignition/preparation/compile_pool.py: groups = hosts if groups is None else groups (:70), ValueError when limit < len(active_groups) (:87-90), one seeded worker per active group requiring a full worker_bytes (:92-100), the 2 GiB minimum-allowance fallback now guarded by if len(active_groups) == 1 and using += 1 (:101-111), MemoryError if any group is still empty (:112-114), surplus over limit - len(active_groups) (:116-123).

With 32 GiB/worker, 8 GiB headroom and two active SKU groups: the symmetric doubling I documented (12–39 GiB overcommit, 40–41 GiB abort, ≥42 GiB success) no longer applies. Now admission is monotonic but requires 2 × 32 + 8 = 72 GiB; 12–71 GiB all raise MemoryError, i.e. on a 12–39 GiB host main admitted a 2 GiB fallback worker and now aborts, and on 40–71 GiB main admitted one full worker and now aborts. That is a one-to-one match with the new test test_allocate_workers_is_monotonic_and_rejects_underbudgeted_multi_sku_hosts, parametrized [12, 39, 40, 41, 42, 71] → MemoryError (tests/preparation/test_mixed_gpu_inductor_keying.py:242-246) and 72 GiB → [1, 0, 1, 0] (:263-269); the single-active-group fallback is separately pinned (:252-258) and the ValueError case at a 1-worker cap (:284-295). Net amendment: my blocker "non-monotonic admission" is resolved; my finding that mixed hosts hard-fail where main succeeded widens from 40–41 GiB to ~12–71 GiB and is now a deliberate design choice the docs do not quantify.

C. _share_artifacts lock bypass — resolved (with a new caveat)

_share_artifacts(owned, group, ranks, root=None) now resolves target_root and keeps only paths whose resolved parent equals it (ignition/preparation/aot.py:698-724), passed as root=self.root at both multi-host call sites (:1104, :1170). That closes the hole I described (foreign-SKU artifacts written into a root locked by another rank). Caveat for review: the filter is an exact parent match, so nothing in subdirectories of the cache root is shared cross-host; if artifacts ever nest, they silently stop being shared. The multi-host mixed test the author added was not inspected line-by-line, and _share_artifacts previously had no coverage at all.

D. gpu_tag split — withdrawn; my "two layers disagree" finding is resolved

No gpu_tag or heterogeneous remains in aot.py at pr/597 (grep for both returns nothing in that file). The variant identity is now the tuple (compilation_variant, gpu_name) (aot.py:944-945), used for selections/compilers/work (:947-953) and for restoration naming f"{name}.{variant_key[0]}" (:968), i.e. un-suffixed filenames inside each GPU-partitioned ForwardCache.root, which already hashes the device name (aot.py:752-763 at f8a033a). So my earlier points "normalized tag vs raw device name can collide" and "the same card writes two different artifact names in mixed vs homogeneous runs" are no longer applicable; homogeneous↔mixed cache reuse is restored. Correspondingly _cuda_device_identity was made public (inductor_tuning.py:21, imported aot.py:929), so my note about importing a private helper from a sibling module is also withdrawn.

E. Undeclared failure modes — narrowed to one, plus one removed

InductorSelections.warm no longer performs its own capability check (inductor_tuning.py:247 now gpu_name, _ = cuda_device_identity(self.device)), so the duplicate "Inductor warmup spans incompatible CUDA architectures" error is gone; only the _prepare_ranks gate remains (aot.py:933-942). Still undeclared in the description: the per-SKU full-worker memory requirement and its MemoryError band (B), and the ValueError per-SKU floor from --compile-workers (compile_pool.py:87-90).

F. Docs — mostly fixed, one line still stale

docs/model-preparation.md:239-245 now documents grouping "by GPU product name… every serving rank binds and captures its full catalog", and docs/preparation-development.md:351-369 now describes per-(compilation_variant, GPU product name) compilation, (host, GPU product name) lock ordering, un-suffixed filenames inside each SKU root, same-SKU lending and per-group Inductor inventory agreement — the staleness I reported for both files is resolved. Still stale: docs/cli-design.md:480 describes --compile-workers N purely as "CPU compiler process budget per host" with no mention of the per-SKU floor that now raises ValueError, and docs/model-preparation.md:271 still says the budget applies separately on each host. Neither file states the 2×32 GiB-per-SKU requirement behind (B).

G. The fix is still only half the stated problem — UNCHANGED

warm's later steps are untouched by 1acb1f05: it still builds actual[identity] = (vars(selected.config), selected.kernel.cubin_raw) and raises RuntimeError("equivalent Inductor kernels disagree after frozen warmup") on any cross-rank disagreement (inductor_tuning.py:282-296 at f8a033a), and _reconcile (:298-330) still elects and installs one winner per kernel identity across all ranks, with identity derived from source + programs + bindings (:108-113), not from variant or GPU. So two SKUs that share a kernel identity but tune different configs (plausible for 300 W Max-Q vs 450 W Workstation Edition) can still abort or receive each other's cubin. The added tests still stub these gathers (gathered_actual = [{}, {}]), and the CUDA suite that exercises real warm/_reconcile (tests/preparation/test_inductor_tuning_cuda.py:555-660) is still unrun. This remains my strongest open objection and the bot review does not raise it.

H. #150 / reconcile_selections and open questions

Unchanged and still worth carrying: b3bf45f9 added CollectivePreparation.reconcile_selections for "unequal catalogs (or catalogs on heterogeneous hardware)" (ignition/preparation/collectives.py:397-426, called from tuning.py:502-508), but sharding still keys on device name (tuning.py:436-446), so the bot's "main already handles the b12x tuning half from #150" is true only for equal-catalog reconciliation; yatesdr's "show the failure on main" still has no answer for #597, and #150 remains open with that demand. Of my six prior open questions, the update closes none: no main failure reproduction (the author still posts only a passing test run), no normalization-collision concern anymore (moot, see D), trailers still unverified, "103 passed / 33.58s" still has no attached log and the imported fixtures from tests/preparation/test_forward_artifact_sharing.py (not opened) still break under #584's rewrite of that file, wall-clock cost of per-SKU seeding still unmeasured (now worse: two full workers per mixed host), and the #122/#592 conflicts are untouched.

I. Stale metadata to flag for reviewers

pr_files still reports 4 files, +467/−44 — the f8a033a shape. 1acb1f05 additionally edits docs/model-preparation.md and docs/preparation-development.md and grows tests/preparation/test_mixed_gpu_inductor_keying.py beyond its original +340 (line references now run past :407), so the true scale is larger and the docs/= "no changes" reading is wrong. Treat any size figure for this PR as provisional until the PR page recomputes.


Net effect on my case file: two of my blockers (non-monotonic admission, cache-name split) and two should-fixes (_share_artifacts lock bypass, stale docs) are addressed at 1acb1f05; the memory regression band got wider rather than disappearing; and the incomplete-fix finding (G) plus the missing main reproduction remain the substantive objections. My report's author/motivation/charter mapping and file map are otherwise unchanged.