Verdict: worth merging — with small changes
Re-reviewed at head f54928b (no new commits since my previous review; the diff, docs and tests are unchanged, so my assessment stands and the line references below were re-verified against the current tree). 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,314,479; bench.py:170,243-252), SCOPE_TARGET_WEIGHT manifest parameter and reproduction argument (ignition/preparation/rebuild_manifest.py:302-303,363-364), 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-211, docs/cli-design.md:453), and --online-mxfp8 explicitly excludes target vocabulary weights — docs/cli-design.md:474 states "Existing packed weights, normalization, convolutions, selectors and 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 unified LPDDR5X, SM121) a 1.21 GiB BF16 head read every decode step is exactly the bandwidth-bound compact-hardware case the vision targets, and the motivating checkpoint (Qwen3.8 Flash Next, whose MTP storage shares the target head — docs/mtp-design.md:63-64) is an in-scope model, not scope expansion.
Explicit configuration, not environment switches. CLI-declared, recipe-gated, rejected with a UsageError naming the checkpoint alias when the recipe does not declare the format (ignition/planning.py:289-293), and the value is echoed in the startup summary (serve.py:314). This is precisely the mechanism docs/core-design.md:783-784 ("Controlled arithmetic comparisons belong in explicit preparation configuration… environment-variable switches are prohibited") and docs/design-review.md:76-90 (principles 9/10) prescribe, and it is the only principled way to opt out of "preserve checkpoint precision by default".
Model-agnostic, no per-model branches. The core change is a generic declaration tuple plus generic validation; ("mxfp8",) mirrors the already-merged draft_head_quantizations / draft_body_quantizations / markov_head_quantizations (declaration.py:277-280) and row_shard_prefill_world_sizes (#499). ignition/components/ still holds exactly the 13 Helios-ABI modules (AGENTS.md:385-392, tests/preparation/test_core_boundary.py:11,64), and no Rust or Protobuf file is touched. Importantly the PR reuses the existing PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT comparison machinery rather than adding a schema field, so combine/--reuse-weights reject mismatched cores for free (helios/src/runtime_core/preparation.rs:310-321,330-347; manifest validation is generic at 82-138). No Helios policy change, no PreparedContract change, no new captured-graph op — so no owner approval is triggered.
Backward compatibility (principle 13). Omitted flag → nothing in Plan.to_dict(), no manifest parameter, no reproduction argument, and bench JSON keeps its previous keys (bench.py:243-252). Existing cores and plans are unaffected; from_legacy_rebuild_manifest (preparation.rs:156-257) gains no key, so legacy RebuildManifest cores keep their old semantics.
Who benefits, and how much
Qwen3.8-Flash-Next operators 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 extra KV tokens), 44/44 quality-gate PASS. Modest in absolute terms 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 as grounds for merging. The PR honestly states that this core flag alone changes no runtime behavior and attributes the gains to the core+recipe stack; that attribution must survive into the commit message.
Cost
~35 net core source lines, ~88 test lines, one doc row, zero Rust/Proto. The one real liability is a fifth precision entry in an already long advanced group (--draft-body-, --draft-head-, --target-head-, --markov-head-, --online-mxfp8 ± --online-mxfp8-scope); because the family already exists and the help text is deliberately model-agnostic (asserted at tests/cli/test_commands.py:103-114), it reads as a consistent addition rather than a new concept or a per-recipe switchboard. Maintenance cost in Rust is nil; the behavior lives in the recipe repo. Risk is the numerical contract (target logits change), mitigated by the paired PR's argmax-parity/cosine tests and the 44/44 gate, with unrun surfaces (classic MTP, --prompt-logprobs, SM120/SM103) disclosed as principle 12 requires.
Is there a simpler route, or duplication?
Folding it into --online-mxfp8 via a vocabulary entry in online_mxfp8_scopes would avoid a flag and is worth raising, but it is not actually simpler today: the DFlash2 draft-body inheritance rule keys off plan.online_mxfp8 and scope == 'all' (rebuild_manifest.py:408-415, mirrored in helios/src/runtime_core/protobuf.rs:23-31), so pushing vocabulary through that group muddies inheritance semantics; Flash Next's --online-mxfp8 declaration also covers only DFlash2 projections. A separate, single-format, recipe-gated flag is the smaller footprint in shared code, and it does not duplicate any existing mechanism.
Changes I'd ask for before merging
- Thread the flag through
planning.plan()/planning.fit()(ignition/planning.py:445-453,581-589) like every sibling preparation flag. Today it only arrives viareplace(...)in the CLI (preparation.py:73,serve.py:210/278/479,bench.py:170). Validation still holds becausereplacere-runs__post_init__(proven attests/cli/test_planning.py:226-253), but it is the odd one out and a trap for the next caller and for test authors. - Drop the defensive
getattr(plan, 'target_head_quantization', None)atrebuild_manifest.py:302and the parallel uses inbench.py:170/serve.py:210,278,479.Plannow owns the field andrebuild_manifest.py:363already uses direct attribute access; thegetattrhides exactly the mistake that should fail loudly. - Say what the plan does and does not account for.
Recipe.weights_bytes(declaration.py:363-374) still sizes fromcheckpoint.device_bytes, andplan/fitcomputefixed_bytes,pagesandfitsfrom it (planning.py:324-325,361-366,383-385,524-540), so Ignition's plan and its shortfall messages (planning.py:551-560) keep quoting the old BF16 weight size; the ~600 MiB only appears in the serving-time cache plan, which reports actual loaded bytes (helios/src/runtime_core/memory.rs:880-918). Either reflect reduced weight bytes when the flag is set, or state in thedocs/cli-design.md:454row that the saving shows up in the served cache plan rather than the preparation plan. As written, a reader trustingweights_bytesconcludes the flag saves nothing. (Conservatism is safe — it under-estimates available KV, never over-commits — so a doc sentence is acceptable.) - 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. - Minor: the help-text test slices output between
--target-head-quantizationand--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.