Explore report · NVIDIA/hyperflare-inference #664

Raw Markdown for agents: https://autobot.eidonix.com/p/45b70f65-9dbe-403e-b633-1680125e483b.md

Case file — PR #664: helios, heliopause, ignition: support single-plane BF16 and identity-indexed offloaded embedding tables

kbenkhaled · open, "ready for review" · branch engram-bf16-identity-pr → main · head c769355 · opened 2026-12-01 · 23 files, +1757/−548 · 0 comments, 0 reviews, no labels, no CI checks on head · https://github.com/NVIDIA/hyperflare-inference/pull/664

Key findings

  1. No producer exists in this repository. The PR is consumer/contract-side only. Ignition's Engram producers still emit two-plane FP8/NVFP4 — ignition/components/engram.py:40-58 hardcodes 256-byte weight rows, 8-byte E8M0 scale rows and lookup_op(..., weight.view(torch.float8_e4m3fn), scales, ...). The only Python production change is descriptor counting in ignition/preparation/rank_group.py:47 (expected = sum(len(table["planes"]) for table in catalog["tables"]), was 2*len(tables)). So nothing in-tree can emit Encoding.BF16 or Method.IDENTITY; the Gemma 4 E2B/E4B producer lives outside the repo (recipes are explicitly external, docs/model-preparation.md:326-330, which already lists gemma-4-e2b/gemma-4-e4b). This is the same "only in-tree producer is unexercised" gap that was raised as a blocker on the direct predecessor #566.
  2. The "distinct partitioned delivery groups" fix works through Index equality, not through the reader. Table.partition: Option<usize> (helios/src/engram.rs:176-187), set at helios/src/runtime_core/engram.rs:425 ((!table.shards.is_empty()).then_some(rank)), is never read in production code — only in tests (helios/src/runtime_core/engram.rs:1076, helios/src/execution/threaded.rs test fixtures, see the diff of threaded.rs). Its effect comes entirely from derived PartialEq plus the dedup at helios/src/runtime_core/model.rs:458 (engram.iter_mut().find(|(existing, _)| existing == &index)): two TP ranks with byte-identical shard bytes used to compare equal and collapse into one Shared/delivery group. That is an indirect and easy-to-miss mechanism and is not mentioned in the description.
  3. Loader validation is tightened for all partitioned tables, not just the new ones — an undeclared compatibility change. helios/src/core/schema.rs:454-503 now requires shards.len() == ranks, shard.rank == index in order, first_row == running end, rows != 0, and end == table.rows; error strings changed to "engram partitions must cover table rows in rank order" / "must cover all table rows". On main the schema only rejected overlap/empty/absent-rank while helios/src/runtime_core/engram.rs:80-117 already enforced contiguity. Net effect: signing now matches loading (a genuine correctness fix, and the PR does say this), but a previously signed core with a gapped or short shard list now fails validate. Charter line 42 asks to "verify that existing data, artifacts, and exported cores still load"; no test in the diff covers loading/rejecting an older gapped core.
  4. An undeclared behavior relaxation: heliopause/src/export/binding.rs:648-658 — append_planes now continues when a weights/scales JSON value is null instead of failing deserialization. Tolerating "scales": null from Python is not mentioned anywhere in the description.
  5. No GPU, no benchmark, no serving replay, no Windows build — the description says so itself, and its Validation section still carries the author's placeholder "(update this line once the Thor E2B export + benchmark completes)". The only numbers (4.38 GiB E2B / 5.25 GiB E4B PLE) are unverified arithmetic; no test reproduces them.
  6. New core-contract surface with no recorded owner approval. Encoding.BF16 = 3 and Method.IDENTITY = 3 plus new mailbox semantics are documented as core contract in helios/manifest.md:455-470 (added by this PR) and in helios/proto/core.proto / runtime_core.proto comments. The charter's "Captured-graph op contracts: Adding a new one … requires owner approval before you write it" applies; #535 is still the open approval thread for the neighbouring advisory-mailbox contract, and #566 was merged with exactly that blocker open.

The change

Two orthogonal primitives plus two shared correctness fixes, all threaded through the same offloaded-embedding machinery (verified in the diff):

Size: genuinely large (+1757/−548), and roughly half the Rust delta is tests — core::schema ~+130, runtime_core/engram ~+250, heliopause/src/export/core ~+250 including a new verify_published() helper, engram/prepared ~+50, Python ~+35. helios/src/engram/reader/windows.rs and most of helios/src/execution/threaded.rs are mechanical test-fixture updates (Planes::two(...), scales: Some(...), partition:).

The why

A real memory constraint, not a hypothetical: Gemma 4 E2B/E4B per-layer embedding (PLE) tables are raw BF16, indexed by token ID, and take ~4.38 GiB (E2B, 35 layers) to ~5.25 GiB (E4B, 42 layers), leaving little KV headroom on unified-memory GPUs (DGX Spark / Jetson Thor class). Helios already had a shared offloaded-embedding path (direct-I/O staging, host row cache, advisory lookahead prefetch, shared-RAM handoff) that assumed exactly two quantized planes and n-gram hashing.

No issue in this repository asks for this. Related but distinct: #511 (open, "Disk-Engram prefill leaves three of four ranks idle on a rank-partitioned table" — same subsystem, different problem), #535 (open, approval for the advisory mailbox), #334 (open, read-ahead on every rank). The demand is one author's, about a month old, driven by external recipe work; #592 (their merged "sm110/thor identifiers" PR) and the "Thor E2B export" placeholder tie it to Jetson Thor bring-up.

Recent activity

The touched files were rewritten repeatedly in the three days before this PR: #566 (2026-11-28, reader/prepared/model/selection), #580, #583, #586, #590 (2026-11-29), #620 and #647 (externalized core signing, stream-0 weight race — model.rs/selection.rs), #628 (2026-12-01, copy-engine gating in threaded execution), #652/#656/#657/#645/#646 on the helios side. Helios' last-touch authors are Luke Alonso (235 commits in helios/src), Martin Vit (52) and yatesdr (48); heliopause is Luke Alonso (63); ignition/preparation is Luke Alonso (160). #664 duplicates none of that work and silently reverses none of it, but it patches code that changed twice in the preceding 48 hours, so it needs a rebase review and its Planes refactor will produce conflicts with #554 and #334 if those move.

People

Community

Nothing to report beyond the above: zero discussion on the PR, and the only "community" pressure behind the underlying feature is the memory complaint pattern in #511/#535 and the external recipe work. No Discord handle given.

Project fit

Aligned. No model allowlists, no capability flags, no new captured-graph operation families — a general storage-encoding primitive and a general indexing primitive. Enum values are appended (= 3) leaving existing tags, defaults and FP8/NVFP4 wire layout untouched (helios/proto/core.proto:254-300). It directly answers a measured memory problem, which the charter's "What gets merged" list accepts; it solves it in the runtime's own vocabulary rather than with a per-model branch (charter line 12, #267/#334); and it removes hashing from the runtime for this table class rather than adding model logic.

In tension. (a) Encoding.BF16/Method.IDENTITY and the IDENTITY mailbox semantics are new core-contract values and behaviour — the charter requires owner approval before writing them and the PR records no approval and no approval request (contrast #566's explicit note and #535's explicit question). (b) The charter's "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" is unmet: nothing exports or serves a BF16/IDENTITY core here, and only Gemma 4 E2B/E2B-class tables motivate it. (c) Charter line 42's compatibility demand ("verify that existing data, artifacts, and exported cores still load") is met for FP8/NVFP4 unit tests but not exercised for the newly stricter shard validation, and the targeted hardware (SM110/Thor, and Windows I/O ring builds) is untouched.

Claims and evidence

Verified present in the diff (unit/local level, thick): core::schema BF16/IDENTITY validation matrix including negative-zero global_scale, mismatched vocabulary, non-empty hash arrays, and gapped / short / misordered / oversized shards (helios/src/core/schema.rs BF16 and shard tests, and the engram suite the description counts at 52 passing); decode strictness plus an identical-shard / delivery-group test (helios/src/runtime_core/engram.rs tests, selection 43 passing); single-descriptor sharing and gather (helios/src/engram/prepared.rs tests); Heliopause export of shared and partitioned BF16/IDENTITY, parallel assembly, FD accounting, weight reuse, a new verify_published signing round-trip and a gapped-shard publish rejection (heliopause/src/export/core.rs, reported as 34 passing); mixed 2-plane + 1-plane peer handoff plus a descriptor-count mismatch ValueError (tests/preparation/test_embedding_table_handoff.py).

Claimed, not backed by anything in the repo:

Reach

Process

Open and self-declared "ready for review", ~1 day old at packet time, one commit (c769355), zero CI checks on the head commit, zero labels, zero reviewers, zero comments, no Discord. The Validation section is unusually honest for the parts it covers and conspicuously unfinished for the parts that matter (GPU export + benchmark). By this project's habits the PR is still in the pre-review stage: no case-file comment, no design-review label, and — most consequentially — no contract-approval note comparable to #566's, even though it changes the same kind of surface.

Open questions / what could not be found

  1. Where is the Gemma 4 E2B/E4B recipe that produces BF16/IDENTITY tables? Not in this repo; docs/model-preparation.md:326-330 says external recipe repositories are supported, and #566's companion was local-inference-lab/hyperflare-recipes#70 — no corresponding external PR is referenced by #664.
  2. Is the new contract approved, and by whom? No issue, comment or note records it; #535 (open) is the nearest approval venue and does not cover IDENTITY.
  3. Was the shard-contiguity tightening ever requested, or did it come out of an observed corruption case? No issue is linked.
  4. Do heliopause/hosting tools outside the changed paths assume a -scales payload per Engram table (publishing, verification, resumable export)? Not established here.
  5. Does any existing exported core, checked-in fixture or recipe test rely on a gapped partitioned table and would now fail validate? Not tested in the diff.
  6. Whether helios/src/engram/reader/windows.rs and the RAM/advisory-warm paths are exercised at all for single-plane tables — the Windows module changes are test-fixture type updates only, and the author states Windows builds were not run.