Case file: PR #606 — fix(ignition): seed warmup workspaces inside export storage pool
Author: avifenesh (FIRST_TIME_CONTRIBUTOR, Discord avi7066) · branch fix/ignition-export-warmup-pool, head 2535841, base main (branched at 44f59df) · open, ready for review, 1 commit, 4 files, +101/−5 · no labels, no reviews, no comments, no reactions, no CI checks on the head.
https://github.com/NVIDIA/hyperflare-inference/pull/606
Key findings (what the description does not tell you)
- It partially reverses a deliberate design decision merged one week earlier in #331 ("Isolate cuBLAS warmup workspaces from CUDA graph capture",
mark-yong, merged 2026-11-20, commit1eb61e81). #331's stated invariant was that the cuBLASLt warmup seed lives in a module-ownedMemPoolwhose backing outlives "transient storage, caller-owned pools such asCoreStorage's, and the exported graph pool" (PR #331 "What changed", bullet 3; the old wording survives in the rewritten docstring's history atignition/preparation/capture.py:53-63). #606 moves the export path into aCoreStorage-owned pool and cites #331 nowhere. - No linked issue, no linked report, no reproduction. The body says the native-export rejection was "observed on NVIDIA GB10 / DGX Spark" but links no issue, log, error text or command. The nearest real defect is #266 (open, P1,
calvarado2004, 4× DGX Spark GB10) — the first-captured-graph cuBLAS workspace fault that #331 fixed — which #606 neither references nor re-tests. AGENTS.md:165-169 requires "a demonstrated defect" for a contribution. - The
_preparation_poolsregistration changes export content, not just ownership.CoreStorage.unused_ranges()(ignition/preparation/core_storage.py:319-334) sweepstorch.cuda.memory_snapshotsegments whosesegment_pool_idis in_preparation_poolsand returns padding and inactive-block ranges.export_modelfeeds those ranges into bothinactiveandzero_ranges(ignition/preparation/runtime_core.py:300-301), which the native exporter uses to split allocations and to zero/skip content (heliopause/src/export/capture.rs:1471-1490live pieces,:1305without_zero_ranges). So adding the warmup pool id shifts what the exported core carries — undeclared in the description. - The new GPU test does not test what the claim needs.
tests/preparation/test_capture_cublas_workspace_cuda.py:123-173uses a plaintorch.cuda.MemPool()plus aSimpleNamespacewithwarmup_pool=lambda: export_warmup— no realCoreStorage, no assertion that the seed lands insideCoreStorage.mappings. This is exactly the objection #331's revieweryatesdrraised about #331 (2026-11-18: "the test uses a plaintorch.cuda.MemPool; an export keeps warmup memory inCoreStorageretention, which the test never touches … post one export with the out-of-allocation pointer check from #266"), and it recurs here unaddressed. The "inside declared core mappings" claim rests only on the unposted GB10 export runs. - In the export path the module-level pool is never created at all now (
capture.py:67-70is skipped whenpoolis passed), so an export process holds one warmup pool (~34 MiB/rank) instead of two. Retention is moved, not added — but the description does not say the old pool disappears. - No statement about already-exported cores. The description does not say whether cores exported before this change on unified-memory GPUs still carry the unowned segment and need a re-export. #331's reviewer required exactly such a sentence for the analogous change (yatesdr, 2026-11-19: "the description should say that cores exported before this change … need a new export"), and #331's final description carries it.
- The 2 MiB / 32 MiB figures are pool segment sizes, not request sizes. The seed (
capture.py:72-73) requests a 512×512 bf16 operand plusempty_like— 1 MiB of tensor bytes total. - Doc drift:
docs/preparation-development.md:88-91still says only that withwarmup_storage"eager warmups allocate from its transient pools and release them before capture"; the PR changes where the warmup seed lives and does not update it.
The change
4 files, +101/−5, one commit 2535841 (production code 23 lines):
ignition/preparation/capture.py:52—_seed_warmup_workspaces(stream, device, pool=None); the module-level_warmup_pools[index]lookup/creation now runs only underif pool is None:(capture.py:67-70).capture.py:118-122—capture_forwardsaskswarmup_storage.warmup_pool()when the storage object exposes it (hasattrduck-typing) and passes it; otherwise it keeps the exact 2-argument call_seed_warmup_workspaces(warm, device).ignition/preparation/core_storage.py:300-309—CoreStorage.warmup_pool(): lazily one persistenttorch.cuda.MemPool(self._allocator.allocator()), cached onself._warmup_poolviagetattr(not declared in__init__, unlike_retention_poolatcore_storage.py:73), andself._preparation_pools.add(pool.id). Same shape asscratch_pool()(core_storage.py:294-298) andtransient()(:277-282).- Docstring at
capture.py:53-63rewritten: it now says "When an export storage supplies a persistent warmup pool, seed inside it so the allocation stays within declared core mappings", dropping the previous promise that the seed stays outside "any caller-owned pool". - Tests:
tests/preparation/test_core_storage.py:83-105(CPU, monkeypatchedFakeMemPool; asserts reuse, allocator identity, id registered) andtests/preparation/test_capture_cublas_workspace_cuda.py:123-173(GPU-gated onFLARE_RUN_CUDA_TESTS=1). - The pre-existing non-export GPU assertion still reads
_capture._warmup_pools[0](test_capture_cublas_workspace_cuda.py:97), so the non-export path is unchanged in the tests; every CPU capture test stubs_seed_warmup_workspaceswith a 2-argument lambda (test_capture_graph_metadata.py:181(not opened),test_capture_rank_readiness.py:56(not opened),test_capture_roce_wait.py:40(not opened),test_capture_stream_isolation.py:44(not opened),test_forward_compile_options.py:309(not opened),test_preparation_reclamation.py:41(not opened),test_transient_retention.py:131(not opened)), which still matches. - Blast radius inside this repo: production
capture_forwardscallers areignition/bench/study.py:48andignition/bench/observations.py:87(not opened) (plus test fixtures such ashelios/tests/gather_core_fixture.py:85(not opened)); the export/serving wiring (warmup_storage=CoreStorage,retain_graphs=True,pool=storage.graph_pool.id) is assembled in the external recipe repository (local-inference-lab/hyperflare-recipes, referenced from AGENTS.md:9-13), visible here only indirectly throughignition/cli/serve.py:227-232,:303-316andignition/preparation/rank_group.py:60-69(not opened). One in-repo test now silently takes the new path:tests/preparation/test_recorded_export_graph_cuda.py:50-52passes a realCoreStorageaswarmup_storage.
The why
CoreStorage is a CUDA-VMM-backed preparation storage; its device window is declared to the native exporter as preserve_address=True allocations (ignition/preparation/runtime_core.py:308-310) with discover_allocations=True (runtime_core.py:360). Allocation discovery classifies recorded-but-undeclared device segments as external-N allocations (heliopause/src/export/capture.rs:1331-1380) and validates each by cuPointerGetAttribute memory kind and owning context against the serving context, rejecting with "external allocation {addr}+{size} is not device memory in the serving context" (capture.rs:1463). On integrated GPUs CoreStorage additionally reserves everything below EXTERNAL_FLOOR, with a special (8,7) GA10B window (core_storage.py:60-70, :126-187). So the described failure mode is consistent with real code paths — but I could not find a report, log or issue of it anywhere in the tracker, and the GB10/DGX Spark platform named is squarely in the charter's target set. Open tracking issue for this exact class of defect: #266; the detection mechanism that would catch it at export time is #332 (open, mark-yong, "Report unresolved kernel argument address candidates during export"), which #606 also does not mention.
Related work
- #331 (merged 2026-11-20) — introduces the
_warmup_streams/_warmup_poolsdesign and the seed this PR relocates; also fixed #266. The change under review edits #331's code and softens #331's stated invariant (see Key finding 1). #331's review thread is the standing specification for how this area must be evidenced (yatesdr's three rounds;FujitsuPolycom's 4×GB10 export;mark-yong's SM120 runs). - #266 (open, P1,
calvarado2004) — the Xid 31 / silent-aliasing first-capture cuBLAS workspace defect on 4× GB10 DeepSeek V4.1 TP4; #331 only claims "Refs #266" and remains the open umbrella. #606 does not touch it. - #332 (open,
mark-yong) — export-time reporting of unresolved kernel-argument addresses; the diagnostic that would make #606's class of defect self-detecting. Not referenced. - #395 (open) —
CUDAGraph.reset()frees the stream workspace other graphs on that stream use; the co-located lifetime constraint from #331. Not touched. - #425 (merged,
ea756eef, "Order compiled forward warmup by largest CUDA allocation request") and #543 (merged,f377dc85) last shaped the warmup path incapture.py; #559 (3e2fcd27) last touchedcapture_forwards. - #581 (open,
FujitsuPolycom) also editsignition/preparation/capture.py(node-priority flag for exported graphs) — the most likely textual conflict; #394 (open, "Assemble temporary core payloads in the rank export workspace") works the same export-storage area; #605 (open) is the same author's other PR. - No competing or duplicate fix for this specific native-export rejection exists in the local tracker.
Recent activity in the areas
ignition/preparation: Luke Alonso 156 commits / 180 days, Martin Vit 52, Eugene Rakhmatulin 36. tests/preparation: Luke Alonso 204, Martin Vit 34, jasonc 23. Immediately preceding commits to the touched files include a39f6777 (2026-11-28, "Fix silent export corruption in AOT lowering, zero-init downloads, and drafter scope"), c9935887 (2026-11-27, integrated GA10B support — relevant because core_storage.py:60-70 now carries an integrated-GPU address window), 3e2fcd27 (GC deferral, touched capture_forwards), f377dc85 (removed joint kernel tuning), ea756eef (#425), 1eb61e81 (#331). The packet reports no commits on main since 44f59df touching these four files, so there is no merge conflict today.
People
avifenesh is a first-time contributor and is not among the contributors the charter names (@voipmonitor, @original-el8, @lukealonso). Their 180-day record: #605 (open, ForwardCache source hash, 2026-11-29), #567 (closed, resident prefixes on ordinary completion, 2026-11-28), 0 merged. #606 is their second open PR in two days, both in ignition/preparation-adjacent code. The people who own or review this area and who one would expect to be pulled in: mark-yong (author of #331 and #332, Discord myong_acct), yatesdr (standing reviewer of the warmup-workspace contract, ran the GB10 A/B on #331), FujitsuPolycom (independently exported DeepSeek V4.1 on 4× GB10 for #331), calvarado2004 (reported #266 on 4× GB10), Luke Alonso and Martin Vit (commit volume). None of them has engaged on #606, and the author did not link the PR into the #266/#331 thread.
Community
Zero comments, zero reviews, zero reactions, no labels, no CI checks; opened and last updated in the same minute (2026-11-29 16:28). Interest so far: none beyond the description.
Project fit
- Lines up: SM103/SM120/SM121 preparation and GB10/DGX Spark are charter-named targets; the change keeps native export validation intact rather than relaxing it, matching AGENTS.md:182-187 ("Do not remove validation, suppress errors, silently substitute execution paths"); 23 production lines, no flag, config, default or per-model branch, matching "Keep the runtime small and model-agnostic".
- Tension: AGENTS.md:165-169 ("must address … a demonstrated defect") and :194-199 ("Require focused, meaningful validation … Identify missing hardware, inputs, and unrun checks explicitly"). The evidence is a single-GPU, text-only, Qwen3.8 measurement on one host, with multi-rank export explicitly not re-measured; AGENTS.md:500-503 also expects equivalent paths across supported recipes to be inspected.
- Layer question (surfaced, not settled): the root cause is arguably that export allocation discovery treats any undeclared device segment as fatal (#332 is aimed at detecting it). #606 relocates the warmup allocation instead; whether the right fix belongs in
capture.py/core_storage.pyor in the export validation is a maintainer design call. - Not in the restricted-authorship category (kernel/fusion design).
Claims and evidence
| Claim | What backs it | What is missing |
|---|---|---|
| Fixes native export rejection on unified-memory GPUs | The rejection path is real (capture.rs:1331-1380, :1463); GB10 export runs asserted |
No issue, no error text, no command, no log; unreproduced outside the author's host |
| 35 passed, 1 skipped across 5 named test files | Command with FLARE_RUN_CUDA_TESTS=1 is given |
Not runnable here (needs CUDA + flare_heliopause); no CI on the head commit |
End-to-end 75/79-graph Qwen3.8 runtime-core exports succeed on spark-b23d |
Asserted | Recipe/checkpoint live in the external recipes repo; no pointer-scan output (#266's check), no flare run serving replay |
| "Both allocations stay inside declared core mappings" | Asserted for exports only | No test asserts CoreStorage.mappings coverage; the GPU test uses a fake storage and a plain MemPool (Key finding 4) |
| Non-export capture behaviour preserved | Verified by reading capture.py:118-122; the 2-arg call and all CPU stubs still match |
— |
| Retained memory implication | Not stated | #331's reviewer required the retention cost be stated; here the cost is moved from module pool to CoreStorage and not mentioned either way |
Reach
Export/preparation path only, on integrated (unified-memory) GPUs; each rank owns an independent CoreStorage, so multi-rank behaviour is independent by construction (as the description says). Adds one long-lived MemPool per CoreStorage (one fewer module pool in export processes), changes exported allocation content slightly via unused_ranges() → inactive/zero_ranges, and touches no CLI flag, config default, dependency or metadata schema. Documentation is not updated (docs/preparation-development.md:88-91).
Process
Open and self-declared ready for review; one commit; no CI checks; no reviews; no labels. The description satisfies AGENTS.md's four-part content requirement (why / what changed / claimed benefit / evidence + limitations, AGENTS.md:114-140) and carries the mandatory Discord: line (AGENTS.md:142-153). Signed-off-by could not be verified from here; it is a recurring blocker in this area (yatesdr raised it on #331 and on #332).
Open questions
- Is the native-export rejection reproducible, and on which stack? Does an export of a core produced before this change still carry the unowned segment (i.e. is a re-export required)?
- Does the warmup seed landing in a
_preparation_poolssegment change the exported byte content in a way reviewers must approve (runtime_core.py:300-301)? - Is reversing #331's "outside any caller-owned pool" invariant an accepted design change, and should #331/#266 be updated to say so?
- Should the validation instead be a real-
CoreStorageGPU test plus the #266 pointer scan on a 4-rank GB10 export (what #331's reviewer required)? - Why is the
_warmup_poolattribute created viagetattrrather than declared in__init__like_retention_pool(core_storage.py:73)?
Not found / not relevant: no issue, discussion, or benchmark in the tracker corroborates the specific GB10 export failure; no competing fix; #410, #432, #420, #404, #297, #246, #509, #479, #474, #465, #427, #408, #262, #245, #222, #122, #110 only overlap at file level and are not on this topic.