Explore report · NVIDIA/hyperflare-inference #728

Raw Markdown for agents: https://autobot.eidonix.com/p/f3c5a3aa-37db-41dd-9d34-d39e18d160d3.md

Case file: PR #728 — heliopause,ignition: enforce export reachability, owned warmup pools, native ForwardCache hashing, and Triton AOT guard contracts

https://github.com/NVIDIA/hyperflare-inference/pull/728 · author lukealonso (COLLABORATOR, Discord lukealonso) · base main, head 71af7c9, opened 2026-12-04, last updated 2026-12-04 · ready for review · no labels, no reviews, no comments · CI pending.

Key findings

  1. Three of the four "parts" are other contributors' open PRs carried in nearly verbatim, and none of them is closed by this one. The diffstats match to the line: #332 (mark-yong) is the reachability third (same 4 files: reachability.rs +738/−27, capture.rs +4/−1, docs/runtime-core-design.md +8/−2, docs/TODO.txt +6); #606 (avifenesh) is the owned-warmup-pool half (same 5 files and counts, Autobot verdict Ready To Merge); #574 (fordbmorris) is generalized. #728's body discloses all three ("integrates #332 by @mark-yong", "rebased #606", "generalizes #574"), but Closes lists only #724 — #332, #606 stay open and #574 stays open with one Autobot blocker, so merging #728 leaves three authors' work to be closed by hand. (Verified against pr_files and the three origin PRs.)
  2. The declared Closes #724 is not demonstrated on the hardware that failed. #724 ("failed to export inkling-2-mini on GB10", P2, terryaic, opened the same day) fails in warmup after 162/162 forwards compile: PicklingError: Can't pickle <class 'triton.compiler.compiler.KernelMetadata'>. #728 supplies unit-level Triton 3.8.0 evidence on SM120 and explicitly says "Full-model GB10 (SM121) Inkling2 / GLM-5.3 exports … were not executed on this host", naming local-inference-lab/hyperflare-recipes#163/#151 as co-fixes. By contrast #574 was verified on "end-to-end 4-Spark TP4 Inkling 2 Small exports" on ARM64 GB10 — the closest existing evidence, and #728 does not reproduce it.
  3. PR description overstates the hashing scope: ForwardCache still does not hash helios/src or heliopause/src. forward_source_identity (ignition/preparation/source_identity.py:61-136) mixes only ignition, flashinfer.python, flashinfer.include, flashinfer.csrc, and each bound extra:<label> root. The Rust collector does accept .rs (heliopause/src/export/source_identity.rs:48) but no Rust tree is passed, so a Helios/Heliopause edit still does not invalidate a compiled forward, contrary to the PR text's .py/.rs/… framing.
  4. One-time full recompile of every forward for every user. ForwardCache.__init__ replaces the rglob('*.py') loop with a single digest appended as b'\0sources\0' to a reshaped key (ignition/preparation/aot.py:899-918), so all existing forward cache directories are invalidated once on upgrade.
  5. The reachability diagnostic is non-blocking and known to be noisy. It prints to stderr per rank (heliopause/src/export/capture.rs:3417-3419) and never fails an export — while #266 asked for a failing check. #332's own measurement on a 2-GPU SM120 export: 22,618 occurrences / 762 distinct addresses (rank 0), 19,417 / 832 (rank 1) after the 8-byte-alignment filter, dominated by mHC/Cutlass constants. yatesdr's standing objection over three rounds of CHANGES_REQUESTED was that the sample "can show only noise", and docs/TODO.txt inherits the still-open 4-GPU/8-GPU measurement item.
  6. The "1 pre-existing unrelated failure" looks mistaken. tests/preparation/test_runtime_triton.py::test_replaces_stock_architecture_probe_with_pointer_width_key exists at PR head :82-93 and asserts stock platform_key() == "x86_64,Linux,64bit,ELF", patched == "x86_64,Linux,64bit" — exactly the behaviour #728 says stock Triton 3.8.0 produces. It was rewritten by merged #624 so it passes under the pinned stack, and .github/workflows/python-cpu.yml:30-33 (not opened) runs it in CI.
  7. Zero engagement on a 1,571-line change that carries three reviewed PRs. #332 had three review rounds from yatesdr; #606 was twice judged Ready To Merge by Autobot; #574 has an open Autobot blocker — #728 has had no reviewer at all.

The change: what it does, in plain terms, and its size

24 files, +1571/−85 (pr_files, authoritative). Roughly +790/−33 Rust under heliopause/, +266/−43 Python under ignition/preparation/, +494 tests, +18/−3 docs.

A. Export reachability diagnostics (Rust; = #332's work). Reachability::pointer becomes candidate, returning whether a scanned 8-byte value resolved to a live recorded allocation (heliopause/src/export/reachability.rs:159-180). For kernel-argument blobs only, scan records misses at argument-relative 8-byte-aligned offsets (:200-260, 340-450). unresolved_report(functions) emits a summary line, up to UNRESOLVED_EXAMPLES = 10 examples prioritising one address per distinct kernel symbol, and an omitted-count line (:236-340); capture_rank prints them to stderr as export: rank N: … after graph serialisation (capture.rs:3417-3419). Nothing fails.

B. Owned warmup pool + auxiliary-stream seeding (Python; pool = #606, auxiliary = new here). CoreStorage.warmup_pool() lazily creates torch.cuda.MemPool(self._allocator.allocator()) and registers it in _preparation_pools (ignition/preparation/core_storage.py:309-318). capture_forwards seeds the warmup-stream cuBLAS workspace into it when the storage exposes it, else keeps the 2-argument module-level path (ignition/preparation/capture.py:151-156). New _seed_auxiliary_workspaces seeds mm/addmm/bmm on the scratch arena's _auxiliary_stream inside warmup_storage.graph_pool (capture.py:82-107, called at :157), so that workspace survives warmup, capture and native replay.

C. Native source hashing for the AOT forward cache. .cpp/.hpp added to the Rust collector and to heliopause/build.rs:143-146; export_source_identity grew an excluded_files argument (heliopause/src/export/binding.rs:1149-1168); forward_source_identity() added (source_identity.py:61-136); ForwardCache.__init__ maps _COMMAND_SOURCES/_PUBLICATION_SOURCES onto excluded directories/files and calls it (aot.py:902-918).

D. Triton AOT guard contracts + generalized prepared-module roots. prepared_module_roots()/is_prepared_object_module() (source_identity.py:31-58) replace the two hardcoded ('ignition.', 'b12x.') tuples in forward_metadata._uses_custom_object_state (forward_metadata.py:40-44) and rebuild_manifest.weight_views (rebuild_manifest.py:348-369). CompilePool.submit_payload snapshots bound _EXTRA_ROOTS and _compile_forward rebinds them in the spawned worker (compile_pool.py:128-145, 172-181). _prune_static_compile_results/_sanitize_static_bundle reject or prune non-StaticTritonCompileResult entries (inductor_tuning.py:21-65), called from _selected (:71), _snapshot (:108), freeze (:366) and aot._load_inductor (:126-131). _GuardPickler.reducer_override raises TypeError on a triton.compiler.CompiledKernel (aot.py:223-229).

What the description does not say:

What the description says that the change is thinner on: the .rs hashing claim (see Key finding 3); and "reachability failures report exact graph, kernel, argument offset, and candidate details" is accurate, but this remains a diagnostic, not the rejecting check #266 requested.

Tooling caveat for whoever reads the diff: the local main ref is far behind the PR's real base, so pr_diff (whole and per-file) mixes in dozens of already-merged upstream changes that are not in pr_files — AGENTS.md, docs/api.md, the GA10B EXTERNAL_FLOOR 0x900000000/DEVICE_BASE 0x0c00000000 and WindowsHostRegion → HostVmmRegion changes (#658-era), _b12x_forward_env/_atomic_write_file/_CORRUPT_ARTIFACT_ERRORS in aot.py (#668), _SMALL_INTEGRATED_*/min_worker_bytes in compile_pool.py (#671), async_transfers in binding.rs and validate_external_extents in capture.rs (#711/#720). search_history fails on every ref (git: error: Could not read c513e46a…), and the orientation packet's "commits on default branch since branch point: none" is an artefact of that staleness. pr_files counts are the only trustworthy change list; I found no genuinely undeclared functional change once the noise is stripped.

The why: the problems addressed, and how long they have been wanted

All four targets are SM120/SM121 + DGX Spark hardware, which the charter names as the project's focus. Item 3 is the weak link on the "Bring real evidence" bar.

Carried, not closed (high):

Open work on the same code (collision surface, not duplication):

Superseded / not duplicates: #658, #331, #668, #671, #711, #720, #624, #608 are the base #728 sits on — their content only appears inside per-file diffs because of the stale base, not because #728 repeats them. #584 (closed) overlaps in topic but nothing #728 carries.

Recent activity

No merged change in the touched files reverses or conflicts with #728; it is additive. The real recent history (all merged, all in #728's base):

(The orientation packet's "recent activity: not available (git error)" is a stale-local-clone artefact, not an absence of activity.)

People

Community

No comments or reviews on #728 at all. The only community signal is indirect: three review threads on the origin PRs (#332's three CHANGES_REQUESTED rounds, #606's two Autobot Ready-To-Merge passes, #574's open blocker) that #728 does not visibly inherit. #724, the issue it claims to close, has zero comments and was updated the same day.

Project fit

Lines up: "Solve the right problem in the right place … smallest footprint in shared code" — hashing goes into Heliopause Rust, the pool into CoreStorage, and recipe package names are derived from bound source_roots instead of hardcoded. "Keep the runtime small and model-agnostic … shouldn't accumulate per-model branches (#267, #334)" — #728 removes two hardcoded package-name tuples and adds no model branches. "PR descriptions: four parts — why, what changed, claimed result, evidence" — #728 has all four plus a Limitations section; among the better-formed descriptions in this area. "What gets merged: … a reproducible bug" — #266, #606, #724 all carry hardware evidence.

Tensions / gaps: "Supported matrix & compatibility … SM103, SM120, SM121 … verify that existing data, artifacts, and exported cores still load" — evidence is SM120 only; SM121/GB10 (the #724 and #606 target) and SM103/SM87 are explicitly unrun, as are TP2 distributed Inductor tests and multi-host. The compatibility risk is not core loading (no flag/default changes) but the one-time forward-cache invalidation and the widened prepared_module_roots() predicate. "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)" — _prune_static_compile_results silently prunes non-static results when require_single=False and a static result survives (inductor_tuning.py:37-44), and _load_inductor now applies this on the non-frozen path; defensible (dropping unreferenced static_autotuners was independently established by #642) but a behaviour change worth an explicit word. "Respect contributors / priority contributors" — the three unclosed origin PRs are the live test of this clause.

Docs actually changed: docs/runtime-core-design.md +8/−2 — two sentences only (non-blocking per-rank stderr diagnostic for argument-relative 8-byte-aligned unresolved values; the stderr-rows sentence). docs/TODO.txt +6 — one new open measurement item requiring 4-GPU DeepSeek V4.1 (#266) and 8-GPU W4A8 MoE exports before closing. docs/preparation-development.md +4/−1 — the CoreStorage.warmup_pool() sentence. The auxiliary-stream seeding is documented nowhere despite the body implying otherwise.

Claims and evidence

Claim Backing Verified?
Rust reachability support; cargo test … --lib in CI .github/workflows/python-cpu.yml:34-41 (not opened) does run exactly that; new tests live in reachability.rs/source_identity.rs test modules Verified
Owned warmup pool contains the workspace tests/preparation/test_capture_cublas_workspace_cuda.py:123-200 (subprocess, real CoreStorage + RuntimeCore.write, asserts _capture._warmup_pools empty and pool id in _preparation_pools); PR reports 2 passed on SM120 GPU 2, 2 passed reversed on GPU 3 Self-reported, CUDA-gated, not in CI
Full CPU suite 1,431 passed / 75 skipped CI runs the full suite (python-cpu.yml:30-33) Plausible, CI pending
"1 pre-existing unrelated failure" in test_runtime_triton.py Test exists at head :82-93 and asserts exactly the behaviour claimed to fail; rewritten by merged #624 Unconfirmed / looks mistaken
ForwardCache invalidates on .cu/.cuh/.c/.h/.cpp/.hpp in Ignition, FlashInfer data/{csrc,include}, recipe roots test_forward_cache_sources.py:42-123 (execution edits change root; cli/main.py (not opened), progress.py (not opened), __main__.py (not opened), core_file.py (not opened) do not) Verified in code and test
.rs coverage of the forward cache Rust collector accepts .rs, but no Rust tree is passed to forward_source_identity Not true for helios/src/heliopause/src
Non-static TritonCompileResult pruned/rejected before pickle.dumps inductor_tuning.py:21-65; test_inductor_prepared_winners.py:317,360,380,392 Verified in code
Guarded CompiledKernel rejected with actionable TypeError aot.py:223-229; PR reports real Triton 3.8.0 roundtrips pass guard_check(owner) with matching outputs Self-reported
CompilePool workers inherit bound source_roots compile_pool.py:128-145, 172-181; test_compile_pool.py:427 uses a real spawned pool Verified in code/test
Closes #724 Unit-level Triton evidence on SM120 only; no GB10/SM121 or Inkling2 export run Not demonstrated end-to-end
Reachability "reports exact graph, kernel, argument offset, candidate details" True of the code; noise volume (762–832 distinct addresses/rank) unmentioned Partly evidenced

GPU-only numbers reported but not in CI: test_capture_cublas_workspace_cuda.py 2 passed, test_recorded_export_graph_cuda.py (not opened) 2 passed, test_inductor_tuning_cuda.py (not opened) 8 passed/5 skipped, "Verified on SM120 with real Triton 3.8.0 CompiledKernel instances".

Reach

  1. Every exporter of every core: one-time full recompile of all forwards after upgrade (key shape + b'\0sources\0' digest, aot.py:899-918). No stale artifacts reused, but a real cost.
  2. External recipe packages: prepared_module_roots() widens the "prepared object" predicate to any top-level package equal to a source-root label or its directory basename (source_identity.py:36-47); guarded by isidentifier() and de-duplication, not by the package being importable or related — a root directory named e.g. torch would claim that package.
  3. Native edits in recipe packages now invalidate caches — but only if the files ship: local-inference-lab/hyperflare-jetson-recipes#7 moves csrc/ into the package with package-data, so without that companion PR jetson native edits remain unhashed after install.
  4. CI: python-cpu.yml:30-41 covers the new Python tests and the Heliopause Rust lib tests; no workflow change is part of this PR.
  5. Windows / GA10B: no surface change from #728 itself (host_allocate/HostVmmRegion/floor changes in the diff are #658-era noise). The 2-argument _seed_warmup_workspaces fallback keeps non-export capture unchanged (capture.py:151-156).
  6. Operators: no new CLI flag, config key or default. One extra persistent per-rank pool (2 MiB + 32 MiB per #606) registered in _preparation_pools; #606's analysis argues freed segments are marked inactive by unused_ranges() so exported cores do not grow.
  7. Dependencies: no version bumps, but the Triton invariant depends on private APIs (torch._inductor.runtime.triton_heuristics.StaticTritonCompileResult, triton.compiler.CompiledKernel), and _GuardPickler now imports from triton.compiler import CompiledKernel inside the hot reducer path (aot.py:223).
  8. Deployment: heliopause/build.rs now reruns on .cpp/.hpp under heliopause/src and helios/src, feeding the multi-host source_identity() agreement check.

Process

Not a draft; opened and last updated the same day (2026-12-04); age at snapshot: hours. CI pending on head 71af7c9. No reviews, no comments, no labels, no reactions. Front-loaded with three other contributors' reviewed work, one of which (#332) had three maintainer review rounds and another (#606) a Ready-To-Merge verdict. Concedes four unrun verification axes: full-model GB10/SM121 Inkling2 and GLM-5.3 exports, SM103/SM87 hardware, TP2 distributed Inductor CUDA tests, multi-host.

Open questions for the decider

  1. Disposition of #332 / #606 / #574. Will they be closed as superseded, and do mark-yong/avifenesh/fordbmorris keep authorship in commit trailers? #332's three review rounds in particular lose their whole value if the combined PR is reviewed from scratch.
  2. Does #728 actually fix #724? The failure is warmup KernelMetadata pickling on GB10; #728 offers SM120 unit-level evidence, names companion recipe PRs as co-fixes, and reports no Inkling-2-Mini or GB10 export. Ask for the end-to-end run, or explicitly scope the claim.
  3. The "pre-existing failure" — ask for the actual failing output; the test as it stands asserts precisely the behaviour #728 attributes to stock Triton 3.8.0 and is CI-covered.
  4. Reachability usefulness vs noise — #332's measured ~19–22k occurrences / 762–832 distinct addresses per rank on a 2-GPU export, plus the diverging inactive-range vs granule-trimmed live-interval treatment (capture.rs:1196-1240, 1408-1423), and #266's request for a failing check rather than a printed one. The diagnostic ships unvalidated on the hardware that motivated it, with the measurement deferred to docs/TODO.txt.
  5. Merge-order coordination with open #642 (same InductorSelections.register/freeze region), #597 (winner keying), #678 (_EXTRA_ROOTS encapsulation, pre-empted while the private name is still imported), #710, #639, #723.
  6. Behaviour changes worth an explicit ack: non-frozen _load_inductor sanitisation; the silent-prune branch in _prune_static_compile_results; the widened prepared_module_roots() basename rule; the one-time global forward-cache invalidation.

What could not be found