Explore report · NVIDIA/hyperflare-inference #658

Raw Markdown for agents: https://autobot.eidonix.com/p/94709285-502a-473b-8216-c274a1eada4d.md

Case file — PR #658 fix(ignition): raise GA10B external floor, reseal unified-memory capture window, warm addmm, and mark vocab_ids numeric

Repository NVIDIA/hyperflare-inference · open, draft state "ready for review" · head f4851b3, base main · 5 files, +180/−3 · CI passed · no comments, no reviews · Discord: lukealonso.

Key findings

  1. The arithmetic in the new comment and in the PR description is wrong. The comment says external allocations land in "the 24 GiB [0x9_0000_0000, 0xf_0000_0000) range" (ignition/preparation/core_storage.py:68-70) "below DEVICE_BASE (0x12_0000_0000)". 0xf_0000_0000 − 0x9_0000_0000 is indeed 24 GiB, but it is not DEVICE_BASE: 0xf_0000_0000 = DEVICE_BASE − RESERVATION_BYTES (0x12_0000_0000 − 0x3_0000_0000). The actual band between the new floor and the rank-0 device window is 36 GiB. The new test only asserts 0x303000000 < EXTERNAL_FLOOR < DEVICE_BASE (tests/preparation/test_core_storage.py:113), so it does not catch the mismatch. The constants are internally consistent (DEVICE_BASE + 48 GiB = 0x1E_0000_0000 = 120 GiB, inside the 128 GiB GA10B VMM window named at core_storage.py:67); only the stated window size/bound is wrong.
  2. The cuRAND root cause is asserted, never evidenced. Nothing in the repository shows precalc_xorwow_offset_matrix words at 0x3_0000_0000: grep -i curand finds only the new comment (core_storage.py:69), a licence list in docs/windows.md:383, an unrelated comment in sampling.py:241, and the new test name. No fixture, dump, log or quoted error string. And the fix removes one address band rather than the false-positive mechanism — any other static table containing pointer-shaped words in [36 GiB, 72 GiB) would still collide. (For contrast, PR #606's description quotes the exact native error string.)
  3. Open PR #606 edits the same function and the same three files. #606 (avifenesh, FIRST_TIME_CONTRIBUTOR, open since 2026-11-29) rewrites _seed_warmup_workspaces in capture.py, adds CoreStorage.warmup_pool() to core_storage.py, and adds a test starting at tests/preparation/test_core_storage.py:83 — the same lines where #658 adds test_ga10b_integrated_window_places_external_floor_above_curand_table. Expect textual conflicts in all three files. Intent is compatible (different concerns), so overlap rather than competition, but the second merge needs a hand rebase.
  4. The code being corrected is four days old and by the same author. Commit c9935887 ("Support integrated GA10B GPUs, adaptive executor parking, and explicit memory limits", lukealonso, 2026-11-27) introduced the (8, 7) block with EXTERNAL_FLOOR = 0x300000000. No PR for that commit is findable via search. So #658 is a same-author correction of a two-day/四-day-old constant, not a change to long-standing behaviour.
  5. Defect #4 (vocab_ids) is unreachable in-tree. DeviceRequestState.vocab_ids has no consumer in the repo except the new test (ignition/components/sampling.py:126; grep -rn vocab_ids returns only that property and tests). record_numeric_tensor is a no-op unless numeric storage is active (ignition/preparation/tensor_metadata.py:112-115), which happens only inside CoreStorage. The test asserts the call happened, not that export would have failed (or produced worse metadata) without it. The change is consistent with the design (live_metadata treats non-float tensors as opaque unless recorded) but reads as proactive hardening, not an observed defect.
  6. CI cannot exercise any of this. .github/workflows/python-cpu.yml (not opened) runs pytest with CUDA_VISIBLE_DEVICES=""; native-serving.yml is Rust-only. The headline live evidence — SM87 export of Inkling-2-Mini (ga10b-tp1-202612010822, 9 graphs) on Jetson AGX Orin and flare run --memory-limit -16m on Orin Nano 8 GB — is self-reported, and the serving check is explicitly on "a checkout prior to this rebase onto a747a5a5", while the reviewed head is f4851b3. Exactly the unrun files (test_capture_cublas_workspace_cuda.py, test_recorded_export_graph_cuda.py (not opened), test_capture_order.py (not opened), test_preparation_reclamation.py (not opened), test_persistent.py (not opened)) cover the changed capture path.
  7. Docs were not updated and now disagree. docs/runtime-core-design.md:113-116 still says preparation reserves the low window "through 256 GiB" and export "rejects reachable external device storage below 256 GiB"; docs/windows.md:226 still says the explicit-window base "must lie at or above EXTERNAL_FLOOR (256 GiB)". For GA10B the floor is now 36 GiB.
  8. Undeclared platform asymmetry and unmeasured cost. The probe capture is gated only on warmup_storage.integrated, while seal_low_window() is a no-op on Windows (core_storage.py:170), so an integrated Windows host would capture a probe graph and reseal nothing. And seal_low_window() — called once before the serving loop and again after each exported graph (capture.py:184, 226-227) — now scans 4 GiB→36 GiB instead of 4→12 GiB (core_storage.py:164-191, starting at LOW_SCAN_START = 1 << 32). On the reported 9-graph export that is 10 passes over a 32 GiB span; cost is not quantified.
  9. Zero engagement. The PR is open, ready for review, opened and touched the same day, and has no comments and no reviews. Notably the repo's own flare-autobot posted two full reviews on #606 within two hours but has posted nothing on #658.

The change

Plain terms. When Ignition exports a prepared core it copies GPU memory and follows pointer-shaped words to decide what else must be copied. On unified-memory GPUs the serving process puts its own driver storage at low addresses, so preparation reserves every free virtual-address span below a floor to push library allocations above it. #658, on Jetson Orin (GA10B, capability 8.7) only: (a) raises that floor from 12 GiB to 36 GiB; (b) runs a throwaway one-byte CUDA graph capture first — because the first capture on such a GPU trims CUDA's pre-init low slab and reopens the spans just sealed — and reseals, then reseals again after every exported graph; (c) also runs a small addmm in the pre-capture warmup so cuBLAS's bias-epilogue workspace is created off the capture stream; (d) marks the persistent arange(vocab_size) token table as numeric so it is not scanned for pointers.

File map of the diff against its neighbours:

Size: 5 files, +180/−3; ~27 added and 3 removed lines are production. No new files, no dependency pin, build file, Protobuf, CLI flag, config default or Rust change.

Description ↔ change: the four bullets match the diff exactly; nothing in the diff goes beyond them in behaviour. What the description does not say is listed in Key findings (platform asymmetry, per-graph scan cost, docs not updated, dead-code status of #4, the wrong window size).

The why

The stated problems are (1) cuRAND static tables collide with the 12 GiB floor during export pointer scanning, (2) the first CUDA graph capture reopens sealed low spans on unified-memory GPUs, (3) cuBLAS addmm epilogue workspaces were not seeded outside capture, (4) persistent vocab_ids was scanned as pointer-bearing.

How long and how widely wanted: there is no issue or comment thread requesting any of the four. The underlying machinery is old — seal_low_window and tests/preparation/test_low_window.py came from 3b8512aa ("Keep every external allocation above a serving context's low addresses", jasonc, 2026-10-13); the explicit device_window seam and address-width check came from d5c2bd14 = merged PR #297 (gmbuell); the Windows/WDDM counterpart of the same low-address problem is merged #159 and closed issue #295. The specific GA10B block being corrected is from c9935887 (2026-11-27, same author, no PR). The addmm seeding concerns the function created by merged #331 (Mark Yong, 2026-11-20) for issue #266 (open: "First captured graph keeps a transient cuBLAS split-K workspace: Xid 31 …").

Read: the change is preventive hardening on a code path that is four days old, proposed by the person who wrote that path, with evidence that lives only in the author's own hardware runs.

Recent activity

The GA10B / Jetson Orin line is active this week and almost entirely the author's: c9935887 (2026-11-27, integrated GA10B support — introduced the block #658 fixes); #589 (merged, CUDA 12 batched copies, Linux ARM64 portability, Selene unified-memory budgeting, notes HOST_NUMA VMM unsupported on GA10B); #598 (merged, ga10b in helios/src/core/naming.rs:16 (not opened),158, platform_from_capability(8,7) = ga10b); #652 and #656 (both merged 2026-12-01) cite Jetson Orin Nano 8 GB runs under the same flare run --memory-limit -16m used as #658's smoke test. #658 therefore sits inside a continuous workstream, and builds on rather than reverses any of it — except that it rewrites its own author's two-day-old constant.

Two 2026-11-27/29 changes show the "capture reopens low spans" gap is structurally easy to reintroduce: transient() already reseals after del pool; torch.cuda.empty_cache() with the comment "Returned segments may reopen low addresses that later library allocations would take" (core_storage.py:268-296), and retain_transient_backing() reseals when a pool retires (:252-254). The gap #658 closes is specifically a CUDA graph capture trimming the pre-init slab, which nothing resealed after.

People

Community

pr_comments returns "No comments." No reviews, no reactions, no linked discussion. Zero interest drawn so far — consistent with a same-day maintainer PR in a high-velocity stream, but worth noting because #606, an overlapping first-time-contributor PR, did draw two automated reviews.

Project fit

Claims and evidence

Claim Backing
cuRAND precalc_xorwow_offset_matrix words collide at 0x3_0000_0000 Assertion only, in the new comment (core_storage.py:69) and the description. No fixture, dump, log or error string anywhere in the tree. Not testable from the test added.
"24 GiB [0x9_0000_0000, 0xf_0000_0000) below DEVICE_BASE (0x12_0000_0000)" Contradicted by the constants: 0xf_0000_0000 = DEVICE_BASE − RESERVATION_BYTES; the band to DEVICE_BASE is 36 GiB.
First capture reopens sealed spans on unified memory Plausible and consistent with the pre-existing reseal sites, but no measurement, trace or before/after address listing is given.
Reseal after probe capture and after each exported graph fixes it Only ordering is tested (test_capture_graph_metadata.py:502-569 asserts the event sequence probe_capture, transient_exit, stream_sync, seal_low_window, serving_capture, seal_low_window, serving_capture, seal_low_window). No test shows the defect reproducing on main.
addmm workspace seeding needed Ordering only (test_capture_graph_metadata.py:477-500, events ["mm","addmm","sync"]). torch.addmm on bf16 may dispatch through cuBLASLt or legacy cuBLAS depending on torch.backends.cuda.preferred_blas_library(); the PR does not say which path it warms, and the CUDA test that could show it (tests/preparation/test_capture_cublas_workspace_cuda.py) was not extended or run.
vocab_ids was exposed to pointer scanning Structurally consistent with live_metadata (tensor_metadata.py:152-207 treats non-float tensors as opaque unless recorded) but no failing export is cited, and no in-tree consumer exists. Test asserts the call once with that tensor (test_core_storage.py:133-137).
CPU preparation tests: 38 passed, 1 skipped on a747a5a5 Self-reported; the reviewed head is f4851b3; CI runs none of it on a GPU.
Live SM87 export of Inkling-2-Mini, 9 graphs, and Orin Nano serving Self-reported, no log/artifact link, and the serving run was on a checkout prior to the rebase.
"No core wire format, Protobuf, CLI, or Helios runtime changes; existing cores load and serve unchanged" Verified: no Rust, Protobuf, CLI or config file in the diff; the core still records device_address_floor via ignition/preparation/runtime_core.py:428 → heliopause/src/export/mod.rs:198 (not opened), checked at heliopause/src/export/capture.rs:3417-3425.

Test quality notes: all four new tests are CPU unit tests that check configuration or call ordering; none is a regression test that fails on main. test_ga10b_… stops CoreStorage.__init__ with a FakeCuda that raises before the native allocator is built, so it never exercises _reserve_low_window (a 36 GiB floor on an 8 GiB device is fine for VMM but untested by it). test_device_request_state_vocab_ids_… stubs ignition.components.flashinfer_sampling only when flashinfer is absent; on a GPU host with flashinfer installed it takes the real import path.

Reach

Process

Ready for review, opened 2026-12-01 and last updated the same day, head f4851b3, no labels, CI passed, zero reviews, zero comments. The description claims a rebase onto a747a5a5 while the head is f4851b3; #647 and #648 (adjacent preparation/export work) merged the day before, so a re-run of the reported test command on the actual head would be worth having.

Open questions / not found