Explore report · NVIDIA/hyperflare-inference #597

Raw Markdown for agents: https://autobot.eidonix.com/p/cf4795c8-d861-42a0-872a-09aa2744c3e5.md

Case file — PR #597 "Key compiled forward sharing and Inductor validation by GPU name"

Author: brandonmmusic-max (CONTRIBUTOR; Discord: Brandonmusic). Branch mixed-gpu-inductor-keying → main, head f8a033a, opened 2026-11-29 09:56, open, ready for review, 0 reviews, 0 comments, no labels, no CI checks. Size: 4 files, +467/−44.

Key findings

  1. The cache directory was never shared across SKUs. ForwardCache.root has always hashed the CUDA product name — ignition/preparation/aot.py:750-763 builds the key from properties.name, properties.major, properties.minor, properties.multi_processor_count. On a mixed host, ranks already wrote to different roots. What was shared was the host-wide lending/assignment loop (aot.py:1000-1010 on main) and one host-wide publication.lock. The description's "shared compiled forward artifacts" is loose; the actual new artifact keying is a file-name suffix ({compilation_variant}.{gpu_tag}, aot.py:940-944).
  2. Two layers now disagree about what "same GPU" means. Artifact names use a normalized tag (aot.py:940: non-alnum → _, stripped, lowercased); Inductor inventory grouping uses the raw torch.cuda.get_device_name (inductor_tuning.py:21-26, 247-249). Two names that normalize identically would share artifact file names but be separate Inductor groups. No test covers a normalization collision (tests only assert substrings "max_q" / "blackwell_workstation_edition", tests/preparation/test_mixed_gpu_inductor_keying.py:145-146).
  3. Three new failure modes, only partially declared. (a) ValueError when a host's worker limit is below the number of active GPU groups (compile_pool.py:89-92) — limit is min(jobs, min(rank limit)) where rank limit comes from --compile-workers/compile_threads (compile_pool.py:42-44), so a mixed host with --compile-workers 1 that used to run (slowly) now errors; (b) MemoryError condition moved from "no worker on host" to "any active group has no worker" (compile_pool.py:116-118), i.e. the 32 GiB estimate must cover one worker per SKU; (c) two new cross-architecture RuntimeErrors (aot.py:934-938, inductor_tuning.py:250-255).
  4. Cache naming is decided by the group, not the card. heterogeneous = len(set(gpu_names)) > 1 (aot.py:939) gates the suffix, so the same RTX PRO 6000 Workstation Edition card writes {name}.shared.bin in a homogeneous TP2 run and {name}.shared.nvidia_rtx_pro_6000_blackwell_workstation_edition.bin in a mixed TP4 run, in the same root. Mixed and homogeneous runs can never reuse each other's forward cache; each mixed host compiles and stores a full catalog per SKU (tests expect 8 artifacts vs 4, test_mixed_gpu_inductor_keying.py:143-146, 171, 262-263).
  5. Sibling PR #150 (same author, still open) is an alternative answer to the same host, not a stack. #150 "Treat Max-Q and Workstation Edition device names as one GPU when tuning" makes the two names share one tuning plan and a local aot.py GPU-name override; #597 instead gives each SKU its own artifacts and validation. #150's own Limitations section names "main's compiled-forward cache key (ignition/preparation/aot.py, which includes the device name)" as unresolved; #597 addresses that layer. #150 carries CHANGES_REQUESTED from yatesdr (2026-11-18) demanding "show the failure on main", and a flare-autobot "Review Stopped — already fixed another way" (2026-11-26). Nothing ties #597's merge to #150's state.
  6. The motivating abort has no linked reproduction. No issue or PR in the searchable window reports the Inductor-inventory mismatch or cross-SKU lending abort. The only documented mixed-SKU failure is #150's BindingMismatch: rank-local forward does not match compiled guards (layer 20 csf_inline_scales 2/2 split), which is a tuning-agreement failure, not what #597 fixes. #597 supplies no "failure on main" log — exactly what the reviewer rejected #150 for.
  7. No CI would ever run this. .github/workflows/ contains only helios-lifecycle.yml (not opened), native-serving.yml, release.yml; searching .github for pytest, tests/preparation or unittest returns nothing. The Python test suites are not wired into CI, so "no checks" is structural, not incidental.
  8. Docs describing the replaced behavior were not updated. docs/model-preparation.md:203-209 (shared race presupposes identical GPUs), :231-245 (worker budget per host, one worker per host under the 2 GiB allowance, lending to "other ranks on that host"), docs/preparation-development.md:351-371 ("Ranks on one host share its cache directory… select a variant key through compilation_variant"). None of the new per-group baseline, per-SKU lending, variant suffixing, or new errors is documented.

The change

Verified against the diff (f8a033a) and head files:

Undeclared in the description: the ValueError/MemoryError semantics shift; the extra per-key barriers; gpu_tag normalization and its collision potential; the group-wide (not per-card) cache-naming split; the fact that the Inductor key deliberately uses the raw variant while artifacts use the suffixed one; aot.py now imports a private helper from a sibling module (from .inductor_tuning import InductorSelections, _cuda_device_identity, aot.py:925).

Declared but worth checking: "restrict host-local compilation lending to matching (host, gpu_name) peers" is real (aot.py:1000-1010) and the same members list feeds _balance_compilations, whose MemoryError("no rank on this host has room for a forward compiler") (aot.py:681-682) now fires per SKU subgroup rather than per host.

No proto, manifest, core-format or artifact-format change; serving untouched; no new flag, setting or environment variable (charter forbids per-model flags).

The why

Recent activity

People

Community

Zero comments, zero reviews, zero reactions, no labels on #597. The repo's flare-autobot bot posts on PRs (#150, #122, #592) but had not posted on #597 at snapshot time, so its 90-minute-after-push auto-review had not fired. The description carries the required Discord line (AGENTS.md:142-153). Trailer evidence (Signed-off-by, Design-Signed-Off-By) is not visible in the material available — and #150 was rejected partly for exactly that (CONTRIBUTING.md, docs/design-review.md).

Project fit

Claims and evidence

Claim What backs it
"96 passed in 46.13s" across 5 test files No log or command attached; not reproducible here (no execution tool). Files exist on main; the five named suites are real. Unit-level only, all CPU/mocks.
Mixed-SKU TP4 export + flare run of DeepSeek-V4.1-Flash: 135 CUDA graphs/rank, 38,944 kernels, 72.8 GiB / 21,058,816 KV tokens, 62 s startup, prefill 37,671→43,134 tok/s, decode 377.4→1,185.8 tok/s C1–C8, 6/6 needle, 21/21 chat/tool, 5/5 edge, 1/1 OCR, 0 errors Description only. Explicitly "combined-stack end-to-end serving checks… not attributable solely to this PR". No baseline run on main, no isolated compile-time/worker-shape/cache-layout measurement. The named flags (--mla-compute-mode bf16, --expert-scale-compression native, --embedding-table-storage ram) are outside this diff.
Mixed-SKU TP4 + gb202 GLM-5.3 Flash revision: 49,868 kernels, 121 graphs/rank, 24/24 trials, 0 errors Same status.
Homogeneous TP2 + gb202-tp2: 256.9 tok/s C1, 1,428.9 C32, 10.38M KV tokens, 24/24 chat, 2/2 vision, 0 errors Same status; the equivalent regression evidence is cheaper in the unit test test_homogeneous_gpus_preserve_unsuffixed_forward_sharing (test_mixed_gpu_inductor_keying.py:252-263).
Cross-architecture rejection verified by CPU unit tests only Accurate and disclosed (:266-274, :326-340).
Rust tests not run because only Python changed Accurate — the diff is three Python modules plus one test file.
Implicit: "enables TP preparation on mixed-SKU same-architecture SM120 hosts" Depends on the tuning half, which is #150 (still open, CHANGES_REQUESTED); #597 itself does not make tuning agree across SKUs. The description never says so.

Unit-test coverage is real but narrow: the warm tests stub self._gather with a scripted reply list (test_mixed_gpu_inductor_keying.py:281-288), so they assert the ordering of gathered values, not real distributed behaviour on GPUs; the _prepare_ranks tests replace _load/_path/_allocation_sizes and the compile pool (:49-58), so nothing exercises real artifacts, real Triton inventories, or a real per-SKU root with real sizes.

Reach

Process

Open and self-described ready for review, one day old at snapshot, no draft status, no labels, no reviewers requested, no CI checks (and no Python CI exists to produce them — .github/workflows/ has only helios-lifecycle.yml (not opened), native-serving.yml, release.yml), no bot run, no DCO/design-acknowledgment trailer confirmed.

Open questions / not found

  1. Does the Inductor-inventory mismatch or the cross-SKU lending abort actually reproduce on current main? No log, issue or link shows it; #150's reviewer asked the identical question and #150 still has no answer.
  2. Do the two device names in question ever normalize (aot.py:940) to the same gpu_tag while differing raw? Untested; a collision would silently re-share artifact file names while keeping separate Inductor groups.
  3. Are Signed-off-by / Design-Signed-Off-By trailers on f8a033a? Not visible in available material; required by CONTRIBUTING.md and docs/design-review.md, and cited against #150.
  4. Is the "96 passed in 46.13s" run reproducible, and does the new test file survive #584's rewrite of tests/preparation/test_forward_artifact_sharing.py, whose private fixtures it imports?
  5. Whether the per-SKU worker seeding (one worker per active group before surplus) costs measurable wall-clock on a 4-GPU mixed host versus the old one-worker-per-host admission — no measurement given.
  6. Interaction with #122 (configurable headroom) and #592 (architecture admission) in compile_pool.py/aot.py is unaddressed; whichever lands first forces a rebase.