Value proposition report · NVIDIA/hyperflare-inference #518

Raw Markdown for agents: https://autobot.eidonix.com/p/bcf9320b-fb94-4d43-b1b5-52a34d42212a.md

Verdict: worth merging — worth it with small changes

PR #518 (nero-) adds a recipe-declared --target-head-quantization {mxfp8} preparation flag: Recipe.target_head_quantizations (ignition/declaration.py:278, validated at 328-329), Plan.target_head_quantization (ignition/planning.py:199, validated at 289-293, emitted by to_dict() only when set at 411-412), CLI wiring (ignition/cli/__init__.py:212-214), forwarding through derive/_export_hosts/_prepare/debug_serve/bench (ignition/cli/preparation.py:57,73; serve.py:210,278,479; bench.py:170,243-252), and SCOPE_TARGET_WEIGHT manifest + reproduction argument (ignition/preparation/rebuild_manifest.py:363-364, 302-303), with one doc row (docs/cli-design.md:454) and two test files.

Fit against the charter

Right problem, right layer. The gap is real and currently unserved: --draft-head-quantization quantizes only the proposal head (ignition/cli/__init__.py:207, docs/cli-design.md:453), and --online-mxfp8 explicitly excludes target vocabulary weights (docs/cli-design.md:474: "target vocabulary weights retain their precision"). There was no way to opt the target lm_head into MXFP8. On the charter's flagship hardware (DGX Spark GB10, 273 GB/s, SM121) a 1.21 GiB BF16 head read every decode step is precisely the bandwidth-bound, compact-hardware case the vision targets.

Explicit configuration, not environment switches (design-review principle 10; docs/core-design.md:784). CLI-declared, recipe-gated, rejected with a UsageError naming the checkpoint alias for recipes that don't declare the format (planning.py:289-293) — no silent acceptance (principle on not silently ignoring input), and the only principled way to opt out of "preserve checkpoint precision by default" (principle 9).

Model-agnostic, no per-model branches. The core change is a generic declaration tuple plus generic validation; the single format ("mxfp8",) mirrors the already-merged draft_head_quantizations / draft_body_quantizations / markov_head_quantizations pattern (declaration.py:277-280), and row_shard_prefill_world_sizes (#499) established the same shape. ignition/components/ still holds exactly the 13 Helios-ABI modules (tests/preparation/test_core_boundary.py:11-26); helios/proto/runtime_core.proto (not opened) is untouched. Crucially the PR reuses the existing PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT comparison machinery instead of inventing a schema field, so combine and --reuse-weights reject mismatched cores for free (helios/src/runtime_core/preparation.rs:310-347; heliopause/src/export/weight_reuse.rs:326-336). No Helios policy change, no PreparedContract change, no new captured-graph op.

Backward compatibility. Omitted flag → nothing in Plan.to_dict(), no manifest parameter, no reproduction argument (rebuild_manifest.py:363-364), and the bench JSON keeps its old shape (bench.py:250-251). Existing cores and existing plans are unaffected (principle 13).

Who benefits and how much

Qwen3.8-Flash-Next users on bandwidth-constrained unified-memory GPUs. The measured effect lives in the paired recipe PR local-inference-lab/hyperflare-recipes#40 (matched TP1 A/B exports differing only in this flag): 74.6 → 80.2 tok/s C=1 coding (+7.5%), abbench C=1 66.3 → 72.3 tok/s (+9.0%), C=4/8/16 +4.6/+3.7/+2.7%, ~600 MiB recovered on TP1 (+24.6k KV tokens), 44/44 quality gate PASS. Modest absolutely, but it lands on single-user decode — the workload the vision names — and it is a measured performance/memory issue, which the charter explicitly admits. This core PR alone changes no runtime behavior; that is correctly disclosed and correctly attributed to the core+recipe stack.

Cost

Complexity: ~35 net core source lines, ~88 test lines, one doc row. The main liability is one more entry in an already long advanced-options group (now five precision flags: --draft-body-, --draft-head-, --target-head-, --markov-head-quantization, --online-mxfp8 ± --online-mxfp8-scope). Because the existing quantization family already exists, this reads as a consistent addition rather than a new concept, and the help text is deliberately model-agnostic (asserted at tests/cli/test_commands.py:103-114), so it does not become a per-recipe help switchboard. Maintenance cost is near zero in Rust/Proto; the behavior lives in the recipe PR. Risk is the numerical contract (target logits change), mitigated by the paired PR's argmax-parity/cosine tests and 44/44 quality gate, with unrun surfaces (classic MTP, --prompt-logprobs, SM120/SM103) honestly disclosed (principle 12).

Is there a simpler route, or duplication?

Folding this into --online-mxfp8 via a vocabulary entry in online_mxfp8_scopes would avoid a flag and is worth raising in review. It is not actually simpler today: the DFlash2 draft-body inheritance rule keys off online_mxfp8 and scope == 'all' (rebuild_manifest.py:409-415), so pushing vocabulary through that group muddies inheritance semantics, and Flash Next's --online-mxfp8 declaration covers only DFlash2 projections. A separate, single-format, recipe-gated flag is the smaller footprint in shared code. Not a blocker.

Changes I'd ask for before merging

  1. Thread the flag through planning.plan() / planning.fit() (ignition/planning.py:445-453, 581-589) like every sibling preparation flag. Today it only arrives via replace(...) in the CLI. It works (replace re-runs __post_init__, so validation holds) but it is the odd one out and a trap for the next caller and for test authors.
  2. Drop the defensive getattr(plan, 'target_head_quantization', None) at rebuild_manifest.py:302 and the parallel uses at bench.py:170 / serve.py:210,278,479. Plan now owns the field and rebuild_manifest.py:363 already uses direct attribute access; the getattr hides exactly the mistake (a plan built without the field) that should fail loudly.
  3. State what the plan does and does not account for. Recipe.weights_bytes (declaration.py:363-374) still sizes from checkpoint.device_bytes, so the ~600 MiB saving appears in serving-time cache planning (helios/src/runtime_core/memory.rs:890-1018) but not in Ignition's plan sizing/pages. Either reflect reduced weight bytes in weights_bytes when the flag is set, or note in the docs/cli-design.md:454 row that the saving shows up in the served cache plan rather than the preparation plan. As written a reader trusting weights_bytes concludes the flag saves nothing.
  4. Keep the evidence attribution explicit in the commit message. This PR cannot show an isolated speedup over main; the A/B belongs to the paired recipe PR. The description already says so ("belong to the paired core + recipe stack, not this core flag alone") — preserve that wording.
  5. Minor: the help-text test splits help output between --target-head-quantization and --markov-head-quantization (tests/cli/test_commands.py:112), coupling it to argparse option ordering; make it order-independent.

None of these are architectural. Verdict: worth merging, with changes 1–3.