Opened by a workflow run, Nov 25, 2026 10:01 AM EST.
screen malicious
Screen Result: All Clear
Evidence:
- No discussion surface: PR #518 has 0 comments and 0 reviews, so there is no comment-based injection vector to screen.
- The PR description is ordinary engineering prose (motivation, what changed, benchmark numbers, limitations, "Discord: nero") with no instructions aimed at agents, reviewers, or automation, no requests to skip checks or ignore guidance, and no hidden directives.
- Full diff (10 files, +126/−10) is benign feature plumbing; I verified the key hunks in the code at head
f54928b:Recipe.target_head_quantizations+ validation (ignition/declaration.py:278,328-329),Plan.target_head_quantization+UsageErrorscoping (ignition/planning.py:289-293), CLI flag (ignition/cli/__init__.py:212-214), manifest emission (ignition/preparation/rebuild_manifest.py:302-303,363-364), docs row (docs/cli-design.md:454), and two test files. - No prompt-injection markers in the diff: keyword scans for "ignore previous/disregard/system prompt/AI agent/Autobot/do not report" matched only pre-existing unrelated files (AGENTS.md (not opened), docs/design-review.md (not opened), docs/api.md (not opened), helios/src/frontend/tml.rs (not opened), tests/server/test_coding_clients.py (not opened)), none touched by this PR.
- No hidden-Unicode tricks: the only non-ASCII characters in the changed lines are the repository's existing typographic "·" and "–" separators in CLI status/table output; no bidi overrides, zero-width characters, or homoglyphs were introduced. No test file contains exotic characters.
- No covert capability: the new code contains no
os.environswitches, subprocess/socket/network calls, eval/exec, base64 blobs, or file writes; the flag defaults toNoneand every emission path is conditional, and use against a recipe that does not declare the format raisesUsageErrorrather than silently changing behavior — the opposite of a covert channel. - No out-of-scope or supply-chain changes: nothing outside the 10 declared files, no new CI/workflow files, no dependency additions, no edits to agent-instruction or design-review policy files.
- Subprocess/https usage in
tests/clibelongs to pre-existing tests (signing, progress) untouched by this PR.
No prompt injection, no agent-directed manipulation, and no malicious payload were found. The only mildly unusual traits — a metrics-heavy description and a companion cross-repo recipe PR (local-inference-lab/hyperflare-recipes#40) — are normal practice in this repository.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: nero- (CONTRIBUTOR; commits as "Nero"/"Jonathan Gutierrez"; Discord nero)
Motivation: On bandwidth-limited GPUs the full-precision BF16 output vocabulary projection (lm_head) costs both decode time and memory on every step, but Flare's rules forbid environment-variable switches and every existing conversion flag deliberately leaves the target head at checkpoint precision. This adds an explicit, opt-in, recipe-declared preparation flag so a model recipe can allow its target vocabulary head to be prepared as MXFP8.
Scale: +126 / −10 lines in 10 files
Proposal:
- Add
Recipe.target_head_quantizations: tuple[str, ...] = (), validated to only accept"mxfp8"(ignition/declaration.py:277-278,:328-329). - Add a default-
None, model-agnostic--target-head-quantization {mxfp8}advanced preparation flag toexport,debug-serveandbench, forwarded throughderive(...)and threeserve.pycall sites. - Add
Plan.target_head_quantization, whose__post_init__raisesUsageErrornaming the checkpoint alias when the recipe does not declare the format; included into_dict()only when set. - Record the choice in
PreparationManifestunderSCOPE_TARGET_WEIGHTand inreproduction_arguments, both only when set; one new row in thedocs/cli-design.mdpreparation-flag table. - Tests: flag parsing/
--helpmodel-agnosticism for all three commands,deriveforwarding and rejection,Recipe/Planvalidation, and a Protobuf round-trip of the manifest parameter. Touches: ignition/planning.py— newPlanfield, validation,to_dictignition/cli/{__init__,preparation,serve,bench}.py— flag definition and five forwarding sites, status line, bench JSONignition/preparation/rebuild_manifest.py— newSCOPE_TARGET_WEIGHTparameter and reproduction arg Related items:- #516 ignition: add --kv-cache-format declaration, planning, help, and manifest support (open): same-shape concurrent PR on 8 of the same files; it added the recipe-side contract and
bootstrap.pyforwarding that #518 omits - #508 Add recipe-declared row-sharded attention planning and PreparationManifest metadata (open): same-shape concurrent PR sharing all 10 files
- #499 row-sharded prefill planning (merged): landed the parameter pattern #518 copies
- #291 Independent DFlash2 body quantization (merged): source of the
*_quantizations+--*-quantizationpattern and the scope-resolution precedent - #433 Inkling 2 Mini preparation (merged): author's earlier recipe-declaration precedent (
draft_head_quantizations,markov_head_quantizations) Link: https://github.com/NVIDIA/hyperflare-inference/pull/518 Autobot comments: Nothing in the repository consumes or verifies the new setting: no in-tree recipe exists or declarestarget_head_quantizations,BasePreparationConfig/common_preparation_kwargsinignition/preparation/bootstrap.pydoes not carry it, and the only production readers are the startup status string and the manifest writers — the actual conversion lives entirely in the externalhyperflare-recipesPR #40, which cannot be read from here. The flag is applied withdataclasses.replace(...)afterplanning.plan(...), so it never reachesRecipe.weights_bytes/fitand the claimed ~600 MiB saving is invisible to memory planning and GPU selection. As a newSCOPE_TARGET_WEIGHTkey it silently becomes an exact-equality gate forflare combineand--reuse-weights, so cores prepared with and without the flag are no longer combinable — a user-visible behavior change introduced by an Ignition-only diff. All performance and quality numbers (+7.5–9.0%C1 decode,44/44gate, TP2abbenchfigures) are explicitly attributed to the paired stack, not to this PR, and have no in-repo evidence; there is no CI run, no review, no comment, and no linked issue or prior user request for this flag.
Value Proposition
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
- 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. It works (replacere-runs__post_init__, so validation holds) 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 atbench.py:170/serve.py:210,278,479.Plannow owns the field andrebuild_manifest.py:363already uses direct attribute access; thegetattrhides exactly the mistake (a plan built without the field) that should fail loudly. - State what the plan does and does not account for.
Recipe.weights_bytes(declaration.py:363-374) still sizes fromcheckpoint.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 inweights_byteswhen the flag is set, or note 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. - 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 splits help 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.
Full report · Notes Decide Value: yes (99%): This change is worth reviewing: it provides value to the project in line with its charter.
Prose
Verdict: should-fix issues only Blocking:
- None. Should fix:
- PR description "Claimed Benefit / Result": four unlabeled tok/s figures (
116.0 / 164.2 / 230.5 / 332.4) with nomainbaseline or concurrency labels, andabbench/C1/44/44/100%quality gate used as unexplained identifiers — violates AGENTS.md:95-112 and :122-128;abbenchoccurs nowhere in the repo (search_code → no matches). - PR description "Why"/"What Changed": never states the ownership/dataflow fact that core ignition only carries the value while the BF16→MXFP8 conversion happens in the external recipe's
prepare(); with this PR alone the flag changes no prepared weight (AGENTS.md:82-87). - PR description "Supporting Evidence & Limitations": does not say whether its own new test
test_target_head_quantization_validation_and_preparation_manifest(tests/cli/test_planning.py:212) ran, does not disclose that no CI ran on headf54928b, and does not note that the Rust consumercompatible_for_weight_reuse(helios/src/runtime_core/preparation.rs:330-347) that consumes the newtarget_weightparameter was not exercised (AGENTS.md:103-112, :57-58). Nits: 4 (help text "for recipes that declare it" at ignition/cli/init.py:212-214; docs/cli-design.md:454 attributing the BF16-buffer free to core rather than the recipe; third model-name variant "Qwen3.8 Flash Next"; unannounced comment edit at ignition/declaration.py:276) Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Simplicity
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- ignition/planning.py:411-412:
Plan.to_dict()omitstarget_head_quantizationwhenNone(conditional dict-splat) while every sibling optional field on the same dict emitsnull; emitting the key unconditionally and adding one entry to bench.py's existing key tuple deletes the new second splat at bench.py:250-251 and removes a branch from every consumer.
Nits: 3 (redundant getattr(args, …) fallback at four call sites that always have the flag, including one three lines from a direct attribute access; a Recipe.__post_init__ format check its three sibling quantization tuples do not get; tests containing negatives-only assertions and a third verbatim copy of the existing protobuf round-trip block).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Conventions
Verdict: clean Blocking:
- None. Should fix:
- None. Nits: 3 Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Conventions-and-duplication review of PR #518 (--target-head-quantization). I read all ten changed files in their surrounding code (docs/cli-design.md, ignition/cli/{init,bench,preparation,serve}.py, ignition/{declaration,planning}.py, ignition/preparation/rebuild_manifest.py, tests/cli/{test_commands,test_planning}.py) plus the project charter and the neighbouring Helios manifest code, and verified each of the three nits at the cited lines. No blocking or should-fix issue; nothing is behaviourally wrong.
The PR does not duplicate an existing mechanism, which is the main duplication question here: --online-mxfp8 explicitly leaves the target vocabulary weights at checkpoint precision (docs/cli-design.md:474) and --draft-head-quantization explicitly "retain[s] target-head precision" (docs/cli-design.md:453), so this flag fills a real gap rather than offering a second route to the same thing. It reuses SCOPE_TARGET_WEIGHT (rebuild_manifest.py:325) with no new scope and no Protobuf or Helios change; compatible_for_combine/compatible_for_weight_reuse already compare that scope generically. Every new construct mirrors its closest precedent: Recipe.target_head_quantizations mirrors draft_head_quantizations/markov_head_quantizations (declaration.py:277-280), Plan.target_head_quantization mirrors force_moe_decode_a16 (planning.py:198-199), the omitted-when-None to_dict() spread copies planning.py:419-424, and the bench config spread copies planning.py:411-424/execution.py:294 (not opened).
The three nits are style consistency: (1) four call sites use getattr(args, "target_head_quantization", None) where every adjoining argument uses direct attribute access, even though the flag is always registered by _preparation_arguments; (2) reproduction_arguments uses getattr(plan, ...) for a declared Plan field while from_plan and every neighbouring line use direct access; (3) the supported-format allowlist is a third independent ("mxfp8",) literal, and target_head_quantizations is the only head tuple validated at declaration time — the draft/markov/body equivalents are validated only in fit() (planning.py:487-495) — which gives inconsistent failure modes.
What I could not verify: the companion recipe PR (local-inference-lab/hyperflare-recipes#40) is outside this repository, so the actual target_head_quantizations=("mxfp8",) declaration it adds is unseen; there are no CI checks on the head commit f54928b and I ran nothing, so all three nits are established by reading code, and a pytest tests/cli run would only confirm they are style rather than behaviour issues.
Correctness
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- ignition/planning.py:526 (with ignition/declaration.py:363-374):
Plan.target_head_quantizationnever reachesRecipe.weights_bytes, sofits, the capacity shortfall text and the reportedweights_bytesstill count the full BF16 vocabulary head — the ~600 MiB/1.21 GiB the flag exists to free — and can reject a preparation that would fit on the memory-constrained target the PR cites. - docs/cli-design.md:453-454 (with ignition/planning.py:289-293):
--draft-head-quantizationand--target-head-quantizationcan be passed together, yet the draft-head row still promises "while retaining target-head precision"; no validation inPlan.__post_init__orfitrejects the pair.
Nits: 2 (duplicated/third-place target-head validation at planning.py:289-293 vs the sibling "proposal head format" check at planning.py:487-491; one-line docs row could state the BF16-source-checkpoint requirement).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
The plumbing itself is consistent and correct: the flag parses model-agnostically on all three commands, is forwarded through derive/_export_hosts/_prepare/debug_serve/bench, is validated against the recipe, and is recorded in Plan.to_dict() and the PreparationManifest (SCOPE_TARGET_WEIGHT + reproduction_args) only when set, so omitted-flag plans and manifests are unchanged. The two should-fix items are about the flag's effects (sizing credit, mutual exclusivity with the draft head) rather than its carriage. One cross-repo residual risk worth stating plainly: nothing in this repository consumes plan.target_head_quantization beyond to_dict, the startup status string and the manifest, so if the companion recipe declares target_head_quantizations but its loader does not act on the field, export accepts the flag, records a SCOPE_TARGET_WEIGHT parameter and prints "target head mxfp8" while weights stay BF16 — a silently accepted no-op that would also make such a core weight-incompatible with a genuinely quantized one under flare combine/--reuse-weights. Only a test in local-inference-lab/hyperflare-recipes#40 settles that.
Architecture
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- ignition/planning.py:445-453, 524-533 + ignition/declaration.py:363-374:
target_head_quantizationnever reachesweights_bytes/fit, so the claimed ~600 MiB saving cannot be planned and a host that the flag would make fit still raisesCapacityError. - ignition/cli/preparation.py:60-75, ignition/cli/serve.py:206-211/278/479: the flag is patched onto the
Planwithdataclasses.replaceafterplanning.plan, so validation (planning.py:289-293) runs after capacity reasoning, unlike every sibling recipe-gated flag. - docs/cli-design.md:454: names Qwen3.8 Flash Next and promises a "freeing the temporary BF16 vocabulary weight" effect that no in-tree recipe or test provides (recipes live in local-inference-lab/hyperflare-recipes, AGENTS.md:9-13), and contradicts docs/cli-design.md:474.
Nits: 4 (help.py:76-91 discoverability; runtime-core-design.md:374-377 list not updated; bench.py:243-252 restructuring churn; rebuild_manifest.py:302-303 getattr vs plain attribute access), plus two coverage/mechanism observations (fourth parallel precision flag; untested _export_hosts/debug_serve/bench forwarding).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Detail: the architecture is right in shape — the option is an Ignition-only PreparationParameter under PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT (rebuild_manifest.py:363-364) omitted when unset, so no Protobuf/Helios change and previously exported default-precision cores still combine and reuse; it is an explicit CLI flag, not an environment switch; and it mirrors the existing draft_head_quantizations opt-in. So no blocking architectural violation. But the flag stops at the plan's metadata: it is not a planning input, so the memory-planning layer, which is where such a setting belongs per AGENTS.md:452-456, never learns about it, and the docs describe an effect only an external, unmerged recipe can produce.
Subtractive
Verdict: should not be merged The change: +126 / −10 lines, 10 files Could remove: about 126 lines, in 10 places (essentially the whole diff); about 97 of them even if a maintainer keeps the flag Biggest subtractions:
- ignition/declaration.py:278,328-329 + ignition/planning.py:199,289-293,411-412 + ignition/cli/init.py:212-214 + ignition/cli/preparation.py:57,73 + ignition/cli/serve.py:210,278,314,479 + ignition/cli/bench.py:170,243-252 + ignition/preparation/rebuild_manifest.py:302-303,363-364 + docs/cli-design.md:454: the whole
--target-head-quantizationflag goes; nothing replaces it, because--online-mxfp8 --online-mxfp8-scope GROUPalready does exactly this (recipe-declared, free-form group name, already carried throughPlan→SCOPE_TARGET_WEIGHT+ reproduction args, already documented, already used for a target-vocabulary-head group by PR #312): about 126 lines - tests/cli/test_commands.py:102-139 and tests/cli/test_planning.py:212-253 (+ the four fixture-keyword lines at test_commands.py:22-23,52 and test_planning.py:23,54): clones of
test_row_shard_prefill_flag_is_model_agnostic(:61-72),test_derive_forwards_row_shard_prefill_and_rejects_joint_tuning(:75-99) andtest_row_shard_prefill_validation_automatic_sizing_and_rebuild_manifest(:72-139)/test_preparation_manifest_resolves_scopes_and_dflash2_inheritance(:142-209); nothing replaces them: about 88 lines - ignition/cli/bench.py:243-252: 10-line pair of
**{}splats reverts to the 12-line membership-filter comprehension with the key added to the tuple: about 5 lines - ignition/cli/serve.py:210,278,479, ignition/cli/bench.py:170, ignition/preparation/rebuild_manifest.py:302:
getattr(..., None)fallbacks go, plain attribute access replaces them (the parser always defines the attribute via_preparation_arguments): about 5 sites - ignition/declaration.py:328-329: recipe-level format validation goes;
Plan.__post_init__(planning.py:289-293) already raises the user-facingUsageError, and the three sibling override tuples have no recipe-level check: 2 lines Left behind: None.target_head_quantizationhas no consumer outsideignition/andtests/(zero matches in helios/, heliopause/ or the protobuf schemas), and nothing in the repo becomes dead because the change adds a parallel path rather than replacing one — which is itself the finding. Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Pre Test Report
Pre-test report — PR #518 "Add recipe-declared --target-head-quantization preparation flag"
1. Recommendation
Do not refer to hardware testing yet. Return the PR for two code changes and one maintainer decision. Every review lens except Subtractive agreed there is no blocking defect in the plumbing, but two should-fix defects make the very numbers a GPU run would produce wrong or meaningless, and the third item (is the flag needed at all?) decides whether any GPU time should ever be spent on it.
If the fixes land and the duplication question is settled in the flag's favour, the test plan in §6 is the minimal one worth running: one booking on cn7 (GB10, TP1), two exports, one A/B. The PR's headline TP2 RoCE figures are not testable on the available hardware at all.
2. What the change actually is (verified at head f54928b)
+126/−10 across 10 files, all plumbing of one string:
Recipe.target_head_quantizations: tuple[str, ...] = ()+ format check (ignition/declaration.py:278,:328-329).Plan.target_head_quantization: str | None = None(ignition/planning.py:199), validated against the recipe inPlan.__post_init__with aUsageErrornamingcheckpoint.alias(planning.py:289-293), emitted byto_dict()only when set (planning.py:411-412).- Flag registered in the shared advanced group (
ignition/cli/__init__.py:212-214), which is attached toexport(:50),bench(:53) anddebug-serve(:60); forwarded atignition/cli/preparation.py:57,73,ignition/cli/serve.py:210,278,479,ignition/cli/bench.py:170; printed in the status lineserve.py:314; new optional key in the bench JSON (bench.py:243-252). PreparationManifestparameter underSCOPE_TARGET_WEIGHT(ignition/preparation/rebuild_manifest.py:363-364) and reproduction arg (:302-303), both only when set;add()skipsNone(:350-352), so unset cores keep byte-identical manifests.- Docs row
docs/cli-design.md:454; tests intests/cli/test_commands.py:102-139andtests/cli/test_planning.py:212-253.
Nothing in this repository converts or frees any weight. The only readers of plan.target_head_quantization are to_dict(), the startup string and the manifest writers. Conversion would have to happen in Recipe.prepare supplied by the external recipe repository; ignition/recipes does not exist and tests/preparation/test_core_boundary.py:40-48 asserts it never will (recipes live in local-inference-lab/hyperflare-recipes, AGENTS.md:379-392, docs/model-preparation.md:305-325). The companion recipe PR (hyperflare-recipes#40) is unmerged and unreadable from here. Consequence for testing: with only this repository installed, --target-head-quantization mxfp8 on any alias ends at planning.py:289-293 with a UsageError — a GPU run would exercise nothing but the CLI.
3. Substantive problems — must be fixed before any hardware time is spent
F1. The saving the flag exists for never reaches memory planning. fit() has no target_head_quantization parameter (ignition/planning.py:445-453); its only weight estimate is recipe.weights_bytes(...) at planning.py:526, and Recipe.weights_bytes (ignition/declaration.py:363-374) computes from checkpoint.device_bytes/scale_compressed_device_bytes with no head-quantization input. So Plan.fits (planning.py:383-385), the printed shortfall (planning.py:554), automatic()'s GPU choice (planning.py:674-680), the suggested-remedy list (planning.py:697-725) and the reported weights_bytes/pages still reserve the full BF16 head — 1.21 GiB for a 248,320 × 2,560 head, ~600 MiB on TP1 by the PR's own numbers. On the memory-constrained target the PR cites (GB10), a configuration the flag would make fit can still raise CapacityError. Nothing in the tests compares sized bytes with and without the flag (tests/cli/test_planning.py:212-253 asserts only presence/scope), so this is invisible today.
Why it blocks hardware testing: a GPU A/B would report Ignition's plan pages and capacity numbers, which are wrong in the direction of under-crediting the feature, and would mislabel a genuine fitting failure as a regression.
F2. The flag is patched onto the Plan after planning instead of being a planning input. derive calls planning.plan(...) (which has no such parameter) and then replace(result, ..., target_head_quantization=...) (ignition/cli/preparation.py:60-75); _export_hosts (serve.py:206-211), _prepare (serve.py:274-290) and bench (bench.py:162-177) do the same. Every sibling recipe-gated flag — online_mxfp8_scope, row_shard_prefill, mla_compute_mode, expert_scale_compression, language_model_only — is a validated fit/plan parameter (planning.py:581-632). Here the only validation runs in Plan.__post_init__ after sizing, so a user who passes an unsupported format on a tight host sees a capacity error (or a differently-placed error) instead of the intended UsageError, and no plan/fit caller can express the option.
Why it blocks hardware testing: it is the same root cause as F1; a test engineer hitting it would burn the booking diagnosing the ordering.
F3. The docs claim a model and an effect this repository cannot provide. docs/cli-design.md:454 names "Qwen3.8 Flash Next" and promises "freeing the temporary BF16 vocabulary weight after conversion". Recipes — and therefore the conversion — live in the external repository, and the recipe PR is unmerged. The row also now sits next to docs/cli-design.md:474, which states --online-mxfp8 leaves "target vocabulary weights" at checkpoint precision, so the two rows read as contradictory unless one is qualified. docs/runtime-core-design.md:374-377 (the SCOPE_TARGET_WEIGHT parameter list) was not updated. Per AGENTS.md:194-199 scaffolding must not be documented as supported.
F4. Maintainer decision needed before booking hardware: is the flag needed at all? The Subtractive lens concluded "should not be merged at this size", arguing --online-mxfp8 --online-mxfp8-scope GROUP already provides a recipe-declared, recipe-free, CLI-only conversion group carried through Plan/manifest/SCOPE_TARGET_WEIGHT, and citing PR #312's with-vocabulary-head group (Inkling 2 branch — I confirmed with-vocabulary-head/vocabulary_head does not exist in this tree's ignition/). The Conventions and Value lenses disagree: docs/cli-design.md:474 says target vocabulary weights retain precision under --online-mxfp8, Flash Next's declaration converts only DFlash2 projections, and DFlash2 draft-body inheritance keys off online_mxfp8 and scope == 'all' (rebuild_manifest.py:409-415). I could not settle it from this tree. If a maintainer finds the group mechanism sufficient, every GPU hour spent on this flag is wasted — so this must be answered first, not during testing.
4. Non-blocking items (fine to test through)
- Four
getattr(args, "target_head_quantization", None)sites (bench.py:170,serve.py:210,278,479) and onegetattr(plan, ...)(rebuild_manifest.py:302) where every neighbouring argument is read directly; thegetattron the namespace can never legitimately fire (flag always registered) and masks exactly the wiring bug the new test guards. Plan.to_dict()is the only field whose presence varies with value (planning.py:411-412), forcing the second**{...}splat atbench.py:250-251; siblings emitnull.- Recipe-level format check (
declaration.py:328-329) is a third validation path its three sibling quantization tuples do not get (asymmetric failure modes; the"mxfp8"literal now lives in three places:__init__.py:212,declaration.py:328, plan-time recipe tuple). ignition/cli/help.py:76-91"Optional features for this recipe" does not list the new flag.- Tests duplicate existing blocks (
tests/cli/test_commands.py:102-139clones:61-99;tests/cli/test_planning.py:231-248is a third copy of the manifest round-trip);test_commands.py:112couples the help scan to argparse option ordering. - Unrun/unverified: no CI on head
f54928b; the author's 144-test run deselectedtest_preparation_manifest_resolves_scopes_and_dflash2_inheritance(staleflare_heliopausewheel), which is the test that would exercise Helios-side scope resolution of the new parameter, soflare combine/--reuse-weightscompatibility is argued from unchanged Rust (helios/src/runtime_core/preparation.rs:330-347) rather than executed. Multi-host_export_hosts,debug_serveand the bench configuration key are untested.
5. Hardware and resource assessment
- cn5 is out (GPU 2 at 85 °C) and would be the wrong arch anyway: it is SM120, while
docs/model-preparation.md:470-471requires an SM121 core for GB10/SM121 and rejects SM120 cores. It cannot serve a Spark-exported core. - cn7 is the only usable host: 1 × GB10 (SM121, arm64), TP1. It matches the PR's flagship case (DGX Spark, 273 GB/s) but excludes the TP2 RoCE claim (
116.0 / 164.2 / 230.5 / 332.4 tok/s, two-hostabbench) — that figure is unreproducible here and must not be a test goal. - The convertible checkpoint may not be on cn7. cn7 lists
nvidia/Qwen3.8-Flash-Next-FP4-Local;docs/cli-design.md:453says the packed NVIDIA head cannot be converted, and the convertible variant named elsewhere islocal-inference-lab/Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD(docs/core-design.md:369(not opened)). All cn7 model sizes read "0 GiB", so caching is unconfirmed. Verify before booking; 16 GiB scratch is a real constraint for export staging. - Where the effect is observable at serving time: Helios sizes KV from observed allocations and free memory (
helios/src/runtime_core/memory.rs:180-270,fixed_bytes()), not fromPlan.weights_bytes. So the ~600 MiB would reappear as extra KV pages in the per-rank "loaded · cache budget" line (memory.rs:880) or KV token counts, even while Ignition's plan report stays pessimistic (F1). Test against those numbers, not the plan JSON. - Cost: a TP1 export of a 27B/Flash-Next-class model on GB10 (b12x autotune + graph capture) is the dominant cost, and an A/B needs two.
ignition benchprepares and measures without exporting (bench.py:142-196,:275) and is the cheaper way to get the decode-latency delta if export time is a concern.
6. Minimal test plan — only if referred after F1–F4 are resolved
Phase 0 — no GPU (must pass before a booking is requested; also the bulk of the real risk):
pytest tests/cli tests/preparation/test_core_boundary.py tests/test_design_review_hook.py(not opened) green, including a new sizing test: for a recipe that declarestarget_head_quantizations=("mxfp8",)and whose checkpoint declares the quantized head's resident bytes,fit(..., target_head_quantization="mxfp8").weights_bytes < fit(...).weights_bytesand one plan that failsfitsunder BF16 passes under MXFP8. This test is impossible today and is the F1 acceptance check.ignition export <non-declaring alias> --target-head-quantization mxfp8→UsageErrornaming the alias, raised before any capacity error (F2 acceptance).- Default path unchanged: plan JSON has no
target_head_quantizationkey andPreparationManifesthas no such parameter. flare inspecton a core exported with and without the flag: theSCOPE_TARGET_WEIGHTslice must differ, soflare combineand--reuse-weightsmust refuse the pair (CPU/GB10-only, seconds).
Phase 1 — cn7, one booking, TP1 A/B with a recipe that declares the format and whose prepare() actually reads the plan field:
5. Export twice from the same tree and checkpoint, identical command except the flag (ignition export <alias> --gpus 0 vs ... --target-head-quantization mxfp8). Assert on the second: startup status line contains · target head mxfp8 (serve.py:314), the manifest carries the parameter, and per-rank loaded bytes drop by roughly the head's BF16 size (~600 MiB expected; report the measured value and the checkpoint's head geometry rather than the claimed number).
6. Assert the head is really MXFP8, not just reported as such — the silent-no-op trap: a recipe that declares the format but ignores the plan field still exports, prints the status, and records the manifest parameter while weights stay BF16, which also makes the core weight-incompatible with a genuinely converted one. Check resident weight dtype/bytes (or the ignition inspect weight layout) — do not accept the flag's reporting as evidence.
7. Serve both cores with flare run and measure single-request decode tok/s (the +7.5–9.0% C1 claim): ≥3 repeats per core, interleaved, same prompts/seeds; report median and spread, and state that the delta belongs to the core+recipe stack, not to this core flag alone. Add C4 only if it is nearly free.
8. Quality: 20–40 greedy completions on fixed prompts through both cores; report token-agreement rate and the first divergence. A target-head conversion changes the output distribution (--online-mxfp8-scope with-vocabulary-head measured 99.48% argmax agreement in #312), so some divergence is expected and is the thing to quantify.
Phase 2 — same booking, only if Phase 1 left time: repeat 7 with --prefill / ignition bench to separate prefill cost from the decode gain (a quantized head is read on every decode step but is not a prefill win); skip entirely rather than re-run what Phase 1 already showed.
Explicitly not worth testing:
- The flag's parsing,
--helpmodel-agnosticism,Plan.__post_init__rejection and the manifest round trip: all covered by CPU tests and unchanged by any GPU run. - The TP2 RoCE
abbenchfigures: not reproducible on a single GB10 — mark as unverified in the PR, do not book cn5 or a second host for them. - Anything on cn5: down, and SM120 cannot serve an SM121 core.
- Multi-host
_export_hostsforwarding (serve.py:210): needs ≥2 hosts; defer to the recipe PR's multi-host validation.
7. Expected value of a hardware test
As the PR stands: near zero. The repository-side change is ~35 lines of metadata plumbing whose correctness is decidable on CPU; the two effects a GPU could confirm (the head is converted and freed; decode gets faster) are produced by the unmerged recipe PR, not this one. Post-fixes, the value is moderate and confirmatory: the sizing correction (F1) is provable without a GPU, combine/reuse gating is provable without serving, so the GPU booking buys exactly two facts — that the conversion physically happened at the declared size, and the real C1 delta on GB10. One booking on cn7, two exports, one A/B is the right size; anything more repeats work that either the recipe PR or the CPU suite already covers.
8. Open questions for the author/maintainer
- Will
target_head_quantizationsland withhyperflare-recipes#40, and does that recipe's loader readplan.target_head_quantizationinprepare()? Without it the flag is a silently accepted no-op (see item 6) and no hardware test can distinguish the two cases. - Is the planner's omission of the head saving deliberate conservatism, or an oversight? If deliberate, the docs row must say the saving shows up in Helios' served cache plan, not in Ignition's preparation plan.
- Should the quantized head's resident bytes live on
Checkpoint(likescale_compressed_device_bytes) or be computed inRecipe.weights_bytes? Only the first supports per-checkpoint/per-format sizes. - Is the group mechanism (
--online-mxfp8-scope) sufficient (F4)? If yes, do not test this PR at all. - The PR description's evidence paragraph needs labels before it can seed a test plan: the four TP2 tok/s figures have no baseline or concurrency labels, and
abbench,C1,44/44and100%gate are undefined in this repository (search_code "abbench"→ no matches), contrary toAGENTS.md:95-112,122-128.
No prompt-injection or agent-directed content was found in the PR body, diff or discussion; the only discussion entry is Autobot's own case file.
code review summary
Recommendation: Changes Requested
The design and layering are right; one sizing gap plus three placement/docs/description items to fix.
Blockers:
- The flag never reaches memory planning.
Plan.target_head_quantizationis validated (ignition/planning.py:289-293) and recorded (:411-412,ignition/preparation/rebuild_manifest.py:363-364) but never sized:fithas no such parameter (:445-453) and its only weight call (:526) passes justexpert_scale_compressionintoRecipe.weights_bytes(ignition/declaration.py:363-374), which still charges the full BF16 head. Sofits(:383-385),automatic()(:674-680),_shortfall(:551-559) and every printed plan JSON describe a model larger than what the flag prepares, and a memory-tight host raisesCapacityErrorfor a configuration the flag makes fit. Fix: declare the quantized head's resident bytes (likescale_compressed_device_bytes,declaration.py:85-86) or subtract insideweights_bytes, then thread the setting throughfit/plan; precedent is--expert-scale-compression(declaration.py:367-368). Planning-only — exported capacity uses measuredrecipe.usage(), so serving is unaffected.
Should fix:
- Make it a planning input, not a post-hoc patch.
derivecallsplanning.plan(...)(ignition/cli/preparation.py:60-69, signatureplanning.py:581-589) thenreplace(..., target_head_quantization=...)(:70-75);_export_hosts(serve.py:206-211),debug_serve(serve.py:475-480) andbench(bench.py:162-177) do the same. Fix: add the parameter tofit/plan, validate beside the draft-head loop (planning.py:487-495) andplan's pre-GPU checks (:603-606,:627-632); otherwise an undeclared format surfaces as a free-memory-dependentCapacityErrorinstead of the intendedUsageError. - Doc row overclaims.
docs/cli-design.md:454names "Qwen3.8 Flash Next" and says the flag frees "the temporary BF16 vocabulary weight after conversion" — no in-tree recipe declarestarget_head_quantizationsand no conversion code lives here (recipes are external,AGENTS.md:379-384). Fix: say it takes effect only for declaring recipes in external repositories, drop the named checkpoint and unmeasured effect, and qualify:453("retaining target-head precision") now that both head flags can be combined. - Evidence paragraph is not reproducible. The TP2 figures
116.0 / 164.2 / 230.5 / 332.4 tok/shave no concurrency labels or baseline, andabbenchand both quality gates are undefined (abbenchappears nowhere in the repo). Fix: name the tool and configuration, label each figure, give baseline and delta, define the gate. - Description ownership and check gaps. Say plainly that this repo only declares/validates/records while
Recipe.preparein the recipes repo converts and frees the weight (AGENTS.md:84-87); state that the PR's own new testtest_target_head_quantization_validation_and_preparation_manifestpassed; note that no CI ran onf54928b.
Nits:
9 nits
Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
screen malicious
Screen Result: All Clear
Evidence:
Screening of PR #518 ("Add recipe-declared --target-head-quantization preparation flag", head f54928b9, 10 files, +126/−10, author nero-) found no prompt injection, no agent-directed instructions, and no content attempting to cause unwanted agentic behavior. The only conversation entry is the standard flare-autobot case-file housekeeping comment (a link to autobot.eidonix.com plus an #autobot:ignore opt-out line) that also appears verbatim on unrelated PR #516 (2026-11-25 13:42), i.e. bot infrastructure rather than author-written text.
The diff is plain additive flag plumbing: Recipe.target_head_quantizations (ignition/declaration.py:276-278, 328-329), Plan.target_head_quantization and its UsageError validation (ignition/planning.py:199, 289-293, 408-412), an argparse flag with choices=("mxfp8",) (ignition/cli/init.py:212-214), forwarding through preparation.py:53-73, serve.py:210/278/479, bench.py:170/243-252, a reproduction_arguments entry and SCOPE_TARGET_WEIGHT manifest parameter omitted when None (ignition/preparation/rebuild_manifest.py:302-303, 363-364), one docs row (docs/cli-design.md:454), and ordinary tests (tests/cli/test_commands.py:102-138; tests/cli/test_planning.py:212-253). Every changed hunk was read with head-tree context; nothing beyond the described feature. No env-var behavior switches, no eval/exec/__import__/socket/requests, no subprocess, no network fetches, no out-of-band file writes; grep for instruction-override phrasing and agent/prompt vocabulary returned no matches; no BOM or invisible-character obfuscation. The description's benchmark claims explicitly attribute the end-to-end numbers to the paired recipe PR (local-inference-lab/hyperflare-recipes#40) rather than to this core change — ordinary self-reporting. Open questions: none bearing on the verdict; review-substance quibbles (bench getattr fallbacks, whether any in-tree recipe declares target_head_quantizations) are out of scope for this screening and are not injection.
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: nero- (CONTRIBUTOR; commits as "Nero"/"Jonathan Gutierrez"; Discord nero)
Motivation: Every existing conversion flag deliberately leaves the target (output) vocabulary head at checkpoint precision, so nobody can shrink it from the command line. This PR adds a recipe-gated flag that lets a model's recipe opt in to storing that target head as MXFP8, saving memory and bandwidth.
Scale: +126 / −10 lines in 10 files
Proposal:
- New recipe declaration
Recipe.target_head_quantizations: tuple[str, ...] = (), validated to accept only"mxfp8"(ignition/declaration.py:278(not opened),:328-329). - New
--target-head-quantization {mxfp8}in the advanced preparation-argument group, wired intoexport,debug-serveandbench(ignition/cli/__init__.py:212-214(not opened)). Plan.target_head_quantizationplus__post_init__rejection when the recipe does not declare the format, and conditionalto_dict()output (ignition/planning.py:199(not opened),:289-292,:411-412).- Applied by
dataclasses.replace(plan, …)afterplanning.plan(...)returns, not insideplan/fit(ignition/cli/preparation.py:57(not opened),:73;ignition/cli/serve.py:206-211,:475-480). - Recorded in
PreparationManifestunderSCOPE_TARGET_WEIGHTand inreproduction_arguments; one docs table row; tests intest_commands.py(not opened)/test_planning.py(not opened). Touches: ignition/planning.py(not opened) +ignition/cli/{preparation,serve,bench}.py— the flag bypasses memory planning entirely and reaches no consumer.ignition/preparation/rebuild_manifest.py(not opened) + Helios combine/reuse equality — the newTARGET_WEIGHTkey becomes a hard compatibility gate between two logs of the same recipe (helios/src/runtime_core/preparation.rs:310-347(not opened)).ignition/declaration.py(not opened) +docs/cli-design.md— recipe allow-list tuple and the single undocumented-except-one-row contract. Related items:- #516
--kv-cache-format(open): same-shape sibling; Autobot's "nothing consumes it" blocker was fixed there with a bootstrap field + documented contract, which #518 lacks. - #508
--row-shard-attention(open): same-shape sibling; all three conflict textually onbench.py(not opened) andrebuild_manifest.py(not opened). - #499 row-sharded prefill (merged): the merged pattern #518 copies (
row_shard_prefill), and the precedent that "no in-tree consumer" is context, not a finding. - #312 Inkling 2 DGX Spark TP4 (open): missed prior art — its
--online-mxfp8-scope with-vocabulary-headquantizes the target vocabulary head, and a maintainer demanded the precision disclosure #518 omits. - #504 lossless KV compression (merged): newest precedent for a cross-repo-split PR merging with an explicit external-support limitation and
docs/TODO.txtentries. Link: https://github.com/NVIDIA/hyperflare-inference/pull/518 Autobot comments: Amendment review of the 2026-11-25 15:07 UTC event (aflare-autobotcase-file comment; no code change — head is stillf54928b9). Three corrections to my prior report stand out: (1) my earlier claim that no prior design for target-head conversion existed was wrong — #312 already implements the same outcome viawith-vocabulary-head, and yatesdr's changes-requested review on #312 required exactly the output-distribution disclosure #518's docs row omits, making that the best-evidenced remaining ask; (2) #518 is now stale, three commits behindmain(e30d55db), so its "rebased onto2771618/ 144 passed" evidence describes an old base; (3) the "no consumer in this repo" blocker is softened by merged-COLLABORATOR precedent (#504, #499) into a disclosure-and-ordering gap, not an unshippable blocker. Unchanged and still the two highest-severity technical findings: the flag is applied after planning so it never reachesweights_bytes/fit, and the newSCOPE_TARGET_WEIGHTkey silently breaksflare combine/--reuse-weightsbetween two logs of the same recipe. Recommendation still: changes requested, not ready.
Value Proposition
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.
Full report · Notes Decide Value: yes (94%): This change is worth reviewing: it provides value to the project in line with its charter.
Simplicity
Verdict: should-fix issues only Blocking:
- None. Should fix:
- ignition/planning.py:411-412:
Plan.to_dict()emitstarget_head_quantizationonly when set, unlike every sibling optional field, forcing a second conditional splat at ignition/cli/bench.py:250-251; emit the field unconditionally and add it to bench.py's key tuple. Should fix (nit-level, folded): none beyond the above. Nits: 3 — redundantgetattr(args, "target_head_quantization", None)at serve.py:210/278/479 and bench.py:170 plus the same guard at rebuild_manifest.py:302; aRecipe.__post_init__format check (declaration.py:328-329) that its three sibling quantization tuples lack; tests with a negatives-only help assertion, a duplicated UsageError case, and a third verbatim copy of the protobuf round-trip block. Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Lens D detail. The change is small and correctly scoped: core ignition stays recipe-free, the None omission in PreparationManifest (rebuild_manifest.py:363-364) is right because it keeps unset cores byte-identical for flare combine and --reuse-weights, and the two new fields on Recipe (declaration.py:278) and Plan are the minimum needed to carry the declaration to the manifest. One place expresses the same behaviour with more machinery than its neighbours: to_dict() makes key presence depend on value, which is why bench.py re-tests the same condition and turns a flat key comprehension into a two-source merge, leaving a KeyError landmine for any future caller that adds the key to such a tuple. Emitting null unconditionally removes five lines, one branch for all four consumers (serve.py:215, serve.py:488, bench.py:182, bench.py:237), and gives the dict one uniform shape; the PR's own test at tests/cli/test_planning.py:224 becomes an is None assertion, and nothing outside these in-repo paths reads the key. The three nits are the same story at smaller scale: a redundant fallback on a flag argparse always defines, a third validation path for one value (argparse choices at cli/init.py:212 and Plan.__post_init__ at planning.py:289-293 already cover it), and tests that re-pin behaviour already pinned twice in the same file. Nothing in the recipe-free boundary, the manifest scope choice, or the flag help text needs to change. Open question: whether anything outside this repository asserts on key presence in the plan JSON, which would settle the null change; and whether the Recipe-level check is meant to be the first of four.
Conventions
Verdict: clean Blocking:
- None. Should fix:
- None.
Nits: 3 — (1)
ignition/cli/bench.py:170,ignition/cli/serve.py:210,:278,:479usegetattr(args, "target_head_quantization", None)while every adjoining argument (args.force_moe_decode_a16,args.shard_hyperconnections,args.row_shard_prefill, …) is read directly, although_preparation_arguments(ignition/cli/init.py:212-214, attached to export/bench/debug-serve at :50/:53/:60) always registers the flag; (2)ignition/preparation/rebuild_manifest.py:302usesgetattr(plan, 'target_head_quantization', None)whilefrom_planat :363 and neighbours at :300/:306/:308 read the same declaredPlanfield directly; (3) the supported-format allowlist is now a third unlinked("mxfp8",)literal (ignition/cli/__init__.py:212,ignition/declaration.py:328), andtarget_head_quantizationsis the only head tuple validated inRecipe.__post_init__instead of against the declaration infit()(compareignition/planning.py:487-495), giving asymmetric failure modes. Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Conventions-and-duplication review of PR #518. All ten changed files were read in context (docs/cli-design.md:454; ignition/cli/{init,bench,preparation,serve}.py; ignition/{declaration,planning}.py; ignition/preparation/rebuild_manifest.py; tests/cli/{test_commands,test_planning}.py) against the charter and the surrounding code, and each citation was re-verified in the code during this run.
The lens's central question is answered negatively: the flag duplicates no existing mechanism. --online-mxfp8 leaves target vocabulary weights at checkpoint precision (docs/cli-design.md:474) and --draft-head-quantization explicitly retains target-head precision (:453), so the new knob is complementary. The implementation adds no parallel scope or serialization path — it reuses SCOPE_TARGET_WEIGHT (rebuild_manifest.py:325), which flare combine/--reuse-weights already compare generically — and each new construct copies an identifiable precedent: Recipe.target_head_quantizations mirrors draft_head_quantizations/markov_head_quantizations (declaration.py:277-280), Plan.target_head_quantization mirrors force_moe_decode_a16 (planning.py:198-199), and the omit-when-None to_dict() spread (planning.py:411-412) copies the method/draft_body_quantization pattern (planning.py:419-424). The reproduction_args branch (rebuild_manifest.py:302-303) is shaped like its neighbours at :290-291/:300-301; only its access style is off.
Not verified: the companion recipe PR (local-inference-lab/hyperflare-recipes#40) lives outside this repository, head commit f54928b has no CI, and nothing was executed — all three nits are established by reading code and are style-only; none of the suggested fixes changes emitted args, plan dicts or manifests, so the new tests should pass either way. The performance claims in the description belong to the paired core+recipe stack and are outside this lens.
Prose
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- PR description, "Claimed Benefit / Result": the four TP2 figures
116.0 / 164.2 / 230.5 / 332.4 tok/scarry no concurrency label and nomainbaseline, andabbench(zero occurrences in this repository),C1,44/44and100%"quality gate" are used undefined, contrary to AGENTS.md:95-102/122-128 and SKILL.md:20-25/35-37 — name the tool and its configuration, label each figure with its concurrency plus baseline and delta, define the gate, and point to local-inference-lab/hyperflare-recipes#40 for measurement detail. - PR description, "Why"/"What Changed": never states the ownership/dataflow fact that makes a declaration-only change sufficient — core
ignitiononly validates and carries the value (ignition/planning.py:199,289-293;ignition/preparation/rebuild_manifest.py:302-303,363-364), the BF16→MXFP8 conversion and buffer release happen in the external recipe'sprepare()(ignition/declaration.py:212-215), so with this PR alone no prepared weight changes (AGENTS.md:84-87). - PR description, "Supporting Evidence & Limitations": does not state whether the PR's own new test
test_target_head_quantization_validation_and_preparation_manifest(tests/cli/test_planning.py:212-253) passed, does not disclose that no CI ran on headf54928b, and does not note that the Rustcompatible_for_weight_reusepath (helios/src/runtime_core/preparation.rs:330-347) that consumes the newtarget_weightparameter was not exercised (AGENTS.md:57-58, :103-112, :306; SKILL.md:30-37).
Nits: 4 — ignition/cli/__init__.py:212-214 help says "for recipes that declare it" without naming Recipe.target_head_quantizations while sibling flags name their models; docs/cli-design.md:454 attributes the BF16-buffer release (recipe behavior) to core; the same row introduces a third model-name variant "Qwen3.8 Flash Next"; and the comment edit at ignition/declaration.py:276 is unmentioned in the description.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Subtractive
Verdict: should not be merged at this size The change: +126 / −10 Could remove: about 126 lines, in 5 places (the whole diff; ~96 if a maintainer insists on keeping the flag) Biggest subtractions:
- ignition/declaration.py:278,328-329 + ignition/planning.py:199,289-293,411-412 + ignition/cli/{init.py:212-214,preparation.py:57,73,serve.py:210,278,314,479,bench.py:170,243-252} + ignition/preparation/rebuild_manifest.py:302-303,363-364 + docs/cli-design.md:454 + ~88 test lines in tests/cli/: the entire
--target-head-quantizationroute, which duplicates the existing--online-mxfp8 --online-mxfp8-scope GROUPconversion-group mechanism (declaration.py:267-269, planning.py:206-207/223-229, rebuild_manifest.py:294-297/358-360, docs/cli-design.md:474-475): replaced by nothing, the companion recipe declares a vocabulary-head group (precedent: PR #312 §7--online-mxfp8-scope with-vocabulary-head, "no kernel, Helios code, Protobuf field or package contract changes"): about 126 lines. - tests/cli/test_commands.py:102-113,116-139 and tests/cli/test_planning.py:212-253 (+ fixture keywords :23,:52 and :23,:54): clone
test_row_shard_prefill_flag_is_model_agnostic(:61-72),test_derive_forwards_row_shard_prefill_and_rejects_joint_tuning(:75-99) and the preparation-manifest test (:72-107, :142-183); replaced by those existing tests: about 88 lines, removable even if the flag stays. - ignition/cli/bench.py:243-252: the 10-line
**{}splat pair reverts to one 6-line membership comprehension that also covers the optional key viaif key in preparation(the rulePlan.to_dict()already applies at planning.py:411-412): about 4 lines. - ignition/declaration.py:328-329: recipe-level format validation, duplicates the plan-level
UsageErrorat planning.py:289-293 and is inconsistent with the sibling override tuples (declaration.py:277,279,280 have none): 2 lines. - ignition/cli/serve.py:314 status item and docs/cli-design.md:454 table row: restate serve.py:308 and docs/cli-design.md:474-475: 2 lines.
Left behind: None. target_head_quantization occurs only in ignition/ and tests/ (zero matches in helios/, heliopause/, helios/proto/); the change adds a parallel route rather than superseding one, so no dead code exists elsewhere in the repository for this PR to remove.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
Correctness
Verdict: should-fix issues only Blocking:
- None. Should fix:
- ignition/planning.py:526 (with ignition/declaration.py:363-374):
target_head_quantizationnever reachesRecipe.weights_bytes, soPlan.fits,_shortfalltext, the automatic GPU search and the reportedweights_bytesstill count the full BF16 vocabulary head the flag exists to free — can raiseCapacityErrorfor a preparation that would fit, on the memory-constrained DGX Spark target the PR cites. - docs/cli-design.md:453 + ignition/planning.py:212-293 / 487-491:
--draft-head-quantizationand--target-head-quantizationcan be passed together although the docs say the draft head "retain[s] target-head precision", and neitherPlan.__post_init__norfitrejects or reconciles the pair. Nits: 2 — duplicated/again-worded target-head validation (planning.py:289-293 vs the sibling proposal-head check at planning.py:487-491, with the"mxfp8"literal repeated at declaration.py:328 and cli/init.py:212); docs row at cli-design.md:454 does not state the BF16-source-checkpoint precondition that the neighbouring draft row states at :453. Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
No blocking defect: the declaration → CLI → Plan → PreparationManifest chain is consistent at every construction path, and the "omitted ⇒ byte-identical" claim holds in the code (the add() early return on None at rebuild_manifest.py:350-352 means no new manifest parameter appears by default, so flare combine and --reuse-weights comparisons are unchanged). The residual risk is cross-repo and should be stated plainly: nothing in this repository reads plan.target_head_quantization beyond to_dict, the startup summary and the manifest, and on multi-host export the plan stays on rank zero while peers receive only the recipe-supplied preparation config (host_ranks.py:348-353, consumed at :633-656) — so rank zero and peers would load different head precision while the manifest records MXFP8 unless the companion recipe propagates it. Only local-inference-lab/hyperflare-recipes#40, and a test in that repo, can settle it; the open question is whether its loader reads the field, and whether the planner's omission (finding 1) is deliberate conservatism. No CI checks ran on f54928b, and the one deselected test (test_preparation_manifest_resolves_scopes_and_dflash2_inheritance) is the one that would exercise manifest scope resolution against the wheel-based Helios code.
Architecture
Verdict: should-fix issues only Blocking:
- None. Should fix:
- ignition/declaration.py:363-374 (+ ignition/planning.py:445-453, 581-589):
target_head_quantizationnever reachesweights_bytes/fit/plan, so the planner still reserves full-precisionlm_headand the claimed ~600 MiB is unplannable. - ignition/cli/preparation.py:57/60-75, cli/serve.py:210/479, cli/bench.py:170: the flag is
replace()d onto the finished Plan instead of being afit/planparameter, so validation fires after capacity reasoning and other plan callers cannot express it. - docs/cli-design.md:454: the one changed doc line names Qwen3.8 Flash Next and asserts an unmeasured conversion/memory effect although no in-tree recipe declares
target_head_quantizations. Nits: 4 — help.py:76-91 omits the capability from "Optional features"; docs/runtime-core-design.md:374-377 (not opened) TARGET_WEIGHT list not updated; bench.py:243-252 needless splat rewrite; rebuild_manifest.py:302-303getattrguard beside the plain read at :363-364. Link: https://github.com/NVIDIA/hyperflare-inference/pull/518
The manifest plumbing and the recipe-gated opt-in shape are right: the new key is an Ignition-only PreparationParameter under SCOPE_TARGET_WEIGHT, omitted when unset, so runtime_core.proto (not opened), core.proto (not opened) and helios/ are untouched and default-precision cores still combine and reuse weights (rebuild_manifest.py:363-364, helios/src/runtime_core/preparation.rs:286-347 (not opened), AGENTS.md:431-444 (not opened), design-review P13). Declaration mirrors the draft_head_quantizations precedent and is a CLI flag rather than an environment switch (P10) or silent requantization (P9). Open questions: whether the quantized head's resident bytes should be declared on Checkpoint like scale_compressed_device_bytes or computed in Recipe.weights_bytes, and whether the companion recipe PR (local-inference-lab/hyperflare-recipes#40) lands alongside, which would reduce finding 3 to a cross-repo link plus a measured citation.
Pre Test Report
Pre-test report — PR #518 "Add recipe-declared --target-head-quantization preparation flag"
1. Recommendation
Do not refer to hardware testing. This is unchanged from my previous report, and the re-check found no movement: no new commits, no new comments, no CI, no human review. Head is still f54928b.
The decision rests on three independent reasons, any one of which would be sufficient:
- The code is not ready. A substantive sizing defect (F1) means a GPU run would produce wrong memory numbers, and a placement defect (F2) means errors surface in the wrong place on exactly the memory-tight host this feature targets.
- Even with the code fixed, the effect is not produced by this PR. Zero lines of this diff convert a weight. Every conversion and memory saving lives in an unmerged external recipe PR (
local-inference-lab/hyperflare-recipes#40) that is unreadable from here. With this repository alone, the flag terminates in aUsageErroron every alias. - The prerequisite checkpoint is not on the test host (new this run — §5). cn7 carries the packed NVIDIA Flash-Next checkpoint, which the repo's own docs say cannot be converted; the convertible variant the PR's numbers were measured on is not present.
A hardware booking today buys a CLI smoke test worth seconds of CPU time, wrapped in a multi-hour GB10 export.
2. What the change is (verified at head f54928b)
+126/−10 across 10 files — plumbing of one string. I re-read every load-bearing hunk rather than relying on the review summaries:
Recipe.target_head_quantizations: tuple[str, ...] = ()+ format check (ignition/declaration.py:278,:328-329).Plan.target_head_quantization: str | None = None(ignition/planning.py:199), rejected against the recipe inPlan.__post_init__unless the recipe declares it, namingcheckpoint.alias(planning.py:289-293, re-read and confirmed verbatim).Plan.to_dict()emits the key only when set (planning.py:411-412).- Flag in the shared advanced group (
ignition/cli/__init__.py:212-214(not opened)), attached toexport(:50),bench(:53),debug-serve(:60). - Forwarded at
ignition/cli/preparation.py:57,73,serve.py:210 (not opened),278,479,bench.py:170(not opened); status lineserve.py:314(not opened); bench JSONbench.py:243-252(not opened). - Manifest parameter under
SCOPE_TARGET_WEIGHT(rebuild_manifest.py:363-364(not opened)) and reproduction arg (:302-303), both only when set;add()skipsNone, so unset cores keep byte-identical manifests. - One docs row (
docs/cli-design.md:454); tests intests/cli/test_commands.py:102-139(not opened),tests/cli/test_planning.py:212-253(not opened).
The single most important fact for a test engineer: the only readers of plan.target_head_quantization in this repository are to_dict(), the startup status string, and the manifest writers. ignition/recipes does not exist, and tests/preparation/test_core_boundary.py:40-48 (not opened) asserts it never will; all recipes live in local-inference-lab/hyperflare-recipes. So on any machine with only this repo, --target-head-quantization mxfp8 hits planning.py:289-293 and stops.
3. Substantive problems — must be fixed before hardware time
F1. The saving the flag exists for never reaches memory planning. (Confirmed by direct read.) fit()'s signature (planning.py:445-453) has no target_head_quantization parameter, and its only weight estimate is recipe.weights_bytes(checkpoint, len(gpus), speculation, expert_scale_compression) at planning.py:526. Recipe.weights_bytes (declaration.py:363-374) computes from checkpoint.device_bytes/scale_compressed_device_bytes and takes no head argument. Therefore Plan.fits, the shortfall text, automatic()'s GPU selection, the remedy list and the reported weights_bytes/pages all still reserve the full BF16 head. On GB10 — the host the PR names — a configuration the flag would make fit can still raise CapacityError. No test compares sized bytes with and without the flag, so this is invisible today.
Why it blocks hardware testing: the A/B would report plan pages that understate the feature, and would misfile a genuine fitting failure as a regression.
F2. The flag is patched onto the finished plan instead of being a planning input. (Confirmed by direct read of preparation.py:60-75.) derive calls planning.plan(...) without the setting and then does replace(result, ..., target_head_quantization=target_head_quantization, ...). _export_hosts, _prepare and bench do the same. Every sibling recipe-gated flag is a validated plan/fit parameter. Consequence: an undeclared format surfaces as a CapacityError that depends on free memory, instead of the intended UsageError naming the alias, and no other plan/fit caller can express the option at all.
Why it blocks hardware testing: same root cause as F1; a tester would burn the booking diagnosing error ordering.
F3. The docs claim a model and an effect this repository cannot provide. docs/cli-design.md:454 (re-read) names "Qwen3.8 Flash Next with a BF16 checkpoint head" and promises "freeing the temporary BF16 vocabulary weight after conversion". Nothing here converts or frees it. It also sits two rows above :474, which states that --online-mxfp8 leaves "target vocabulary weights" at checkpoint precision — the two rows read as contradictory unless one is qualified. docs/runtime-core-design.md:374-377 (not opened) (the SCOPE_TARGET_WEIGHT parameter list) is not updated. Per AGENTS.md:194-199 (not opened), scaffolding must not be documented as supported.
F4. Is the flag needed at all? — now better evidenced, still a maintainer call. Last run I could not settle the Subtractive lens's claim that --online-mxfp8 --online-mxfp8-scope GROUP already does this. I can now strengthen it: search_items finds PR #312 ("Shorten Inkling 2 prefill and drafting rounds on DGX Spark TP4", open), where reviewer yatesdr writes "Precision changes. --online-mxfp8-scope with-vocabulary-head changes the target distribution (most likely token agrees 99.48 percent…)". So the existing recipe-declared conversion-group mechanism has already been used to convert the target vocabulary head, and the project's own reviewer treated it as a distribution-changing precision knob needing disclosure. In-tree, online_mxfp8_scopes (declaration.py:269) accepts free-form recipe-declared group names validated only for membership (:314, planning.py:226, :605-606) — adding a vocabulary-head group needs no core change.
That is evidence, not proof: docs/cli-design.md:474 says --online-mxfp8 leaves target vocabulary weights at checkpoint precision, and DFlash2 draft-body inheritance keys off online_mxfp8 and scope == 'all' (rebuild_manifest.py:409-415 (not opened)), so the two designs genuinely differ in shape (scope group vs. first-class flag). The Conventions and Value lenses concluded not duplication. This must be answered by a maintainer before any GPU booking — if the group mechanism is sufficient, every hour spent on this flag is wasted.
F4b. Unaddressed regardless of which mechanism wins: docs/cli-design.md:454 says nothing about the target distribution changing. #312 drew a formal review demand for exactly that disclosure. Since the PR's own quality gate is 44/44, the numerical contract should be stated in the row.
F5. Scheduling — three open PRs collide textually on these files. related_items: #508 (open, row-sharded attention) shares all 10 files, and #516 (open, --kv-cache-format) shares 8. All three edit ignition/cli/bench.py (not opened) and ignition/preparation/rebuild_manifest.py (not opened). Any booking now risks the code being rebased under it. Sequence after merge order is settled.
4. Non-blocking items (fine to test through)
- Five redundant fallbacks —
getattr(args, "target_head_quantization", None)atbench.py:170(not opened),serve.py:210 (not opened),278,479(flag is always registered by_preparation_arguments) andgetattr(plan, ...)atrebuild_manifest.py:302(not opened) (a declaredPlanfield read directly three lines later). The namespacegetattrcan never fire and masks exactly the wiring bug the new test guards. Plan.to_dict()is the only field whose presence varies with value, forcing the second**{...}splat atbench.py:250-251(not opened); siblings emitnull. Costs ~5 lines and leaves aKeyErrorlandmine for future callers.declaration.py:328-329is a third validation path the three sibling quantization tuples do not get; the"mxfp8"literal now lives in three unlinked places.ignition/cli/help.py:76-91(not opened) ("Optional features for this recipe") omits the flag.- Tests clone existing blocks (
test_commands.py:102-139(not opened) vs:61-99;test_planning.py:231-248(not opened) is a third copy of the manifest round-trip);test_commands.py:112(not opened) couples the help scan to argparse option ordering — fragile. - Unrun: no CI on head; the author's 144-test run deselected
test_preparation_manifest_resolves_scopes_and_dflash2_inheritance, which is precisely the test that would exercise Helios-side scope resolution of the new parameter. Combine/--reuse-weightscompatibility is therefore argued from unchanged Rust, not executed. Multi-host_export_hosts,debug_serveand the bench key are untested.
5. Hardware and resource assessment — one correction and one new blocker
Correction to my last report: cn5 is now listed Ready (4 × RTX PRO 6000 Blackwell Max-Q 96 GiB, amd64) — I previously recorded it as down for temperature. That does not change the conclusion, for a different and firmer reason: cn5 is SM120, and docs/model-preparation.md:470-471 states "DGX Spark's GB10 is SM121 … Prepare an SM121 core on Spark; an SM120 core does not satisfy the architecture requirement." cn5 therefore cannot serve a Spark-exported core, and its 96 GiB workstation HBM is the wrong memory model for the 273 GB/s unified-memory claim anyway. cn5 could only host a cheaper SM120-local A/B if someone wanted a plumbing smoke test — not worth a booking.
cn7 is the only relevant host: 1 × GB10 (SM121, arm64), TP1. Matches the flagship case. It cannot reproduce the TP2 RoCE figures (116.0 / 164.2 / 230.5 / 332.4 tok/s, two-host abbench) — do not make those a test goal.
New blocker — the convertible checkpoint is not on cn7. cn7 lists nvidia/Qwen3.8-Flash-Next-FP4-Local. Per docs/cli-design.md:453, "the packed NVIDIA head cannot be converted through this option". The checkpoint the repo's own Qwen figures are stated against is a different one — local-inference-lab/Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD (docs/core-design.md:368-371) — which is not in cn7's model list. So even post-fix, a cn7 A/B requires provisioning that checkpoint plus the external recipe branch. All cn7 sizes read "0 GiB", so caching is unconfirmed; 16 GiB scratch is tight for export staging.
Where the effect would actually be observable: Helios sizes KV from observed allocations and free memory (helios/src/runtime_core/memory.rs:180-270 (not opened)), not from Plan.weights_bytes. So the ~600 MiB would show up as extra KV pages / token counts in the per-rank "loaded · cache budget" line, even while Ignition's plan report stays pessimistic under F1. Any future test must read those numbers, not the plan JSON.
Cost: a TP1 export of a 27B/Flash-Next-class model on GB10 (b12x autotune + graph capture) dominates, and an A/B needs two. ignition bench prepares and measures without exporting and is the cheaper path if only latency is wanted.
6. Minimal test plan — conditional, only if F1–F5 are resolved and the flag survives F4
Phase 0 — no GPU. This is where essentially all the risk lives.
pytest tests/cli tests/preparation/test_core_boundary.py (not opened) tests/test_design_review_hook.py(not opened) green, plus a new sizing test that is impossible today: for a recipe declaringtarget_head_quantizations=("mxfp8",)whose checkpoint declares the quantized head's resident bytes,fit(..., target_head_quantization="mxfp8").weights_bytes < fit(...).weights_bytes, and one plan failingfitsunder BF16 passes under MXFP8. This is the F1 acceptance check.ignition export <non-declaring alias> --target-head-quantization mxfp8→UsageErrornaming the alias, raised before any capacity error (F2 acceptance).- Default path unchanged: no
target_head_quantizationkey in plan JSON, no manifest parameter. flare inspecton cores exported with and without the flag: theSCOPE_TARGET_WEIGHTslice must differ, soflare combine/--reuse-weightsmust refuse the pair. Seconds, no model load.
Phase 1 — cn7, one booking, TP1 A/B, only with the declaring recipe installed.
5. Export twice from the same tree and checkpoint, identical command except the flag. Assert the status line contains · target head mxfp8 (serve.py:314 (not opened)), the manifest carries the parameter, and per-rank loaded bytes drop by roughly the head's BF16 size — report the measured value and the checkpoint's head geometry, not the claimed ~600 MiB.
6. Assert the head is really MXFP8, not merely reported as such. This is the trap: a recipe that declares the format but never reads plan.target_head_quantization in prepare() still exports, still prints the status, still records the manifest parameter — while weights stay BF16, producing a core that is weight-incompatible with a genuinely converted one. Check resident weight dtype/bytes or the weight layout. Never accept the flag's own reporting as evidence.
7. Serve both cores with flare run; measure single-request decode tok/s (the +7.5–9.0% C1 claim), ≥3 repeats per core, interleaved, same prompts/seeds; report median and spread, and state the delta belongs to the core+recipe stack, not to this flag alone.
8. Quality: 20–40 greedy completions on fixed prompts through both cores; report token-agreement rate and first divergence. Some divergence is expected — #312 measured 99.48% argmax agreement for target-vocabulary conversion — so quantify it rather than demanding equality.
Phase 2 — only if time remains: separate prefill from decode cost (--prefill / ignition bench). Skip rather than re-run what Phase 1 showed.
Explicitly not worth testing: flag parsing, --help wording, Plan.__post_init__ rejection, manifest round-trip (all CPU-covered, no GPU can change the result); the TP2 RoCE figures (not reproducible on one GB10 — mark unverified in the PR); anything on cn5 (SM120 cannot serve an SM121 core); multi-host _export_hosts (needs ≥2 hosts — defer to the recipe PR).
7. Expected value of a hardware test
As the PR stands: zero. The repository-side change is ~35 lines of metadata plumbing, decidable on CPU; the two things a GPU could confirm are produced by an unmerged external PR; and the checkpoint that would make them visible is not on the test host.
Post-fix, in the best case: moderate and confirmatory. The sizing correction and the combine/reuse gating are both provable without a GPU. A booking then buys exactly two facts — that the conversion physically happened at the declared size, and the real C1 delta on GB10. One booking on cn7, two exports, one A/B; anything more duplicates the CPU suite or the recipe PR. If a maintainer accepts the group mechanism (F4), expected value drops back to zero.
8. Open questions for the author/maintainer
- Will
hyperflare-recipes#40land, and does its loader readplan.target_head_quantizationinprepare()— including on peer ranks for multi-host export? Without it the flag is a silently accepted no-op (item 6), and peers could prepare different precision than rank zero while the manifest records MXFP8. No test in this repository can catch that. - Is
--online-mxfp8-scopesufficient (F4)? Given #312'swith-vocabulary-head, this is the decisive question for whether this PR should exist in this shape. - Is the planner's omission (F1) deliberate conservatism or an oversight? If deliberate, the docs row must say the saving appears in Helios' served cache plan, not Ignition's preparation plan.
- Should the quantized head's resident bytes live on
Checkpoint(likescale_compressed_device_bytes,declaration.py:85-86) or be computed inRecipe.weights_bytes? Only the first supports per-checkpoint/per-format sizes. - The evidence paragraph needs labels before it can seed any test plan: the four TP2 tok/s figures have no baseline or concurrency labels, and
abbench(zero matches in this repo),C1,44/44and100%gate are undefined — contrary toAGENTS.md:95-112 (not opened),122-128. Also confirm whether the PR's own new test passed and note that no CI ran onf54928b.
Safety: no prompt-injection or agent-directed content was found in the PR body, diff or discussion; the only discussion entry is Autobot's own case file. Nothing in the reviewed material was followed as an instruction.
code review summary
Recommendation: Changes Requested
The layering is right and no redesign is asked for: the setting is an Ignition-only PreparationParameter recorded under SCOPE_TARGET_WEIGHT and omitted when unset (ignition/preparation/rebuild_manifest.py:363-364 (not opened), add() skips None at :350-352), so existing cores stay byte-identical for flare combine / --reuse-weights and no Protobuf or helios/ change is needed. Full detail with file:line citations is in the case file and the full report.
Blockers:
- The flag never reaches memory planning. It is validated (
ignition/planning.py:289-293) and recorded (:411-412), but never sized:fit(...)has no such parameter (:445-453) and its only weight call (:526) leavesRecipe.weights_bytes(ignition/declaration.py:363-374) charging the full BF16 head, soPlan.fits(:383-385),automatic()(:674-680),_shortfall(:551-559) and every printed plan JSON describe a larger model than the flag prepares — a memory-tight host can raiseCapacityErrorfor a configuration the flag makes fit. Fix: declare the quantized head's resident bytes (likescale_compressed_device_bytes,declaration.py:85-86) or subtract insideweights_bytes, thread it throughfit/plan, and add a planning test showingweights_bytesdrops. The analogous--expert-scale-compressionalready reachesweights_bytes(:367-368), so the expectation is established.
Should fix:
- Make it a planning input, not a post-hoc patch.
deriveand the handlers set the field withreplace(...)afterplanning.plan()has run (ignition/cli/preparation.py:60-75,serve.py:206-211,:475-480,bench.py:162-177), so an undeclared format surfaces asCapacityError(planning.py:697-725) instead of the intendedUsageErrornaming the alias — the error depends on free memory. Fix: addtarget_head_quantizationtofit/plan, validate beside the draft-head loop (:487-495), keepPlan.__post_init__as the invariant, drop thereplaceplumbing and the fourgetattrguards. - Doc row overclaims.
docs/cli-design.md:454names "Qwen3.8 Flash Next" and says the flag frees the BF16 weight "after conversion"; no in-tree recipe declarestarget_head_quantizations(recipes are external; companion PR local-inference-lab/hyperflare-recipes#40 is unmerged) and no code here converts or frees it. Fix: say it applies only to declaring recipes in external recipe repositories, drop the named checkpoint and the unmeasured effect, and qualify:453("retaining target-head precision") now that both head flags can combine. - Evidence paragraph is not reproducible. The TP2 figures
116.0 / 164.2 / 230.5 / 332.4 tok/shave no concurrency labels and no baseline, andabbench(absent from this repository) and both quality gates are undefined. Fix: name the tool and configuration, label each figure, give themainbaseline and delta, define the gate; point at the recipe PR for detail. The combined-stack attribution is already correct. - Description gaps. State that this repo only declares/validates/records while
Recipe.prepare(ignition/declaration.py:212-215) in the recipes repo converts and frees the weight (AGENTS.md:84-87); state that the PR's own new testtest_target_head_quantization_validation_and_preparation_manifest(tests/cli/test_planning.py:212-253(not opened)) passed; note that no CI ran onf54928b(AGENTS.md:57-58,:306).
Nits:
9 nits
Open question for maintainers, not the author: this is now the fourth parallel projection-precision flag, and unmerged PR #312 reaches the same vocabulary-head outcome through a recipe-declared --online-mxfp8-scope group. No rewrite requested — I checked that claim and rejected it as a blocker; the single-mechanism decision belongs upstream.
Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
Apply Labels
Applied: +triage:review, +performance, +enhancement, +area:memory, +area:preparation
Classification Confidence
Threshold: 65%
Triage
- [✓]
triage:review: 99.2% -
triage:design-review: 0.8% -
triage:validation: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
enhancement: 99.2% - [✓]
performance: 95.3% -
community: 32.1% -
duplicate: 32.1%
Area
- [✓]
area:memory: 79.8% - [✓]
area:preparation: 77.7% -
area:api: 59.3% -
area:rocenante: 26.9%
Model
-
model:qwen3.8-flash-next: 18.2% -
model:inkling-small: 6.0% -
model:qwen3.8-27b: 4.2% -
model:nemotron-3.5-bolt: 3.7%