Case file — PR #733 helios,heliopause,ignition: add FP8_E4M3_GLOBAL (=4) engram table encoding
Author nero- (CONTRIBUTOR), branch into main, head 3198eae, 11 files, +499/−138, opened 2026-12-04, ready for review, 0 comments, 0 reviews, no labels, no CI checks on the head. https://github.com/NVIDIA/hyperflare-inference/pull/733
Key findings
- A near-identical competing PR exists, opened 29 minutes earlier. #732 "helios,heliopause,ignition: add FP8_E4M3_GLOBAL single-plane engram table support" by yatesdr (COLLABORATOR, labels
area:engram/enhancement/triage:review, +565/−145, 10 files) adds the sameFP8_E4M3_GLOBAL = 4tag for the same model, touching 9 of #733's 11 files. The mechanical difference: #732 extends the existingflare::staged_pleop with optional scale tensors and selects onquant_mode; #733 registers a new custom opflare::staged_ple_fp8. #732 already carries an Autobot review (Changes Requested, Low risk, written 19:54 — before #733 existed, so its "no competing implementation" duplicate check was stale). #733 has had no engagement at all. - The description misstates the baseline it is changing. It claims the enum was
NVFP4_E4M3_GLOBAL = 1,FP16 = 2,BF16 = 3. Reality atmain:helios/proto/core.proto:257—UNSPECIFIED = 0; FP8_E4M3_E8M0 = 1; NVFP4_E4M3_GLOBAL = 2;, withBF16 = 3added by merged #664. There is noFP16encoding anywhere in the repository, yet it is asserted three times (proto "before", Helios "keeps FP16 and BF16 strictly unscaled", exporter "recognized … FP16 …").FP8_E4M3_E8M0 = 1is never mentioned. - Part of the description describes code that does not exist. The "Heliopause exporter" bullet is about
parse_engram_encoding, which is not present anywhere in the repo (search_codefor the exact name: no matches; no encoding-name string parsing inheliopause/). The only FP8 additions inheliopause/src/export/core.rsare test fixtures (:4569,:4582): rows 2,embedding_width8,global_scale0.015625, no scales. #664 had already made the scale plane optional viaschema::engram_scales, so the exporter needed no production change. The stated "requiresscale_block == 0, forbids scale buffers/shards, validates finite positiveglobal_scale…" exporter behaviour is #664's, not this PR's. - The PR adds a new captured-graph operation contract with no recorded owner approval.
flare::staged_ple_fp8(ignition/components/ngram_delivery.py:115-129) is a newtorch.library.custom_op.docs/design-review.md:22-26: "Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso… A new operation contract requires approval even if it reuses a graph kind or enum value." The charter says the same ("Captured-graph op contracts: Adding a new one—even if it reuses an existing graph kind—requires owner approval before you write it"). The PR concedes approval is needed but the thread is empty. #664 was blocked for exactly this (#664 Autobot Blocker 1); note #711 recorded explicit Principle 1 approval in-thread for itsExecution.async_transferscontract — the pattern #733 does not follow. - The description also misdescribes Helios. "Before:
schema.rsrejected unknown encodings and treated single-plane tables as forbiddingglobal_scale" — that single-plane BF16 path was added 15 hours earlier by merged #664 (2026-12-04 03:51), and #733 extends it by one enum variant. The description presents #664's work as pre-existing baseline while attributing it, in the "after" column, to itself. - Undeclared regression of the generated protobuf binding.
ignition/preparation/runtime_core_pb2.pyat #733's head declaresProtobuf Python Version: 7.35.1; atmainit is7.36.1; atpr/732it is7.36.2. #733 therefore re-vendors the generated file with an older protoc than the branch it merges into (the description does say "protoc 35.1", but not that this downgrades what main carries), producing a 109/109-line rewrite for a two-line schema change and a guaranteed textual conflict with either #664's or #732's gencode. - Verification is below the stated bar but broader than most.
docs/design-review.md:180-188requirescargo test --locked --releaseon every affected crate andpytestontests/cli,tests/preparationand component suites. #733 reportscargo test --lockedwithout--releaseand name-filtered (--lib engram55 passed,--lib schema21, heliopause--lib engram7). It reports notests/components/suite (which is where #732 put its Python tests). Conversely it does run the prior-core serving replay (Inkling-2-Mini, no re-export) that Principle 13 (:116-123) requires and that #664 was blocked on — one of the two gaps #664 had is closed here, the other (approval/CI) is not.
The change — what it does, in plain terms
New signed-format enum value, plus the runtime plumbing to load such a table.
- Proto (
helios/proto/core.proto:267-269,helios/proto/runtime_core.proto:664-665): appendsFP8_E4M3_GLOBAL = 4with a one-line comment, alongside theBF16 = 3that #664 added. Wire-additive:2 +/− 1lines per file, existing tags untouched. Full enum nowUNSPECIFIED=0; FP8_E4M3_E8M0=1; NVFP4_E4M3_GLOBAL=2; BF16=3; FP8_E4M3_GLOBAL=4. - Helios schema (
helios/src/core/schema.rs:445-456):engram_encoding_has_scalesreturnsOk(false)forBf16 | Fp8E4m3Global,Ok(true)forFp8E4m3E8m0 | Nvfp4E4m3Global, error otherwise (so unknown encodings still reject,:454). Per-table validation: single-plane tables reject any scale buffer/scale_block != 0("single-plane engram table cannot carry scale metadata"), BF16 additionally requiresglobal_scale.to_bits() == 0, FP8 requires finite and > 0.:560-621addssingle_plane_row_bytes(embedding_width * 2for BF16, generalizing #664'sbf16_row_bytes;embedding_widthfor FP8) to pin exactrows * row_bytesplane and shard sizes. - Helios decode (
helios/src/runtime_core/engram.rs:159-167): new match armFp8E4m3Global if global_scale.is_finite() && > 0.0 && embedding_width > 0→(embedding_width, 0 /*block*/, embedding_width /*row_bytes*/, None /*no scale bytes*/); otherwiseinvalid("invalid n-gram encoding or global scale"). - Ignition (
ignition/components/ngram_delivery.py):flare::staged_ple_fp8custom op (:115-129,mutates_args=("out","timings","barrier_output"), withregister_fake) callingstate.run_lookup(weight.view(torch.float8_e4m3fn), scale, None, ids, count, out, …);PreparedPLELookup.__init__now raisesValueErrorforquant_modeoutside("nvfp4_group16","fp8_e4m3_per_tensor")(:137-139), setsis_fp8(:139),self.scales = Nonefor FP8 (:144), plans viainvocation_from_tensors(weight_scale_2=None)(:148-161), and dispatches in__call__(:206-213). The pre-existingflare::staged_ple(:98-106) is untouched. - Tests:
helios/src/runtime_core/engram.rs:1161-1264— contiguous width-160 table assertingplanes.scales.is_none(), five negatives (scale_block 16,global_scale0.0/−1.0/NaN/INFINITY,embedding_width0, scale_buffer/scale-span present) and a 2-rank partitioned decode assertingpartition == Some(rank)and rejection of a shard carrying scales.helios/src/core/schema.rs:2067(fixture:2104) accepts the FP8 table.tests/preparation/test_embedding_table_handoff.py:92-124assertsruntime_core_pb2.EngramTable.FP8_E4M3_GLOBAL == 4, that the op's write-alias set is exactly{"out","timings","barrier_output"}and not"frame"(:101-102), and thatquant_mode="bf16"raises (:116). - Docs:
docs/core-format-design.md:94(single-plane encodingsBF16,FP8_E4M3_GLOBALomit the-scalesfile),helios/manifest.md:526,docs/cli-design.md:815. - What the Python test does not do (verified): it never executes the op, never checks the cast/scale math, and passes
metadata=Noneso construction cannot reach the plan path. It is a schema/validation test, not a behavioural one.
The why
- Problem: models with per-tensor FP8 E4M3 auxiliary embedding tables (the PR names Qwen4-35B-A3B's 19.1 GiB Per-Layer Embedding table) have no lossless single-plane wire encoding;
NVFP4_E4M3_GLOBAL = 2needs 4-bit weights plus a block-scale plane, and BF16 (= 3, added the same day by #664) doubles storage. Without a new tag, exporting such a table either fails validation or forces lossy requantization. - Precedent for the class of problem: #664 (merged 2026-12-04 03:51, kbenkhaled) reports exactly this shape for Gemma 4 E2B/E4B's BF16 PLE tables — "4.38 GiB … to 5.25 GiB … Keeping them resident leaves little KV-cache headroom" — and added the single-plane
BF16mechanism #733 leans on entirely. - The target model is under active work elsewhere: #716 (merged 2026-12-04 02:34, lukealonso) derives NVFP4 engram row/scale widths from
embedding_widthciting "Qwen4-35B-A3B usesple_embed_dim=2048across 16 heads (embedding_width=128, 64 weight bytes and 8 scale…)"; #731 (open, avifenesh) is a flashinfer pin because "ignition exportof the Qwen4-35B-A3B recipe cannot complete". So the demand is current, not long-standing: no issue in the tracker asks for an FP8 PLE encoding. - Engagement history: none. 0 comments, 0 reviews, no reactions, no labels; nothing in the tracker previously requested this specific encoding (searches for "engram table encoding fp8 e4m3 global" return only #732, #733 and #664).
Related work
- #732 (open, yatesdr) — direct competitor, 29 min earlier. Same enum value 4, same 9 files (
core.proto,runtime_core.proto,schema.rs,engram.rs,heliopause/src/export/core.rs,manifest.md,core-format-design.md,ngram_delivery.py,runtime_core_pb2.py). Divergence: #732 folds FP8 into the existingflare::staged_ple/PreparedPLELookupwith optionalscales/scale(no new op), tests in a newtests/components/test_ngram_delivery.py(not opened) (+135); #733 branches to a new op, tests intests/preparation/test_embedding_table_handoff.py. #732 has labels and an Autobot review; #733 has neither. If #732 merges first, #733's distinct op is a redundant second contract for the same semantics; if #733 merges first, #732's enum line and PB2 regeneration collide. Both list a companion recipe PR (hyperflare-recipes#165 for #732, #167 for #733) and both claim "merge first". - #664 (merged) — the baseline this builds on:
Planes { weights, scales: Option<Plane> }, optional scale plane inroles()/validate_ranks()/core_engram(),engram_scales/engram_encoding_has_scalescentralization,Table.partition,-scalesomission docs, and the PB2 v7.36.x regeneration. #733 is strictly additive on it; it also re-tightens the same validation surface #664 introduced. #664's two blocking gates were (a) recorded owner approval for new contract enums and (b) CI plus a prior-core serving replay — #733 supplies (b) and not (a) or CI. - #716 (merged) — adjacent decode arm. Its NVFP4 arm sits immediately above #733's new arm in
runtime_core/engram.rs; #733's arm reuses its(embedding_width, block, row_bytes, Option<scale_bytes>)shape. - #711 / #720 (merged) — the base the branch is stacked on (
Execution.async_transfers,external_extents); no conflict, mechanical ground only. #711 is also the example of correctly recorded Principle 1 approval. - #723 (open, lukealonso) — 6 files in common including
core.proto,runtime_core.proto,schema.rs,engram.rs. Merge order decides who rebases; #733 is the smaller, later branch. - #554 (open draft, ateska), #334 (open, javieratomic) — Engram read-ahead / row-cache work, same
engram.rs/reader files; orthogonal semantics, mechanical overlap only. #566, #586, #590, #479, #539, #618 (all merged) — earlier Engram reader/export churn, background only. - #731 (open) — flashinfer pin so Qwen4-35B-A3B export completes; the same recipe pipeline #733's companion PR targets, no file overlap.
- hyperflare-recipes #167 (this PR's companion) and #165 (#732's) — external repos, not readable here.
Recent activity in the touched areas
- The area is the hottest in the repo right now.
helios/src/runtime_core/engram.rsandhelios/proto/core.proto, newest first: #733, #732, #554, #334, #664 (merged 2026-12-04 03:51), #716 (merged 2026-12-04 02:34), #711, #590, #566, #539, #479, #220, #219. Two Engram merges landed in the ~15 hours before #733 opened, and two competing PRs opened 29 minutes apart that evening. - #733 builds on, and does not reverse, that work: its decode arm sits beside #716's, its schema checks extend #664's
engram_encoding_has_scales/engram_scales/single-plane byte pinning, itsPlanes/Table.partitioncome from #664, itsexternal_extentsfixtures from #711/#720. No commit on the default branch since #733 branched (cc0a49d) touches its files. - Caveat for anyone rebasing or diffing: the
mainref visible to the local tooling is behind the PR's stated base, so whole-PRpr_diffoutput is contaminated with already-merged #664/#711/#720 and unrelated files. The authoritative change set ispr_files: 11 files, +499/−138. Several "before" lines in the description may be read off that contaminated diff.
People
- Author nero-, CONTRIBUTOR, GitHub association not maintainer; Discord
nero. Last 180 days: 5 merged (#641, #635, #433, #220, #219), 4 closed (#518, #467, #161, #118-adjacent), 1 open issue (#118). Their merged areas:ignition/preparation(3),tests/preparation(3),helios/src(2),ignition/recipes(2),tests/cli(2). Most relevant credentials: #220 "DeepSeek V4.1 Flash: TP6 preparation with per-rank Engram partitions" and #219 "Helios: load partitioned Engram tables on rank-selective package copies" — #733's partitioned-shard coverage builds directly on that. Not in the charter's priority-contributor list (@voipmonitor,@original-el8,@lukealonso), so the "judged on its merits" clause applies rather than extra weight. - Competing author yatesdr is a COLLABORATOR, which affects who is likely to be asked to reconcile the two.
- Who owns this area: lukealonso (repo owner; #716, #711, #720, #723, #590), kbenkhaled (#664), voipmonitor (#566, #479), FujitsuPolycom (#539, and a reviewer comment on #723), javieratomic (#334), ateska (#554). No human has engaged with #733.
Community
Nothing: 0 comments, 0 reviews, 0 reactions, no labels, no linked issue. #732 by contrast drew an Autobot review within 90 minutes and carries triage labels. There is no maintainer statement anywhere on whether a new enum tag or a new op is the preferred shape, and no design acknowledgment to point to.
Project fit
Aligned:
- The change is at the shared, model-agnostic layer — a wire-format tag plus generic single-plane handling, no per-model branch — which matches the charter's "Keep the runtime small and model-agnostic… shouldn't accumulate per-model branches (#267, #334)".
- It is on the roadmap: charter roadmap "Engram & shared Engram tables (#267): A broader design, scoped as its own project", and issue #267 (closed 2026-11-19) is the design-review record for Engram work.
- It preserves wire compatibility in the backwards direction: tags 1–3 keep their numbers and layouts; a prior-core serving replay is reported.
- Description has the four parts the charter asks for (why, what changed, claimed result, evidence), with a Discord handle per
docs/design-review.md:163-169.
Tensions:
- New captured-graph operation contract without owner approval — charter "Captured-graph op contracts" and
docs/design-review.md:22-26; there is no recorded approval, and the PR itself says one is needed. This is the sharper of the two contract issues, because the enum alone would be covered by #664's precedent while the new op is exactly the case the rule names. - One checkpoint. Charter: "New model recipes, aliases, or formats: Must list supported checkpoints … prove they export and serve cleanly from the PR branch, and support more than a single checkpoint (#74)." #733 names one checkpoint (Qwen4-35B-A3B FP8 PLE); #732 names two (
Qwen4-35B-A3B-NVFP4,Qwen4-35B-A3B-MXFP8). - Verification layering.
docs/design-review.md:180-188asks for--releasefull crate suites and the component suites;:247-251says disclosing runnable CPU checks as limitations does not waive them. #733 discloses unrun checks (Windows I/O ring, SM103, multi-rank TP, helios-lifecycle) but does not run the required release-mode full suites. - Forward compatibility for operators: an older engine rejects
encoding = 4cores outright (schema.rs:454→ "engram table has no encoding"), so any core exported with this PR is one-way — it cannot be served by earlier binaries. Expected for a new format, but it means the enum tag is a servicing commitment, not just a parse branch.
Claims and evidence
| Claim | Backing | Verdict |
|---|---|---|
Adds FP8_E4M3_GLOBAL = 4 preserving tags 1–3 |
core.proto:267-269, runtime_core.proto:664-665, PB2 test asserting 4 |
Verified |
Helios accepts single-plane FP8 with positive global_scale, rejects scale metadata, keeps BF16 unscaled |
schema.rs:445-456,560-621; engram.rs:159-167; negatives in engram.rs:1161-1264 |
Verified |
| Contiguous and partitioned layouts | 2-rank decode test engram.rs:1224-1260 (shard carrying scales rejected) |
Verified on CPU only |
Heliopause "parses FP8_E4M3_GLOBAL", requires scale_block == 0, forbids scale shards/buffers, validates scale/width, publishes single-plane weights/engram-*-weights.safetensors |
No such production code; parse_engram_encoding does not exist; only test fixtures at core.rs:4569,4582 |
Not supported by the diff (behaviour comes from #664) |
"Before: NVFP4_E4M3_GLOBAL = 1, FP16 = 2, BF16 = 3"; "keeping FP16 and BF16 strictly unscaled" |
No FP16 encoding exists anywhere; real baseline FP8_E4M3_E8M0 = 1, NVFP4_E4M3_GLOBAL = 2, BF16 = 3 (from #664) |
Incorrect, repeated 3× |
New op flare::staged_ple_fp8 gathers FP8, casts to BF16, scales by global_scale, leaves frame immutable |
Op and mutation set exist (ngram_delivery.py:115-129); the Python test checks only the schema (test_...:99-102); no test exercises the gather/cast/scale |
Partly: registration verified, numerics unverified |
cargo test --locked --lib engram 55 passed; --lib schema 21; heliopause --lib engram 7 |
Reported, not independently runnable here; counts are plausible increments on #664's 52/15 | Claimed |
pytest … 138 passed |
Reported | Claimed |
Prior-core replay: Inkling-2-Mini signed core untouched, ready 12s, 21.02 GiB, "391" for 17×23 |
Reported in detail; matches a real invocation shape | Claimed (self-reported) |
Negative wire check: pre-rebase encoding = 3 with global_scale rejected with "single-plane engram table cannot carry scale metadata" |
Consistent with schema.rs |
Claimed, internally consistent |
19.1 GiB vs 38.2 GiB in BF16; export artifact 20,480,458,752 bytes |
20,480,458,752 B = 19.07 GiB, exactly 2× smaller than the BF16 equivalent (40,960,917,504 B = 38.15 GiB) | Arithmetic self-consistent |
End-to-end export+serve of Qwen4-35B-A3B-NVFP4-Hybrid: 28,327 MiB used on a 32 GiB RTX 5090; serve ready 10s, "318600" for 600×531 |
Reported with flags; the table was streamed, not resident (32 GiB card, 19 GiB table) | Claimed, plausible |
| Release builds on x86_64 SM120 and aarch64 SM121 | Reported | Claimed |
Not run: Windows/flare-winui, SM103, world_size > 1 GPU export, helios-lifecycle simulator |
Disclosed; multi-span/partitioned paths covered only by Rust unit tests | Disclosed honestly |
Unexplained by the evidence: no CI on the head at all (the repo has native-serving, python-cpu and helios-lifecycle workflows that #664's review cited as the bar), and no tests/components/ run even though the PR changes ignition/components/.
Reach
- Users: anyone serving an FP8-PLE checkpoint (Qwen4-35B-A3B and similar) benefits — one-plane 1 byte/element instead of BF16's 2, no scale plane, no requantization. HALVES the on-disk/offloaded table and removes resident-scale pressure on unified-memory boxes with little KV headroom (the #664 problem statement).
- Operators: interacts with
--embedding-table-storage ram|disk,--embedding-table-resident-scales(must stay off/absent for these tables — #664 already rejects it when no table carries scales),--embedding-table-cache-size, and theramload path the PR measures (2.4s table load). No new flag or default is introduced. - Compatibility: additive for old cores; one-way for new ones (old binaries reject
encoding = 4). PB2 regeneration is on the critical path for Ignition; the older 7.35.1 gencode is a source of churn and possible CI freshness failure. - Dependencies: none added.
global_scalereusesEngramTable.global_scale = 14(already present since the NVFP4 work). - Documentation: three doc files touched, three changed lines total, plus the proto comments — thin but on the right pages (
core-format-design.mdartifact layout,manifest.md,cli-design.md). - Downstream: the companion recipe PR (
hyperflare-recipes#167) is a hard dependency for anyone wanting the ability end-to-end, and it is not linked in a reviewable form yet ("link added once opened").
Process
- State: ready for review, but with no reviewers, no labels, no CI, and no approval — while the competing #732 has labels and a review.
- Age: opened and last updated 2026-12-04 (same day); head
3198eae; basecc0a49d. - CI: no checks on the head commit. #664's reviewer treated zero CI as a blocker (
docs/design-review.md:247-251). - Review state: none. The PR's own text says owner approval from Luke Alonso is required under
docs/design-review.mdPrinciple 1; no approval is recorded on the thread. - Disclosed unrun checks are reasonable in scope (Windows, SM103, multi-rank TP, lifecycle simulator) but do not cover the missing release-mode full suites.
Open questions / not found
- Which shape maintainers prefer: extending
flare::staged_ple(#732) or a separateflare::staged_ple_fp8(#733). Nothing on record. - Whether the
FP16 = 2baseline in the description is a copy of #732's description (whose Autobot review also flagged "factual discrepancies in the PR description"), or a stale local branch — the enum value2is in factNVFP4_E4M3_GLOBAL. - Whether
hyperflare-recipes#167 exists yet; not readable from this repository. - No human maintainer statement on the enum-vs-op question, no design acknowledgment, and no issue asking for this encoding — the only evidence of demand is the two same-day PRs and the adjacent #716/#731 Qwen4 work.