Case file: PR #732 — helios,heliopause,ignition: add FP8_E4M3_GLOBAL single-plane engram table support
https://github.com/NVIDIA/hyperflare-inference/pull/732 · author yatesdr (COLLABORATOR, Discord D-Rock) · base main, head 078b043, branch point cc0a49d · open, ready for review, opened and last updated 2026-12-04 · 10 files, +565/−145 · 0 reviews, 0 comments, 0 labels, CI pending.
Key findings
Things a reader could not learn from the description:
- The description's enum numbering is wrong, and wrong in a way that reveals the PR is stacked. The body says it adds
FP8_E4M3_GLOBAL = 3"alongsideNVFP4_E4M3_GLOBAL = 1andBF16 = 2". The code hasUNSPECIFIED = 0; FP8_E4M3_E8M0 = 1; NVFP4_E4M3_GLOBAL = 2; BF16 = 3; FP8_E4M3_GLOBAL = 4athelios/proto/core.proto:269andhelios/proto/runtime_core.proto:665. Every tag in the description is off by one because #664 tookBF16 = 3on 2026-12-04 03:51, before this PR. The numbering describes a pre-#664 world and was not updated at rebase. - The PR is a stacked follow-on to #664, not a standalone feature. #664 introduced the
Planes { weights, scales: Option<Plane> }shape,schema::engram_encoding_has_scales/engram_scales, andBF16 = 3. #732 adds one more single-plane encoding through that exact seam: it introduces no new export code at all and no new decoding machinery — just one match arm and one validation branch. - It also tightens BF16 validation, without saying so.
helios/src/core/schema.rs:561-571now pins row size for bothBf16(embedding_width * 2) andFp8E4m3Global(embedding_width), enforced for shared planes at 578-586 and per-shard at 622-630. #664 shipped BF16 with no such check. Correctly-exported BF16 cores are unaffected (export derives the size the same way), but this is a real behaviour change to an already-merged encoding and is not mentioned in the body. - Two of #664's three review blockers are deliberately answered; the third (owner approval) is not. #664 carried "unapproved core-format contract" and "no linked producer / no NVFP4 replay" through three Autobot review rounds and merged anyway. #732 links a recipe PR (
local-inference-lab/hyperflare-recipes#165) and claims anNVFP4_E4M3_GLOBALbackward-compat replay — precisely those two. It records no owner approval, anddocs/design-review.md:22-26requires prior explicit owner approval for a new operation contract ("even if it reuses a graph kind or enum value"). - Its stated use case is gated behind an unrelated open PR on SM120. Open #731 (avifenesh, first-time contributor, 2026-12-04 18:49) blocks Qwen4-35B-A3B export on SM120 (flashinfer pin lacks the 2:1 GDN value-head ratio). #732's own hardware run is SM121, so it did not need #731 — but SM120 users cannot reach the checkpoint #732 exists to serve without it.
- Tooling caveat for anyone re-reviewing this PR:
pr_diffhere diffs against a stale localmainand shows #664 and #711's merged work (BF16, IDENTITY,external_extents,Planes) as if #732 added it;search_historyerrors out on a missing commit. The real delta must be read fromref: pr/732.
1. The change — what it does, in plain terms, and how big
Offloaded engram / PLE tables are giant embedding tables kept out of VRAM and gathered by row at runtime. This PR teaches the format one more way to store a row: single-plane FP8 E4M3, one byte per element, with one shared FP32 tensor scale for the whole table instead of per-block scales.
The mechanism is small and reuses #664's seam:
- Format tag (additive).
helio/proto/core.proto:269(not opened) andruntime_core.proto:665appendFP8_E4M3_GLOBAL = 4; existing values untouched ⇒ backward wire compatible. Doc comment atruntime_core.proto:664. - Validation (
helios/src/core/schema.rs):engram_encoding_has_scales(443-457) putsFp8E4m3Globalin the no-scale-plane group;engram_scales(459-471) rejects a scales plane for it;validate_engramrejects a non-emptyscale_bufferorscale_block != 0(504-505), requiresglobal_scalefinite and > 0 (510-512), and pins row bytes (561-571, enforced 578-586 shared / 622-630 partitioned). - Decode (
helios/src/runtime_core/engram.rs:159-167): yields(width, block=0, row_bytes=width, scale_bytes=None); falls through toErr("invalid n-gram encoding or global scale")at 168; single-plane bindings rejected at 204-206. - Export (
heliopause/src/export/core.rs): routes throughschema::engram_scales(108, 131, 421, 436, 1556, 1598) and therefore inherits single-plane export — omitted-scalesfile and hardlink reuse — with no FP8-specific code path.Fp8E4m3Globalappears only in the test fixture (4570, 4583). - Ignition (
ignition/components/ngram_delivery.py):_lookupat 105-114 andPreparedPLELookup.__init__at 136-144 branch three ways onquant_mode:"bf16"→.view(torch.bfloat16), no scales;"fp8_e4m3_per_tensor"→.view(torch.float8_e4m3fn)withtable.scaleasweight_scaleandNoneasweight_scale_2; else (nvfp4_group16) → uint8 rows, fp8 block scales asweight_scale,table.scaleasweight_scale_2.self.scalesisNonewhentable.scales is None(line 132). - Docs:
docs/core-format-design.md:94-95("single-plane encodings such asBF16andFP8_E4M3_GLOBALomit the-scalesfile");helios/manifest.md:526-528(rawembedding_width-byte rows, no scale plane, finite positiveglobal_scale). Both consistent with the code. - Tests:
helios/src/core/schema.rs:2068validates_single_plane_fp8_global_engram_table;helios/src/runtime_core/engram.rs:1162fp8_global_single_plane_tables_decode_shared_and_partitioned;heliopause/src/export/core.rs:4525-4636(8 tables across NVFP4/BF16/FP8, shared + partitioned,installed.len() == 12); newtests/components/test_ngram_delivery.py(136 lines) parametrized over all three modes with anmake_fxtrace.
Size: 10 files, +565/−145 per pr_files. Composition: runtime_core_pb2.py +112/−112 (generated descriptor blob rippling from one enum value — not a protoc bump), schema.rs+engram.rs +207/−12, test_ngram_delivery.py +135/−0, core.rs +74/−7, ngram_delivery.py +27/−9, protos +4/−2, plus two doc one-liners.
Description says, change does not do / does undeclared: the wrong tag numbers (finding 1); the BF16 tightening (finding 3); nothing else material — the description's module list matches the files. It does not mention that no FP8-specific export code exists, i.e. that #664's seam carried this for free.
2. The why — the problem, its history, how widely wanted
Stated problem: offloaded engram/PLE tables supported two-plane NVFP4_E4M3_GLOBAL, two-plane FP8_E4M3_E8M0, and — since #664, the same day — single-plane BF16. Checkpoints local-inference-lab/Qwen4-35B-A3B-NVFP4 and eidonix/Qwen4-35B-A3B-MXFP8 store 160M-row PLE tables as single-plane FP8 E4M3 with a shared FP32 tensor scale, so they could not be exported or served natively.
The demand is days old, not long-standing. All Qwen4-35B-A3B engram work is 2026-12-04:
- #716 (merged 2026-12-04 02:34, lukealonso) — "helios: derive NVFP4 engram row and scale widths from embedding_width"; first Qwen4-35B-A3B engram support (
ple_embed_dim=2048, 16 heads,embedding_width=128, 64 weight + 8 scale bytes/row). Companion recipes PR #154. - #731 (open 2026-12-04 18:49, avifenesh) — flashinfer pin for the 2:1 GDN value-head ratio.
- #723 (open, lukealonso) — its thread has FujitsuPolycom reporting live
flare runon a signedQwen4-35B-A3B-NVFP4core. - #732 is the third Qwen4-35B-A3B engram PR in ~24 hours.
search_itemsfinds no pre-existing issue asking for FP8 single-plane engram.
Longer-standing context exists only for the engram subsystem generally: #267 (Engram & shared Engram tables — closed not_planned, but named in the charter roadmap), #334 (open, read-ahead), #535 (open, approval for an advisory mailbox), #554 (open draft, RDMA engram store). The FP8 encoding itself has no such history — it is a same-week consequence of #664 making single-plane tables possible at all.
3. Related work
- #664 (merged 2026-12-04 03:51, kbenkhaled, CONTRIBUTOR; +1718/−554 over 23 files; labels area:engram, area:memory, enhancement, performance, triage:review) — the direct stack base. It introduced
BF16 = 3,EngramHash.Method.IDENTITY = 3,Planes{weights, scales:Option},engram_encoding_has_scales,engram_scales, rank-ordered shard contiguity validation,Index::shares_delivery_with,--embedding-table-resident-scales, and the protoc-36.2runtime_core_pb2.pyregeneration. Motivation: Gemma 4 E2B/E4B PLE tables, 4.38–5.25 GiB raw BF16, on unified-memory GPUs. #732 is the second consumer of that seam, not a new design. - #711 (merged, lukealonso) — AsyncTransfer primitive + runtime-sized device pools; added
RankBody.external_extentsandAllocation.sizing.capacity == 2, both of which show up as "#732 additions" only because of the stale diff base. #732 sits on top of it. - #716 (merged, lukealonso, 2026-12-04 02:34) — same file
helios/src/runtime_core/engram.rs; #732'sFp8E4m3Globalarm sits immediately after #716's width-derived NVFP4 arm (engram.rs:141-167). #732 depends on #716. - #723 (open, lukealonso) — 6 files in common (both protos,
schema.rs,export/core.rs,manifest.md, pb2). Unrelated subject (2-way codec green contexts), real textual conflict risk. - #731 (open, avifenesh) — gates the same recipe on SM120 (see finding 5).
- #566 (merged, voipmonitor) — advisory lookahead prefetch; the mailbox #732's tables can use. #590 (merged, lukealonso), #539 (merged, FujitsuPolycom), #479 (merged, voipmonitor), #220/#219 (merged, nero-) — earlier engram work, unaffected.
- #334 (open, javieratomic) and #554 (open draft, ateska) both touch
engram.rs; no semantic conflict with an encoding addition. - #694 (open, same author) — selene/helios spill profitability gate; different subsystem, no subject overlap.
- Competing / superseding: none found. No other PR proposes an FP8 single-plane engram encoding; #732 is the only implementation of this idea. It undoes and reverses nothing.
4. Recent activity in the touched areas
search_history cannot read this repo's history (missing object c513e46a), so this is reconstructed from related_items, items_touching and the items themselves.
The engram area merged four PRs in the three days before #732: #711 (AsyncTransfer), #664 (single-plane BF16 + IDENTITY), #716 (Qwen4 widths), on 2026-12-04 alone #716 landed at 02:34 and #664 at 03:51. #732 therefore builds on rather than conflicts with recent work: it is the deliberate second consumer of a seam #664 introduced hours earlier, applied to a model #716 had just taught the decoder about. It reverses nothing. Its only friction is textual — concurrent edits to core.proto, runtime_core.proto and schema.rs from #723 and to engram.rs from #334/#554 will require rebases, not semantics.
Leads judged not relevant: #694, #347/#348/#349 (author background only), #618 (proto/core.rs overlap, predates), #586/#587/#580/#581/#652 (disjoint subject), #314 (proto-only).
5. People
yatesdr— COLLABORATOR; 84 merged / 11 closed / 4 open in 180 days; merged-PR areashelios/src(38),docs(37),selene/src(33),selene-manager/src(26),selene-manager/tests(21). Prolific and core-adjacent. Not the author of the single-plane seam — that was kbenkhaled (#664); yatesdr is its second consumer.kbenkhaled— built the seam (#664).lukealonso— the project owner named indocs/design-review.md:22-23, and directly active in this exact code and this exact model: authored #711, #716 and open #723. The approval this PR arguably needs is the one he grants or withholds.- Area regulars (from
items_touching helios/src/runtime_core/engram.rs): #554 ateska, #334 javieratomic, #664 kbenkhaled, #716/#711/#590 lukealonso, #566/#479 voipmonitor, #539 FujitsuPolycom, #220/#219 nero-. A crowded, churning subsystem with three other open PRs. - Engagement on #732 so far: none — no comments, reviews, labels or reactions.
6. Community
Nothing on #732 itself. For scale of interest in the predecessor: #664 drew 4 discussion entries — three full Autobot reviews 2026-12-01 → 2026-12-03 with blockers, walkthroughs and pre-merge checks — and was open ~3 days. #716 drew 1 (case-file announcement) and merged in 11 minutes; #731 drew 2 within ~40 minutes; #723 has human participation (FujitsuPolycom). #732 has drawn no bot review, no human review, no labels — consistent with being hours old with CI pending, but it means neither of #664's blockers has yet been adjudicated here.
Community signal on the underlying contract-approval channel: issue #535 (tastyrice90, open since 2026-11-26, no replies) is a contributor asking for exactly this class of approval and getting no answer. #732 — from a collaborator with 84 merged PRs — did not open such a request.
7. Project fit (charter, docs)
Where it lines up:
- Charter line 37: new formats "must list supported checkpoints from an official or widely used source, prove they export and serve cleanly from the PR branch, and support more than a single checkpoint (#74)." The body lists two checkpoints, satisfying "more than one". Caveat: both are first-party —
local-inference-labis the project's own org andeidonixis the project's own vendor org — so they are not independent evidence of "official or widely used". - Charter line 42: compatibility across layouts and hardware, "verify that existing data, artifacts, and exported cores still load." Addressed by the additive tag and the claimed NVFP4 replay, and by the explicit limitation that TP>1 is CPU-unit-tested only.
- Charter line 21/22: SM121 single-host serving is on the roadmap; the author's hardware run is SM121.
Where it does not line up, or is tension:
docs/design-review.md:22-26requires prior explicit owner approval to introduce a captured-graph operation family, and states "A new operation contract requires approval even if it reuses a graph kind or enum value." Whether anEngramTable.Encodingaddition is a "new operation contract" is arguable — it reuses the existing gather/mailbox contract and only changes element interpretation — but the schema is signed and the surface is the same one Autobot flagged for #664. No approval is recorded. Precedent cuts both ways: #664 merged without it (working precedent that encodings land), while #535 shows the gate is otherwise live and unanswered.- Charter line 54 lists "Engram & shared Engram tables (#267)" as "A broader design, scoped as its own project" — i.e. the subsystem is deliberately not yet chartered; #732 adds to it incrementally, which is consistent with what #664/#716/#711 did.
docs/core-design.md:607(not opened) still describes PLE lookup as "b12x NVFP4 PLE embedding" — not updated here (nor by #664), so the format doc set is now internally inconsistent about which encodings exist.
8. Claims and evidence
Claimed and plausible: five test invocations with specific counts — heliopause --lib payload_export_tests 33 passed; helios --lib core::schema::tests 18 passed; helios --lib runtime_core::engram 10 passed; flare --lib 247 passed / 4 ignored; pytest tests/components/test_ngram_delivery.py 3 passed. Each target and the 3-case parametrization exist in the tree (schema.rs:2068, engram.rs:1162, core.rs:4525-4636, test_ngram_delivery.py:29-36), so the counts are consistent with the code.
Claimed and not verifiable from the repo: live single-GPU NVIDIA DGX Spark (GB10, SM121) ignition export plus native flare run with both FP8_E4M3_GLOBAL (disk and RAM backing) and NVFP4_E4M3_GLOBAL cores. No logs, artifacts, commands or metrics — unlike #664 (TTFT/ITL/gather counts) and #716 (commands and results). It is nonetheless the right shape of evidence: replaying a pre-existing NVFP4 core is exactly the backward-compatibility gate Autobot held against #664 across three rounds, so this reads as a direct, deliberate answer.
Not claimed, correctly: no performance or memory numbers. The body says tables "could not be exported or served natively" — a capability claim, not a speedup claim, and it does not overclaim.
Claimed limitation, honestly stated and materially relevant: "Partitioned TP>1 FP8_E4M3_GLOBAL export and decode are covered by CPU unit tests rather than multi-GPU hardware execution," and the full helios lib suite's template-fixture and /dev/shm/selene tests were not run. Per docs/design-review.md:116-123, 247-251, disclosing runnable checks as limitations does not waive them.
Evidence gap about the dependency, not the PR: the quant_mode strings "bf16", "fp8_e4m3_per_tensor", "nvfp4_group16" appear only in ngram_delivery.py and the new test — nowhere else in this repo. They come from external b12x (b12x.sequence.ple_embedding), pulled via pyproject.toml:25 flashinfer-python[b12x], which is not pinned to a commit. The three-way branch therefore depends on an externally-owned, in-repo-unverifiable string vocabulary. #664's bf16 branch used the same pattern, so the convention is established, but the new fp8_e4m3_per_tensor name has no in-repo authority. Relatedly, no in-repo producer emits FP8_E4M3_GLOBAL: ignition/components/engram.py still only handles the two-plane E8M0 path (_compact_lookup Triton kernel hardcodes *256 + col and *8 at lines 42-43; lookup_op(... weight.view(torch.float8_e4m3fn), scales ...) at line 58). The PLE path in ngram_delivery.py is the only producer.
9. Reach
- Users/operators: only those serving Qwen4-35B-A3B–family checkpoints with FP8 E4M3 PLE tables. No config keys, CLI flags or defaults change;
--embedding-table-resident-scalesis inherited from #664 unchanged. - Compatibility: purely additive at the wire level — tag
= 4appended,engram_scalesreturnsOk(Some(..))for the two two-plane encodings exactly as before,Unspecified/unknown still rejected with the same message. But see finding 3: BF16 validation is tightened, so a mis-sized BF16 core would now be rejected at load where #664 would have accepted it. Narrow, and only reachable by a buggy or external producer. - Dependencies: none added.
runtime_core_pb2.pyis regenerated content, same protoc, not a version bump. - Deployment: no packaging, workflow or release changes. No effect on non-PLE models, K/V cache, or TP layouts beyond partitioned validation.
- Docs: two files updated coherently;
docs/core-design.md:607(not opened) left stale (see §7).
10. Process
Open and marked ready for review (not draft). Opened and last updated 2026-12-04 — hours old at the time of this case file. Head 078b043, base branch point cc0a49d. CI pending on the head commit; no results reported in the body either way. No reviews, no comments, no labels, no reactions. Cross-repo companion local-inference-lab/hyperflare-recipes#165 is stated in the body and is not verifiable from this repository.
Open questions / what could not be found
- Does
EngramTable.Encodingcount as a "new operation contract" underdocs/design-review.md:22-26? If yes, no approval is recorded and no approval was recorded for #664 either. - Is
b12x'sfp8_e4m3_per_tensormode already shipping? Nothing in this repo pins, documents or tests that name outside the two files this PR touches. - Does #732 export/serve on SM120 without #731? Only SM121 was claimed.
- Are
local-inference-lab/Qwen4-35B-A3B-NVFP4andeidonix/Qwen4-35B-A3B-MXFP8"official or widely used" in the charter line 37 sense? Both are first-party orgs; no third-party checkpoint is listed. - Does BF16 export in #664's code path produce exactly
rows * embedding_width * 2bytes for every case (i.e. is the new tightening a no-op for well-formed cores)? The export test fixture (core.rs:4529, width 8,bf16_shared_weights.len()) suggests yes, but no test asserts the tightened BF16 rejection directly. - Repo history could not be read (
search_history→ missing objectc513e46a), andpr_diffdiffs against a stale base; commit-level provenance above is reconstructed from item metadata, not from commit logs.
Orientation-packet leads
All followed. #664, #566, #711, #586, #587, #580, #581, #652, #618, #694, #347, #348, #349, #535, #334, #554, #267, #314, #719-family and #723/#716/#731 addressed above; the "recent activity not available / git error" block is explained in §4 and §10 (broken mirror), and the commit list for the touched files is empty on real main because these files were changed by PRs merged into main after the packet was computed.