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
- 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) "belowDEVICE_BASE(0x12_0000_0000)". 0xf_0000_0000 − 0x9_0000_0000 is indeed 24 GiB, but it is notDEVICE_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 asserts0x303000000 < 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 atcore_storage.py:67); only the stated window size/bound is wrong. - The cuRAND root cause is asserted, never evidenced. Nothing in the repository shows
precalc_xorwow_offset_matrixwords at 0x3_0000_0000:grep -i curandfinds only the new comment (core_storage.py:69), a licence list indocs/windows.md:383, an unrelated comment insampling.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.) - 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_workspacesincapture.py, addsCoreStorage.warmup_pool()tocore_storage.py, and adds a test starting attests/preparation/test_core_storage.py:83— the same lines where #658 addstest_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. - 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 withEXTERNAL_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. - Defect #4 (
vocab_ids) is unreachable in-tree.DeviceRequestState.vocab_idshas no consumer in the repo except the new test (ignition/components/sampling.py:126;grep -rn vocab_idsreturns only that property and tests).record_numeric_tensoris a no-op unless numeric storage is active (ignition/preparation/tensor_metadata.py:112-115), which happens only insideCoreStorage. 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_metadatatreats non-float tensors as opaque unless recorded) but reads as proactive hardening, not an observed defect. - CI cannot exercise any of this.
.github/workflows/python-cpu.yml(not opened) runs pytest withCUDA_VISIBLE_DEVICES="";native-serving.ymlis Rust-only. The headline live evidence — SM87 export of Inkling-2-Mini (ga10b-tp1-202612010822, 9 graphs) on Jetson AGX Orin andflare run --memory-limit -16mon 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 isf4851b3. 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. - Docs were not updated and now disagree.
docs/runtime-core-design.md:113-116still says preparation reserves the low window "through 256 GiB" and export "rejects reachable external device storage below 256 GiB";docs/windows.md:226still says the explicit-window base "must lie at or aboveEXTERNAL_FLOOR(256 GiB)". For GA10B the floor is now 36 GiB. - Undeclared platform asymmetry and unmeasured cost. The probe capture is gated only on
warmup_storage.integrated, whileseal_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. Andseal_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 atLOW_SCAN_START = 1 << 32). On the reported 9-graph export that is 10 passes over a 32 GiB span; cost is not quantified. - 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-autobotposted 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:
ignition/preparation/core_storage.py:66-73(production, +4/−1). Guarddevice_window is None and self.integrated and (major, minor) == (8, 7);EXTERNAL_FLOOR0x300000000 → 0x900000000;DEVICE_BASE = 0x1200000000andRESERVATION_BYTES = 48 << 30unchanged; class default floor is0x4000000000= 256 GiB (core_storage.py:42),LOW_SCAN_START = 1 << 32(:44). Neighbours:_reserve_low_window(:130-144, seals then probescuMemAlloc_v2and raises "device allocations still start at … below …"),seal_low_window(:164-191), reseal after transient teardown (:268-296) and after retention (:252-254).ignition/preparation/capture.py:52-74(production)._seed_warmup_workspacesgainsbias = torch.empty((512,), bf16)and reusesout; runstorch.mmthentorch.addmmin the dedicated_warmup_pools[index]MemPoolon the warmupExternalStream, then synchronizes.ignition/preparation/capture.py:172-184(production). Afterstream.wait_stream(warm), whengetattr(warmup_storage, "integrated", False): insidewith warmup():(transient storage) allocateprobe_buf int8[1], captureprobe_buf.zero_()into a freshtorch.cuda.CUDAGraph()onstreamwith nopool=argument,delboth,stream.synchronize(), thenwarmup_storage.seal_low_window().ignition/preparation/capture.py:224-227(production). After eachrecord_export_graph(...)in the exporting branch only (exporting = retain_graphs and warmup_storage is not None,:202), reseal again when integrated. Theretain_graphs-only path (:228) does not reseal.ignition/components/sampling.py:125-131(production, +5/−1).vocab_idscached property does a function-localfrom ignition.preparation.tensor_metadata import record_numeric_tensor, buildspersistent_copy(torch.arange(vocab_size, int64, device=histogram.device)), records it, returns it.tests/preparation/test_core_storage.py:83-113and:116-137(+59);tests/preparation/test_capture_graph_metadata.py:477-500and:502-569(+94). Both +153/−0, no deletions.
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.
Related work
- #606 (open, avifenesh) — same three production files, same function
_seed_warmup_workspacesatcapture.py:52-75, same call site (~:119-124), new test attest_core_storage.py:83-105. AddsCoreStorage.warmup_pool()backed byself._allocator.allocator()and registered in_preparation_pools, to stopprepare_allocationsinheliopause/src/export/capture.rsrejecting unowned warmup VMM segments. Autobot gave it "Changes Requested" then "Ready To Merge" on8c1a28a; 4 comments, no human review. Overlap and predictable conflict, not competition: whoever lands second must combine addmm seeding with the pool-ownership plumbing, and the interaction (the seeded addmm workspace would live in theCoreStorage-owned pool) is discussed by neither PR. - #331 (merged, Mark Yong, 2026-11-20, commit
1eb61e81) created_seed_warmup_workspaces; #266 (open) is the bug it addressed. #658 extends exactly that function. - #581 (merged, USE_NODE_PRIORITY) supplied the
record_export_graphcall site atcapture.py:225; #658's reseal is inserted immediately after it, so the two stack cleanly. - #647 (merged, 2026-11-30) and #648 (merged, 2026-11-30, b12x migration) both touch
core_storage.pybut not the(8,7)block orseal_low_window; #647 additionally touched export signing/stream-0 weight race. Background drift, no conflict with the edited lines. - #425 (merged) owns
_capture_order/allocation_order(capture.py:77-79), upstream of the edited region. #589 (merged), #497 (merged, FujitsuPolycom), #598 (merged) are the wider Jetson Orin/GA10B and integrated-memory line of work; #497's own evidence already used live Jetson Orin GA10B serving. - #630 (open issue, GB10 unified memory: KV budget and cuCtxCreate react to page-cache-polluted MemFree) — same hardware family, different subsystem (sizing, not export addresses); not referenced or fixed here. #323, #122 (both closed) are earlier unified-memory headroom configurability. #270 (open, GB10 TP3 kernel-tuning scratch) and #304 (DGX Spark NVFP4) are unrelated. #657 (open) is the author's other open PR, different subsystem.
- No PR proposes a different fix for the GA10B floor or the post-capture reseal; nothing reverts or supersedes #658.
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
- Author: lukealonso, GitHub association COLLABORATOR, one of three priority contributors named in the charter ("we never close their PRs out of hand"). 35 merged PRs in the last 180 days, 0 closed, 1 other open (#657). Files touched by merged PRs: helios/src (25), docs (21), ignition/preparation (10), flare-cli/src (8), heliopause/src (7). Commit volume in the touched areas over 180 days: tests/preparation 207, ignition/preparation 160, ignition/components 108 — the dominant contributor in all three.
- Who else works here: Martin Vit (52 commits in ignition/preparation, 34 in tests/preparation, 58 in ignition/components), jasonc (23 / 23 / 26), Eugene Rakhmatulin (36 in ignition/preparation). Function-level owners of the neighbouring mechanisms, none engaged with #658:
_seed_warmup_workspaces→ Mark Yong (#331);seal_low_window+test_low_window.py→ jasonc (3b8512aa);device_windowseam → gmbuell (#297); #606's warmup-pool work → avifenesh. - Engagement so far: none — no human review, no comment, no bot review.
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
- The charter's Goal sentence names "SM103, SM120, and SM121" only; GA10B/SM87 is not among them. The shipped code and docs do name it:
ignition/planning.py:38(not opened)SUPPORTED_ARCHITECTURES = "SM87, SM103, SM110, SM120, or SM121",ignition/cli/__init__.py:90(not opened),docs/cli-design.md:6(not opened). #658 follows the code, not the charter text; the charter lags. - "Bring real evidence … Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error." Raising a floor to dodge a bit-pattern collision mitigates a scanning heuristic rather than removing the false-positive mechanism; the PR does not argue the root-cause question.
- "No per-model special cases or flags" / "Keep the runtime small and model-agnostic" targets the runtime layer, but a
(8, 7)-onlyEXTERNAL_FLOORis a per-GPU special case in shared preparation code. Precedent exists in the same file (the block itself, the Windows/WDDM branch), so this is a continuation of an established pattern rather than a new departure. - "PR descriptions: four parts — why / what changed / claimed result / evidence." #658 has all four explicitly labelled plus a Limitations section.
- The charter sanctions maintainer-requested work and reproducible bugs; no maintainer request or public bug report is cited for any of the four defects.
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
- Who/what is affected: preparation on Linux integrated (8, 7) GPUs only; serving, Helios, Heliopause and the core format are untouched. One extra graph capture + synchronize per export, and one
seal_low_window()per exported graph (10 passes over 4→36 GiB on the reported 9-graph export) — unmeasured;test_low_window.py:73's call-count bound is written for a 12 GiB-floor fixture using the class constant, so it does not cover the new cost. - Configuration and defaults: no flag, no config key, no default exposed to operators; the floor is a per-arch constant.
- Compatibility: existing GA10B cores exported with the old 12 GiB floor keep that recorded floor and stay loadable; nothing re-exports them, so an operator who already hit the collision must re-prepare.
- Dependencies and layering: no dependency pin or build change.
record_numeric_tensoris imported lazily inside the property (sampling.py:127), adding a components→preparation import at call time — same direction asignition/components/engram.py:19importingignition.preparation.persistentat module scope, so not a new direction, but a new cross-layer import insampling.py. - Documentation: unchanged;
docs/runtime-core-design.md:113-116anddocs/windows.md:226still say 256 GiB.docs/preparation-development.md(not opened) was updated by #606 but not by #658.
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
- What evidence exists for the cuRAND pattern range [0x3_0000_0000, 0x3_0300_0000]? None in the repo — ask for the dump or export log.
- Is the intended band 24 GiB or 36 GiB, and should the comment/description be corrected (and the test strengthened to assert the real span)?
- Was defect #4 ever observed, given
vocab_idshas no in-tree consumer and the reported Inkling-2-Mini export succeeded? - Which BLAS path does the bf16
addmmwarm (cuBLAS vs cuBLASLt), and does the CUDA test need extending? - Who merges first, #606 or #658, and who reconciles the
_seed_warmup_workspacessignature/pool ownership plus the collidingtest_core_storage.py:83+region? - Is the Windows asymmetry (probe capture not gated, reseal a no-op) intentional?
- No issue, discussion or maintainer request asking for any of these four fixes was found; no competing fix exists.