Explore scratchpad · NVIDIA/hyperflare-inference #732

Raw Markdown for agents: https://autobot.eidonix.com/p/296eae9c-49f4-4214-85ce-60bbe14f4c1e.md

#1 [high] Orientation: diff tool base is stale — pr_diff shows #664 as new

CRITICAL navigation fact for anyone reviewing this PR with these tools: pr_diff for PR #732 returns a diff against a stale base (it includes huge unrelated changes: .github/workflows/release.yml, AGENTS.md, THIRD_PARTY_NOTICES.md, docs/api.md, helios/src/async_transfer/*). This is because the local main ref predates several merges.

Evidence:

Consequence: #664 (kbenkhaled, "helios,heliopause,ignition: support single-plane BF16 and identity-indexed offloaded embedding tables", merged 2026-12-04 03:51) is already on real main but not in the local mirror. Everything in the pr_diff touching BF16 / IDENTITY / Planes / shard-contiguity / Index::shares_delivery_with is #664's merged work, NOT PR #732's. PR #732's real contribution is the FP8_E4M3_GLOBAL delta plus a few robustness tightenings.

The pr_files list (10 files, +565/-145) IS correct for the actual PR.

Practical method for isolating the real delta: search_code with ref: pr/732 and look for Fp8E4m3Global / FP8_E4M3_GLOBAL. Sites found:

Tools with a base: pr_diff (stale), search_history (broken). Tools that work at pr/732: read_file, search_code, list_files.

#2 [high] Change: description's enum tag numbering contradicts the code (=4, not =3)

The PR description says: "Protobuf schema ...: Added Encoding::FP8_E4M3_GLOBAL = 3 alongside NVFP4_E4M3_GLOBAL = 1 and BF16 = 2."

The code says otherwise. At pr/732:

So the actual tags are NVFP4_E4M3_GLOBAL = 2 (not 1), BF16 = 3 (not 2, added earlier by #664) and FP8_E4M3_GLOBAL = 4 (not 3).

Why: #664 (merged 2026-12-04 03:51, kbenkhaled) already took BF16 = 3. PR #732 is therefore a stacked follow-on to #664 and had to append at 4. The description's numbering matches a pre-#664 world, i.e. it was drafted without accounting for #664's tag allocation and was not updated after the rebase. Same stale numbering appears in EngramHash.Method: IDENTITY = 3 exists at core.proto:305 (from #664), and this PR adds no new method.

Impact: purely a documentation defect in the PR body — the wire tags themselves are correctly appended and backward compatible. But it is misleading for a reviewer who trusts the description to check tag allocation.

#3 [high] Related work: #664 is the merged predecessor and stack base for this PR

#664 "helios,heliopause,ignition: support single-plane BF16 and identity-indexed offloaded embedding tables", by kbenkhaled (CONTRIBUTOR), opened 2026-12-01, merged 2026-12-04 03:51 (head e2a9d1d), labels: area:engram, area:memory, enhancement, performance, triage:review, +1718/-554 over 23 files.

This is PR #732's direct predecessor and stack base. #664 introduced:

Motivation for #664: Gemma 4 E2B/E4B PLE tables, raw BF16, 4.38 GiB (E2B, 35 layers) to 5.25 GiB (E4B, 42 layers), on memory-constrained unified-memory GPUs.

#732 therefore is a thin additive extension of #664: same engram_encoding_has_scales/engram_scales seam, same single-plane row, adding one more 1-byte-per-element encoding. #732's schema.rs diff vs the local stale main shows BF16/IDENTITY as "new" only because local main predates #664 — do not attribute those to #732.

Important for the "why": #664 established the general single-plane mechanism in the same week, so #732 is the natural second consumer of that seam rather than a new design.

Citation: https://github.com/NVIDIA/hyperflare-inference/pull/664

#4 [high] Project fit: owner-approval gate for new core-format contracts — #664 precedent vs #535

docs/design-review.md:22-26 (at pr/732):

Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso lalonso@gmail.com. Shape and capacity variants are allowed within an unchanged operation contract. A new operation contract requires approval even if it reuses a graph kind or enum value. A design acknowledgment does not grant approval.

PR #732 adds a new signed core-format encoding (EngramTable.Encoding.FP8_E4M3_GLOBAL = 4) in helios/proto/core.proto:269 and helios/proto/runtime_core.proto:665. Whether this counts as a "new operation contract" is arguable — it reuses the existing EOS_XOR_MODULO / IDENTITY mailbox and gather contract and only changes the element interpretation and the absence of a scale plane. But the schema/artifact surface is signed, which is exactly the surface Autobot flagged as gated for #664.

PRECEDENT — directly relevant: Autobot raised exactly this blocker for #664 ("Unapproved core-format / captured-graph contract extension with no linked producer", helios/proto/core.proto:258,294 + docs/design-review.md:22-26) across three review rounds (2026-12-01 20:05, 22:05, 2026-12-03 04:14) and #664 was merged anyway on 2026-12-04 03:51 with no recorded owner approval and no human review visible in the thread. That sets a working precedent that EngramTable.Encoding additions land without the formal approval gate — the same bar #732 will be measured against.

Contrast — the gate is genuinely live elsewhere: open issue #535 (tastyrice90, "Engram read-ahead: approval for an advisory mailbox on the prefill graph") is a contributor asking for exactly this kind of approval and still open, unanswered, since 2026-11-26. #566 (merged, voipmonitor) is cited in #664's review as having "an explicit approval note" — i.e. approval is normally recorded in the PR body when obtained.

For #732: no approval is mentioned anywhere in its body; no review exists yet (pr_comments: "No comments.").

Also relevant from docs/design-review.md: line 180 ("Crate unit and contract tests (CPU). Run cargo test --locked --release") and lines 116-123/247-251 (disclosing runnable checks as limitations does not waive them).

#5 [high] Why: Qwen4-35B-A3B PLE tables; demand is days old and spans #716/#731/#723

Problem stated: Offloaded engram/PLE tables supported only two-plane NVFP4_E4M3_GLOBAL (and FP8_E4M3_E8M0) plus, since #664, 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. Those could not be exported or served natively.

How wide/how long has it been wanted — evidence it is recent, not long-standing:

Longer-standing context (the engram subsystem generally): issues/PRs #267 (Engram & shared Engram tables, closed not_planned, charter roadmap item), #334 (open, read ahead), #535 (open, approval for advisory mailbox), #554 (open draft RDMA engram store). The FP8 encoding itself has no such history.

#6 [high] People: yatesdr is the second consumer of kbenkhaled's seam; lukealonso (owner) works the same file and model

Author: yatesdr, GitHub association COLLABORATOR. Last 180 days: 84 merged, 11 closed, 4 open. Merged-PR areas: helios/src (38), docs (37), selene/src (33), selene-manager/src (26), selene-manager/tests (21). Highly prolific, core-adjacent, trusted. Open PRs by them: #694 (selene,helios: add write-side NVMe and pool spill profitability gate, 2026-12-02), plus #347/#348/#349 (long-running open issues: GLM-5.3-Flash production serving, PCIe multi-GPU root-port, engine fixes). Discord handle given in body: D-Rock.

Who usually works in these files (items_touching helios/src/runtime_core/engram.rs, most recent first): #732 (yatesdr, open), #554 (ateska, open draft), #334 (javieratomic, open), #664 (kbenkhaled, merged), #716 (lukealonso, merged), #711 (lukealonso, merged), #590 (lukealonso, merged), #566 (voipmonitor, merged), #539 (FujitsuPolycom, merged), #479 (voipmonitor, merged), #220/#219 (nero-, merged).

⇒ The engram subsystem is a crowded, actively-churning area with at least five recent merged authors (lukealonso, kbenkhaled, voipmonitor, FujitsuPolycom, nero-) and three open PRs (#334, #554, #732). PR #732 overlaps textually with all of them on helios/src/runtime_core/engram.rs and helios/src/core/schema.rs.

Notable: yatesdr is NOT the author who built the single-plane seam — that was kbenkhaled (#664). yatesdr is #664's second consumer. lukealonso (project owner per docs/design-review.md:22-23) authored #716 (the Qwen4 engram width fix) and #711 (AsyncTransfer), i.e. the owner is directly active in this exact code and the same model.

Who has engaged on #732 so far: nobody. pr_comments → "No comments." No reviews, no labels, no reactions. Zero community engagement.

#7 [high] Change: what the code actually does, verified file:line, incl. undeclared reach

Verified in code (not just claimed):

  1. Proto tags (both files) — helios/proto/core.proto:269 and helios/proto/runtime_core.proto:665: enum Encoding { UNSPECIFIED = 0; FP8_E4M3_E8M0 = 1; NVFP4_E4M3_GLOBAL = 2; BF16 = 3; FP8_E4M3_GLOBAL = 4; }. Tags appended, existing values untouched ⇒ backward wire compatible. Doc comments added at runtime_core.proto:663-664.

  2. Helios schema validation — helios/src/core/schema.rs:

    • engram_encoding_has_scales (443-457): Fp8E4m3E8m0 | Nvfp4E4m3Global => true; Bf16 | Fp8E4m3Global => false; _ => Err("engram table has no encoding").
    • engram_scales (459-471): requires scales when has_scales, rejects scales when not.
    • validate_engram (473-641): line 502-512 enforces scale_buffer empty + scale_block == 0 for single-plane, global_scale.to_bits() != 0 rejection for BF16, and !(finite && > 0.0) rejection for FP8_GLOBAL.
    • Single-plane row size pinning at 561-571: BF16 ⇒ embedding_width * 2, FP8_E4M3_GLOBAL ⇒ embedding_width; checked against weights.slice.nbytes for shared (578-586) and per-shard (622-630).
    • Test validates_single_plane_fp8_global_engram_table at schema.rs:2067-2167: happy path + rejects global_scale ∈ {0.0, -0.25, NaN, +inf}, scale_block = 16, non-empty scale_buffer, present scales plane, nbytes - 1 size, and partitioned bad shard bytes.
  3. Helios decode — helios/src/runtime_core/engram.rs:159-167: Fp8E4m3Global arm requires embedding_width > 0 && global_scale.is_finite() && global_scale > 0.0, yields (width, block=0, row_bytes=width, scale_bytes=None). _ => Err("invalid n-gram encoding or global scale") at 168. Scale-binding rejection at 200-206. Test fp8_global_single_plane_tables_decode_shared_and_partitioned at 1161-1235 asserts shared+partitioned decode and 4 bad global_scale rejections.

  4. Heliopause export — routes through the shared schema::engram_scales seam at heliopause/src/export/core.rs:108, 131, 421, 436, 1556, 1598, so FP8_GLOBAL inherits single-plane export (omitted -scales file, lines 1556-1565 and 1597-1610) with no FP8-specific code path. Test coverage at core.rs:4525-4636 asserts installed.len() == 12 for 6 planes across NVFP4/BF16/FP8 shared+partitioned, incl. hardlink reuse.

  5. Ignition — ignition/components/ngram_delivery.py:105-114 (_lookup) and 136-144 (PreparedPLELookup.__init__): three-way branch on state.query.quant_mode / caps.quant_mode: "bf16" → .view(torch.bfloat16), None, None; "fp8_e4m3_per_tensor" → .view(torch.float8_e4m3fn), table.scale as weight_scale, None as weight_scale_2; else (nvfp4_group16) → uint8 rows, per-block scales viewed as fp8, table.scale as weight_scale_2. self.scales = None if table.scales is None else ... at line 132.

  6. Docs — docs/core-format-design.md:94-95 ("single-plane encodings such as BF16 and FP8_E4M3_GLOBAL omit the -scales file"); helios/manifest.md:526-528 (raw embedding_width-byte FP8 E4M3 rows, no scale plane, finite positive global_scale). Both concise and consistent with code.

  7. Tests file — tests/components/test_ngram_delivery.py (new, 135 lines): parametrized over all three modes, asserts weight dtype / weight_scale / weight_scale_2 wiring in both the plan invocation and run_lookup, plus an make_fx trace asserting the staged_ple op appears.

NOT verified / no evidence:

#8 [high] Claims vs evidence: DGX Spark NVFP4 replay answers #664's exact blocker but carries no metrics

Declared in body:

Assessment vs. evidence:

Declared limitations (honest, and materially relevant):

Charter relevance: charter line 37 requires new formats to "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 (local-inference-lab/Qwen4-35B-A3B-NVFP4, eidonix/Qwen4-35B-A3B-MXFP8) which satisfies "more than a single checkpoint", and claims export+serve proof for one device. Whether these are "official or widely used" is not evidenced — local-inference-lab is the project's own org, eidonix is the project's own vendor org (autobot.eidonix.com), so both are first-party, not independent.

#9 [high] Reach & process: additive tag, but an undeclared BF16 size-pinning tightening; hours old, CI pending, no reviews

Reach — who/what is affected:

Process:

#10 [high] Related work: stack is #711 → #664 → #716 → #732; no competing implementation

Same files, ranked by overlap (from related_items #732):

Competing / superseding: none found. No other PR proposes an FP8 single-plane engram encoding. #732 is the only implementation of this idea.

Undone by this PR: nothing. It does not remove or reverse any encoding.

Coupled open work worth flagging: #731 (open, avifenesh) pins flashinfer for Qwen4-35B-A3B GDN geometry — without it, the same Qwen4-35B-A3B recipe cannot export at all on SM120 ("GDN prefill requires three value heads per key head"). So #732's stated use case is gated behind #731 in practice for SM120 users. #732's own DGX Spark run is SM121, so it did not need #731's geometry; whether SM120 works with #732 alone is not claimed.

#11 [high] Research summary

Case file prepared for PR #732 (add FP8_E4M3_GLOBAL single-plane engram table support). Ten scratchpad entries cover every angle; the highest-value findings are below.

Tool caveat future reviewers must know: pr_diff for this PR returns a stale base (it shows #664's merged BF16/IDENTITY work and #711's external_extents as if this PR added them). The real delta must be read from ref: pr/732 directly. search_history is also broken on this repo.

What the code does (verified): adds FP8_E4M3_GLOBAL = 4 to EngramTable.Encoding in both protos; pins single-plane row size (embedding_width bytes), rejects a scales plane/buffer, scale_block != 0, and non-finite/non-positive global_scale; decodes it in runtime_core/engram.rs:159-167; and exports it through the existing schema::engram_scales seam with no FP8-specific export code. Ignition binds it via a three-way quant_mode branch in ngram_delivery.py.

Things a reader could not learn from the description: the description's tag numbering (= 3, NVFP4 = 1, BF16 = 2) is wrong — the code has BF16 = 3, FP8_E4M3_GLOBAL = 4, because #664 took 3. The PR also undeclaredly tightens BF16 validation (row-size pinning now applies to BF16, which #664 shipped without). And the quant_mode strings it branches on live only in external b12x, not this repo.

Context: this is the third Qwen4-35B-A3B engram PR in ~24 hours (#716 widths, #731 GDN pin, #732 encoding), stacked on #711 → #664 → #716. It directly answers the two blockers Autobot held against #664 for three rounds — it links a recipe PR (#165) and claims an NVFP4 backward-compatibility replay — though #664 merged without ever satisfying the owner-approval gate, which is the live precedent. No competing implementation exists; #723 and #731 are the concurrent risks. As of writing it is hours old, CI is pending, and it has zero reviews, comments, or labels.

#12 [high] Recent activity: #732 builds on a 3-day chain of merges; only #723 conflicts textually

What changed lately in the files #732 touches, by whom and why (all within days of 2026-12-04):

Date Item Author Why it matters to #732
2026-12-04 (hours before) #716 merged — derive NVFP4 engram row/scale widths from embedding_width lukealonso (project owner) Same file helios/src/runtime_core/engram.rs. First Qwen4-35B-A3B engram support. #732's FP8 arm sits directly beside it (engram.rs:141-167). #732 is built on it.
2026-12-04 03:51 #664 merged — single-plane BF16 + IDENTITY kbenkhaled The stack base; introduced Planes{weights, scales:Option}, engram_encoding_has_scales, engram_scales, shard contiguity. #732 extends its seam.
2026-12-04 #711 merged — AsyncTransfer + runtime-sized device pools lukealonso Added RankBody.external_extents and Allocation.sizing.capacity == 2, both of which appear in #732's stale-base diff. #732 sits on top.
2026-12-04 18:49 #731 opened — pin flashinfer for Qwen4-35B-A3B GDN 2:1 heads avifenesh (first-time contributor) Without it, the same Qwen4-35B-A3B recipe cannot export on SM120 ("GDN prefill requires three value heads per key head"). Gates #732's use case on SM120. #732's own run was SM121 so did not need it.
2026-12-03..04 #723 open — fleet-wide codec green contexts lukealonso 6 files in common (both protos, schema.rs, export/core.rs, manifest.md, pb2). Unrelated subject, real textual conflict risk. Its thread (FujitsuPolycom) reports live flare run on a signed Qwen4-35B-A3B-NVFP4 core.
earlier merged #566 (voipmonitor, prefetch), #590 (lukealonso, engram reader fixes + PLE lookahead), #539 (FujitsuPolycom), #479 (voipmonitor), #220/#219 (nero-) various Baseline the PR builds on; unaffected.

Assessment of fit with recent activity: #732 builds on rather than conflicts with #711/#664/#716 — it is the deliberate second consumer of a seam #664 introduced three days earlier, applied to the model #716 had just taught the decoder about. It does not reverse anything. Its only friction is textual: concurrent edits to core.proto/runtime_core.proto/schema.rs from open #723 (and engram.rs from open #334/#554), which will require rebases but no semantic reconciliation.

Orientation-packet leads not chased (judged not relevant): #694 (yatesdr's own selene/helios spill gate — different subsystem, no overlap with engram encodings); #347/#348/#349 (yatesdr's long-running open issues on GLM-5.3-Flash serving, PCIe root-port transports, NVFP4 production serving — background on the author only, no bearing on this change); #618 (proto/core.rs overlap only, decoupled signed bodies — predates, unaffected); #586/#587/#580/#581/#652 (engram export parallelism, disposable export spans, row-cache readiness, UseNodePriority, cubin pruning — all merged, disjoint subject); #314 (open diffusion tensor execution, proto-only overlap).

#13 [medium] Community: zero engagement on #732 so far, vs three review rounds on #664

Comments on #732: none. pr_comments returns "No comments." Reviews: none ("Reviews: none yet" per orientation packet). Labels: none. Reactions: none observed. CI: pending on head 078b043.

Compare with the predecessor, for scale of interest:

Interpretation (factual, not a judgement): #732 has drawn no engagement of any kind yet — no bot review, no human review, no labels, no reactions — which is consistent with it being only hours old and having CI pending. It has not yet had the scrutiny its predecessor #664 received. Given that #664's three review rounds were dominated by two blockers (#owner approval, #linked producer + NVFP4 replay) that #732 explicitly sets out to satisfy, the absence of any review means neither is yet adjudicated for this PR.

Related community signal on the underlying feature: issue #535 (tastyrice90, open since 2026-11-26, no replies) shows a contributor asking for exactly this class of approval and getting no answer — evidence that the contract-approval channel is a real bottleneck for contributors, not a formality. #732 (from a COLLABORATOR with 84 merged PRs) did not open such a request.