#1 [high] PR #518 basics: what it changes, where
PR #518 "Add recipe-declared --target-head-quantization preparation flag", by nero- (CONTRIBUTOR), open 2026-11-25, head f54928b, +126 -10 across 10 files: docs/cli-design.md, ignition/cli/{init,bench,preparation,serve}.py, ignition/declaration.py, ignition/planning.py, ignition/preparation/rebuild_manifest.py, tests/cli/{test_commands,test_planning}.py. Discussion contains only the autobot case-file comment (no maintainer review yet).
Change surface (verified):
- ignition/declaration.py:278
target_head_quantizations: tuple[str, ...] = (); :328-329Recipe.__post_init__rejects names not in("mxfp8",); :276 comment reworded ("used only by proposals" dropped). - ignition/cli/init.py:212-214
--target-head-quantizationchoices=("mxfp8",) in shared_preparation_arguments(used by export :50, bench :53, debug-serve :60). - ignition/planning.py:199
Plan.target_head_quantization: str | None = None; :289-293Plan.__post_init__UsageError naming checkpoint.alias; :411-412to_dict()adds key only when set. - ignition/cli/preparation.py:57 param, :73 applied via
replace(result, ...)AFTER planning.plan(). - serve.py:210 (_export_hosts), :278 (_prepare), :479 (debug_serve) all
getattr(args,"target_head_quantization",None); serve.py:314 startup status "· target head mxfp8". - bench.py:170 same getattr; bench.py:243-253 dict-comprehension rewritten into two
**{}splats. - rebuild_manifest.py:302-303 reproduction args (
getattr(plan,...)); :363-364 manifest param under SCOPE_TARGET_WEIGHT (omitted when None). - docs/cli-design.md:454 new table row.
Verified unchanged: no helios/, no *.proto, no ignition/components/ change (ignition/components/ has init.py + 13 modules = AGENTS.md:385 claim "13 Helios-ABI modules" is accurate).
#2 [high] BLOCKER: flag never reaches memory planning (weights_bytes)
BLOCKER — the setting is recorded but never sized.
Evidence:
- ignition/planning.py:445-453
fit(...)signature has NO target_head_quantization parameter. - ignition/planning.py:526 is fit's only weight call:
recipe.weights_bytes(checkpoint, len(gpus), speculation, expert_scale_compression). - ignition/declaration.py:363-374
weights_bytes(checkpoint, world_size, speculation, expert_scale_compression=None):device_bytes = checkpoint.device_bytes if expert_scale_compression is None else checkpoint.scale_compressed_device_bytes[...]. No head-format term. - ignition/planning.py:199 field is consumed only by post_init validation (:289-293) and to_dict (:411-412). Grep for
target_head_quantizationconfirms no byte math anywhere (result 15). - Readers of weights_bytes: planning.py:325 fixed_bytes -> :383-385
fits; :554_shortfall"needs X GiB weights"; :431 to_dict weights_bytes; :674-680automatic()GPU choice; :697-725 option list / CapacityError.
Why it matters: PR motivation is a 1.21 GiB BF16 head (248,320 x 2,560), ~600 MiB resident on TP1 on DGX Spark GB10 with unified KV memory. Because the estimate still charges BF16 head bytes, plan() can raise CapacityError for a configuration the flag would make fit, automatic() can pick a larger TP size or the wrong GPUs, and the printed plan/bench output overstates residency for every consumer.
- In-tree precedent: the analogous resident-weight flag
expert_scale_compressionIS threaded into weights_bytes (declaration.py:367-368) — so the expectation is established, not new. - AGENTS.md:452-456: an advanced flag is "carried through the plan into the recipe's PreparationConfig, so the plan, its printed report, and its recorded measurements describe what was prepared." Here the plan describes the setting but not its resource effect.
- Peak-vs-steady-state caveat: doc row says the BF16 copy is freed "after conversion", so preparation peak is higher, but
weights_bytesfeeds steady-statefits, and preparation peak is governed by memory_inventory, so this does not justify the omission.
Fix: declare the quantized head's resident bytes on Checkpoint (like scale_compressed_device_bytes, declaration.py:85-86) or subtract inside Recipe.weights_bytes, and thread the setting through fit/plan (and thus derive/_export_hosts/_prepare/debug_serve/bench — same fix as the "patched after planning" finding). How to settle: a planning test asserting weights_bytes drops with target_head_quantization for a recipe that declares head bytes.
#3 [high] SHOULD FIX: flag applied after planning, not inside fit/plan
SHOULD FIX — the setting is patched onto the Plan after planning.plan() returns, so validation happens after sizing.
Evidence:
- ignition/cli/preparation.py:60-69 calls
planning.plan(...)— which has no target_head_quantization parameter (planning.py:581-589 signature). - preparation.py:70-75 then
replace(result, ..., target_head_quantization=target_head_quantization, ...). - Same pattern at serve.py:206-211 (_export_hosts), serve.py:275-280 (_prepare calls derive, so it inherits the derive patch), serve.py:475-480 (debug_serve), bench.py:170 (derives).
- Sibling settings are real plan/fit parameters validated before a GPU is chosen:
online_mxfp8_scopevalidated at planning.py:603-606 (and Plan.post_init :223-229),row_shard_prefillat :627-632,mla_compute_modeat :465-467,expert_scale_compressionat :498-500, draft/markov heads at :487-495. - Where the new check lives: Plan.post_init (planning.py:289-293) — so it runs on a Plan whose sizes and GPU group were already chosen; when sizing fails first, the user sees CapacityError (a memory message) instead of the UsageError that names the alias and format.
- Consequence 2: no other plan/fit caller can express the setting;
fititself (planning.py:662) cannot receive it, which is why the sizing gap exists (see blocker note). - Also,
plan's own validation surface has no entry for it, so the message for an undeclared format depends on free-memory state. - AGENTS.md charter "Solve the right problem in the right place"; design-review.md:80 (P10) says settings belong in recipe declarations, config or CLI flags — satisfied — but the plan layer is where the repository puts this class of validation.
Fix: add target_head_quantization: str | None = None to fit() and plan(), validate inside fit beside the draft-head loop (planning.py:487-495) and in plan's pre-GPU checks (near :603-608), keep the Plan.post_init check as the invariant, and delete the replace(...) plumbing plus the four getattr(args, ...) guards (which exist only because bench/join share parsers — and in fact all three commands register the flag, so they are unnecessary: init.py:50,53,60).
#4 [high] Rejected blocker: "duplicate of --online-mxfp8-scope"
ANSWERED: the "duplicates --online-mxfp8-scope" (subtractive lens) claim does NOT hold as a blocker; downgrade to a maintainer question.
Facts that settle it:
- docs/cli-design.md:474 (--online-mxfp8) explicitly says "Existing packed weights, normalization, convolutions, selectors and target vocabulary weights retain their precision." So online MXFP8 is documented as NOT converting the target vocabulary head — the two mechanisms are complementary, not duplicates.
online_mxfp8_scopesin the current tree is per-recipe free-form group names validated only by membership (declaration.py:268-269, :314; planning.py:225-226, :597-598) — mechanics exist.- The precedent cited by the subtractive agent is PR #312, section 7, which adds
--online-mxfp8-scope with-vocabulary-headon the Inkling 2 branch. That PR is OPEN, stacked on #304/#305, blocked on FlashInfer pins and has a CHANGES_REQUESTED review demanding the vocabulary-head change be split out (read_item #312 discussion). It is not merged main, and its recipe-side code (ignition/recipes/inkling2/*, ignition/components/vocabulary.py) was REMOVED from this repository in commit 17bb3c4a ("Remove extracted hyperflare_recipes, qualification drivers, and model tests from core Flare"). Verified:ignition/components/vocabulary.pydoes not exist at pr/518 head; ignition/components/ holds only init.py + 13 Helios-ABI modules. - Therefore "reuse the existing scope group" is not a mechanism this repository currently offers: it would require that merged PR's recipe-side conversion code to land first. Conclusion for the report: keep as an open question / design note ("the repository is drifting toward four parallel projection-precision flags and a fifth spent on a group name"), NOT a blocker, and explicitly say the reviewer checked #312 and it is unmerged. Do not tell the author to delete the PR.
#5 [high] SHOULD FIX: doc row overclaims (no in-tree recipe declares it)
SHOULD FIX — docs/cli-design.md:454 claims a model and a conversion effect this repository cannot provide.
Text: "| --target-head-quantization {mxfp8} | Prepare the target vocabulary head as MXFP8 for recipes that declare target_head_quantizations (such as Qwen3.8 Flash Next with a BF16 checkpoint head), freeing the temporary BF16 vocabulary weight after conversion. Recipes that do not declare the requested format reject it. Command line only; changing it requires re-export. | Checkpoint precision |"
Evidence:
- Grep for
target_head_quantizationsacross the tree finds only: the field (declaration.py:278), its validator (:328-329), the plan field/validation (planning.py:199, :289-293), CLI (init.py:212), forwarding, manifest, and tests. No in-tree recipe declares it — recipes live in local-inference-lab/hyperflare-recipes (AGENTS.md:379-384), and companion PR local-inference-lab/hyperflare-recipes#40 is unmerged. - Nothing in this repository converts or frees the BF16 head: no ignition/components/ module changed, no ignition/recipes/ exists in-tree, and
target_head_quantizationhas zero consumers beyond plan/manifest/status/dict. The conversion lives inRecipe.prepare, supplied by the external recipe repo (declaration.py:212-215 docstring). - "freeing the temporary BF16 vocabulary weight after conversion" is therefore an unverifiable claim here, and naming "Qwen3.8 Flash Next" reads as present qualification.
- AGENTS.md:194-198 "Do not present scaffolding or partially wired features as supported"; docs/design-review.md:125-136 (P15/P16) reject scope-expanding prose and require changed prose to be reviewed for hidden context.
- Contradiction risk: the neighbouring row docs/cli-design.md:474 says --online-mxfp8 leaves "target vocabulary weights" at checkpoint precision; without wording that ties the two, readers may read them as contradictory.
- Model-name variant: the same table uses bare "Flash Next" (:449, :453, :466, :472) and the repo's alias is
qwen3.8-flash(:405, :1067). "Qwen3.8 Flash Next" is a third variant.
Fix: state that the flag takes effect only when a recipe declares target_head_quantizations (external recipe repositories), drop the named checkpoint and the unmeasured "freeing the temporary BF16 vocabulary weight after conversion" claim (or land alongside the recipe PR and cite the measurement there), and use the existing alias/name form.
#6 [high] SHOULD FIX (prose): PR description evidence gaps
SHOULD FIX (prose) — the PR description's evidence paragraph lacks a baseline, metric labels and two undefined identifiers.
Quoted: "End-to-end serving gains observed on DGX Spark GB10 with the companion Qwen3.8 recipe (+7.5–9.0% C1 decode, ~600 MiB saved on TP1, 44/44 quality gate PASS; plus combined-stack TP2 RoCE 116.0 / 164.2 / 230.5 / 332.4 tok/s abbench and 100% quality gate)".
Problems, each verifiable:
- Four bare TP2 tok/s numbers with no concurrency labels (C1/C4/C8/C16?) and no baseline/delta — the sentence is framed as "gains" but no direction is stated for TP2.
abbenchoccurs nowhere in the repository (search_code "abbench"-> no matches). Unresolvable identifier; AGENTS.md:122-128 requires explaining a component's role before using shorthand.44/44and100%"quality gate" undefined — which gate, which reference set, which pass criterion. AGENTS.md:109: "Test counts and labels such as 'qualified' cannot stand in for the tested contract and result."C1not expanded (though implied).- Combined-stack attribution IS correct — "belong to the paired core + recipe stack, not this core flag alone" satisfies AGENTS.md:100. So this is labelling, not attribution.
- Also in "What Changed": "so existing default-precision cores remain 100% compatible across
flare combineand--reuse-weights" is an assurance, not a stated condition. The checkable statement is: the parameter is omitted from the manifest when None (rebuild_manifest.py:363-364; add() returns early on None at :350-352), so the SCOPE_TARGET_WEIGHT slice compared at helios/src/runtime_core/preparation.rs:337-342 is unchanged. - Validation section never states whether the PR's own new test passed:
test_target_head_quantization_validation_and_preparation_manifest(tests/cli/test_planning.py:212-253) is the one covering the new contract. AGENTS.md:306 "Report a skipped test as an unrun check." - No CI ran on head f54928b (no checks). Limitations list only unrun Rust crates; AGENTS.md:57-58 and item-4 "Keep material failures, skipped checks, and measurement limitations visible" ask for the CI absence to be stated.
- "Rust cargo test crates were not run because no Rust or Protobuf files were modified" is accurate (pr_files confirms), but the combine/--reuse-weights compatibility argument rests on unchanged Rust behaviour that no executed test exercised — saying so makes the limitation explicit.
Fix: name the benchmark tool and its configuration, label each tok/s value with its concurrency, give baseline and delta, define the quality gate, state the new test's result, note the absent CI, and state the basis of the compatibility claim.
Good, no action: the description answers why/what/result/evidence in order (AGENTS.md:82-112); before/after is explicit per area (:88-94); no environment-variable switch; the required Discord: nero line is present and correctly formatted (AGENTS.md:142-153); no text in the description attempts to instruct a reviewing agent.
#7 [high] Correction: sizing gap scope is planning-only
Correction to my own blocker note (entry 2): the exported core's rank memory comes from recipe.usage(prepared) (declaration.py:214 docstring; helios/src/runtime_core/model.rs:156 rank_needs), i.e. measured post-preparation usage — NOT from Plan.weights_bytes. So the effect of the sizing gap is confined to planning/selection:
Plan.fits(planning.py:383-385) via fixed_bytes (:325), so a configuration that would in fact fit can be rejected with CapacityError (raised at planning.py:725);automatic()(planning.py:674-680) may pick a larger TP size or "the GPUs with the most free memory" instead of a fitting smaller group;_shortfall(planning.py:551-559) prints an overstated "needs X GiB weights" and can suggest mitigations (--max-concurrency N, --no-mtp, reserve=0, --language-model-only) for a config that already fits;to_dict()["weights_bytes"](planning.py:431) and the plan JSON printed by serve.py:215 / bench.py:182 / serve.py:488 overstate residency. Do NOT claim the exported/served capacity is understated — that is measured, not estimated. Keep the report to planning/selection accuracy.
#8 [high] Nits and observations (N1-N9)
NITS (verified in code):
N1 — getattr where every sibling uses direct attribute access. ignition/cli/bench.py:170, serve.py:210, :278, :479. All four handlers run under _preparation_arguments (ignition/cli/init.py:50 export, :53 bench, :60 debug-serve), which registers the flag at :212 — the attribute always exists. Neighbouring keywords on the same lines are direct (args.force_moe_decode_a16, args.shard_hyperconnections, args.joint_tuning, args.row_shard_prefill, args.online_mxfp8 at serve.py:288). getattr(..., None) converts broken parser wiring into "user did not request the flag" — a silent wrong-precision export, which is exactly what the new test tests/cli/test_commands.py:102-113 asserts cannot happen. getattr IS the established pattern where the attribute can genuinely be absent: getattr(args,"dcp_size",None) (serve.py:197, :283) and draft-head flags in preparation.speculation (ignition/cli/preparation.py:169-171, not opened). Fix: direct access at all four sites.
N2 — two access styles for one field in one file: rebuild_manifest.py:302 getattr(plan,'target_head_quantization',None) is not None vs :363 plan.target_head_quantization is not None. Real Plan field with a default (planning.py:199); neighbours at :300 (plan.force_moe_decode_a16), :306, :308, :310 are direct. Fix: direct access at :302.
N3 — plan dict shape: Plan.to_dict() (planning.py:411-412) is the only key whose presence changes with its value; every other optional field is emitted with None (expert_scale_compression :401, mla_compute_mode :402, benchmark_selection :429). Consequence in another file: bench.py:243-253 had to rewrite a flat key-tuple comprehension into two **{} splats (:250-251) re-testing the same condition, and preparation[key] would KeyError for the new key. Fix: emit "target_head_quantization": self.target_head_quantization unconditionally and add the key to the existing tuple at bench.py:244-249 (beside "force_moe_decode_a16"), deleting the second splat. Test tests/cli/test_planning.py:224 ("target_head_quantization" not in base.to_dict()) becomes ... is None. NOTE: the omit-when-None argument IS required for the manifest (rebuild_manifest.py:363-364 — byte-identical manifests keep flare combine / --reuse-weights compatible, verified in helios/src/runtime_core/preparation.rs:337-342); it is not required for a diagnostic dict. Keep the manifest omission, fix the Plan dict.
N4 — validation asymmetry: Recipe.post_init rejects unknown names (declaration.py:328-329), which its three sibling tuples do not (draft_head/draft_body/markov_head at :277-280 have no recipe-level format check; membership is enforced at planning.py:487-495). Consequences: a typo'd draft_head_quantizations is accepted and unmatchable, while target_head_quantizations fails at import; a recipe author cannot declare a format the core release does not know. Also a third unlinked ("mxfp8",) literal (CLI choices at init.py:212, Recipe check at declaration.py:328, plan-time membership at planning.py:289). Fix (either): delete declaration.py:328-329 and rely on the plan-time check, matching the draft/markov precedent; or hoist one module-level constant (e.g. TARGET_HEAD_FORMATS) used by both the Recipe check and the CLI choices. Honest counterpoint: failing at recipe load is arguably better behaviour than the draft path — if maintainers prefer it, the fix belongs in a follow-up that makes all four consistent.
N5 — discoverability: ignition/cli/help.py:76-91 builds "Optional features for this recipe" from expert-scale-compression, --mixed-prefill, --no-context-parallel, --no-stream-overlap — no --target-head-quantization. ignition export MODEL --help gives no hint the flag applies; help text says "for recipes that declare it" with no pointer to the declaration. Draft/Markov head flags share the gap → consistency improvement, not a regression.
N6 — docs/runtime-core-design.md:374-377 enumerates what lives in PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT ("such as online_mxfp8, resolved online_mxfp8_scope, and expert_scale_compression"). target_head_quantization now belongs in that list.
N7 — bench churn: bench.py:243-252 (see N3). AGENTS.md:188-193 treats unsolicited restructuring as churn.
N8 — comment edit not announced: declaration.py:276 "# ... used only by proposals." -> "# Preparation overrides for vocabulary and transition projections." Correct once target_head_quantizations joins the group, but not mentioned in the description (AGENTS.md:190-192 comment expansion).
N9 — tests: (a) tests/cli/test_commands.py:102-113 parametrizes three commands but asserts a negative ("Qwen" not in section); one _preparation_arguments call produces all three helps, so the help half needs one non-parametrized positive assertion. (b) Two new tests both assert the same UsageError for an undeclared recipe (test_commands.py:135-138 and test_planning.py:251-253) — one suffices; keep the planning one, which pins the alias in the message. (c) tests/cli/test_planning.py:231-243 re-implements the manifest encode/decode/ordering round-trip that already exists at :94, :153, :189 in the same file; the new behaviour worth pinning is the scope (PREPARATION_PARAMETER_SCOPE_TARGET_WEIGHT) and the reproduction-args pair. (d) Untested: multi-host _export_hosts (serve.py:210), debug_serve (serve.py:479), bench configuration output (bench.py:250-251). AGENTS.md:194-198.
OBSERVATION (not a request): this is now the fourth parallel projection-precision flag (target head, draft head, draft body, Markov head) — each with its own declaration tuple, validator, to_dict entry, reproduction pair and manifest parameter. That is drift from the charter's "implemented once via a single general mechanism"; a maintainer decision on one overrides declaration is worth having before a fifth arrives. Related: PR #312 (open, unmerged) reaches the same vocabulary-head outcome through a recipe-declared --online-mxfp8-scope group on the Inkling 2 branch; the repository has two shapes for one concept. Ask the maintainers which is canonical rather than instructing the author to rewrite.
#9 [high] FULL REPORT (final text)
Full report — PR #518 review
Headline: the design is right (Ignition-only preparation parameter under SCOPE_TARGET_WEIGHT, omitted when unset, so existing cores stay byte-identical and no Protobuf/Helios change is needed). The plumbing is correct and well tested. One blocker: the setting never reaches memory planning, so the plan can reject the configuration the flag exists to enable. Two should-fix items follow from it (where the flag enters the pipeline, and what the docs/description claim).
BLOCKERS
B1. The flag never reaches memory planning, so the size estimate still charges the BF16 head
- Finding:
Plan.target_head_quantizationis validated (ignition/planning.py:289-293) and recorded (:411-412,ignition/preparation/rebuild_manifest.py:363-364) but never used in a byte computation.fithas no such parameter (ignition/planning.py:445-453) and its only weight call (:526) passes justexpert_scale_compressionintoRecipe.weights_bytes(ignition/declaration.py:363-374), which returns the full stored-precision total. - Request: give the planner the quantized head's resident bytes — declare them on
Checkpointbesidescale_compressed_device_bytes(ignition/declaration.py:85-86), or subtract insideRecipe.weights_bytes— and thread the setting throughfit/planfromderive,_export_hosts,_prepare,debug_serveandbench. Add a planning test showingweights_bytesdrops when the format is requested. - Why: the PR's whole benefit is ~600 MiB of BF16 head on TP1 DGX Spark, where memory is the binding constraint. Because the estimate still charges that head,
Plan.fits(:383-385) can reject a configuration the flag makes fit;automatic()(:674-680) can choose a larger TP size or "most free memory" GPUs;_shortfall(:551-559) prints an overstated weight figure and may suggest--max-concurrency N,--no-mtp,reserve="0"or--language-model-onlyfor a plan that already fits; and every printed plan JSON (serve.py:215,serve.py:488,bench.py:182) overstates residency.AGENTS.md:452-456requires an advanced flag to be "carried through the plan ... so the plan, its printed report, and its recorded measurements describe what was prepared"; here the plan describes the setting but not its resource effect. The in-tree precedent is the analogous--expert-scale-compression, which does reachweights_bytes(declaration.py:367-368). Scope note: exported/served capacity comes from measuredrecipe.usage()(declaration.py:214;helios/src/runtime_core/model.rs:156), so this is a planning/selection accuracy defect, not a serving one.
SHOULD FIX
S1. The flag is patched onto the Plan after planning instead of being a planning input
- Finding:
derivecallsplanning.plan(...)— which has no such parameter (ignition/planning.py:581-589) — and thenreplace(result, target_head_quantization=...)(ignition/cli/preparation.py:60-75);_export_hosts(serve.py:206-211),_prepare(via derive),debug_serve(serve.py:475-480) andbench(bench.py:162-177) do the same. Every sibling option is a realfit/planparameter validated before a GPU is chosen:online_mxfp8_scope(planning.py:603-606),row_shard_prefill(:627-632),expert_scale_compression(:498-500),mla_compute_mode(:465-467), draft/markov heads (:487-495). - Request: add
target_head_quantization: str | None = Nonetofitandplan, validate it beside the draft-head loop and inplan's pre-GPU checks raising the sameUsageError, keep thePlan.__post_init__check as the invariant, and drop thereplace(...)plumbing. - Why: as written, on a memory-constrained host an undeclared format surfaces as
CapacityError(a memory message) instead of the intendedUsageErrornaming the alias and format, so the error depends on free memory. It also means noplan/fitcaller can express the setting at all — which is exactly why B1 exists. Charter: "Solve the right problem in the right place."
S2. The doc row claims a model and a conversion effect this repository cannot provide
- Finding:
docs/cli-design.md:454names "Qwen3.8 Flash Next with a BF16 checkpoint head" and says the flag frees "the temporary BF16 vocabulary weight after conversion". No in-tree recipe declarestarget_head_quantizations, noignition/components/module changed, and the conversion lives inRecipe.preparesupplied by external recipe repositories (AGENTS.md:379-384; companionlocal-inference-lab/hyperflare-recipes#40unmerged). The row also sits beside:474, which says--online-mxfp8leaves "target vocabulary weights" at checkpoint precision. - Request: state that the flag takes effect only for recipes that declare
target_head_quantizationsin external recipe repositories, drop the named checkpoint and the unmeasured "freeing the temporary BF16 vocabulary weight" effect (or land with the recipe PR and cite the measurement there), use the existing name form ("Flash Next" /qwen3.8-flash), and make clear the two rows are complementary. - Why:
AGENTS.md:194-198forbids presenting partially wired features as supported, anddocs/design-review.md:125-136rejects scope-expanding prose. A reader will otherwise believe target-head MXFP8 works in this tree, when every in-tree recipe rejects the flag. Related stale wording::453says the draft head is prepared "while retaining target-head precision"; the two flags can now be combined, so that sentence needs qualifying.
S3. The description's evidence paragraph is not reproducible
- Finding: the "Claimed Benefit / Result" paragraph gives
+7.5–9.0% C1 decode,~600 MiB,44/44gate PASS for TP1, then four bare TP2 figures116.0 / 164.2 / 230.5 / 332.4 tok/s"abbench" and100%gate. There is no baseline or delta, no concurrency label per figure,abbenchoccurs nowhere in this repository, and neither quality gate is defined. The validation section also never states that the PR's own new test (tests/cli/test_planning.py:212-253) passed, and does not mention that no CI ran on headf54928b. - Request: name the benchmark tool and its configuration, label each tok/s figure with its concurrency, give baseline and delta, define the quality gate (reference set, criterion, threshold), state the new test's result, and note the absent CI. Point at the recipe PR for the measurement detail, as the paragraph already correctly says the numbers belong to the paired stack.
- Why:
AGENTS.md:95-112requires the headline comparison with scope and material limitations, resolvable references (:122-128), and visible skipped checks (:57-58,:306). As written the only quantitative support for the headline claim cannot be reconstructed by a reader. The combined-stack attribution itself is correct and needs no change.
S4. The description omits the ownership fact that makes a declaration-only PR sufficient
- Finding: the "Why"/"What Changed" sections never say plainly that this repository only declares, validates and records the setting, that
Recipe.preparein the external recipe repository performs the conversion and releases the BF16 weight, and that a recipe without the declaration rejects the flag at planning time (ignition/planning.py:289-293). - Request: one or two sentences stating that dataflow and ownership.
- Why:
AGENTS.md:84-87requires "the relevant dataflow, ownership, or execution constraint that makes the approach valid". It also explains why the diff contains no conversion code, and warns a future core-side reader that a declaring recipe whoseprepare()ignores the field would produce a silently unchanged head — aSCOPE_TARGET_WEIGHTmismatch thatflare combineand--reuse-weightswould then refuse, safely but without an export-time error.
NITS
getattr(args, "target_head_quantization", None)atserve.py:210,:278,:479andbench.py:170. All three commands register the flag through_preparation_arguments(ignition/cli/__init__.py:50,53,60; flag at:212), so the attribute always exists, and every neighbouring keyword on those lines is direct (args.force_moe_decode_a16,args.joint_tuning,args.online_mxfp8). The fallback would turn broken parser wiring into a silent wrong-precision export — the failuretests/cli/test_commands.py:102-113exists to catch. Request: use direct attribute access. (getattrremains correct fordcp_sizeatserve.py:197,283, whose attribute is genuinely optional.)rebuild_manifest.py:302guards withgetattr(plan, 'target_head_quantization', None) is not Nonewhile:363readsplan.target_head_quantizationdirectly. Request: direct access at:302, matchingplan.force_moe_decode_a16at:300.Plan.to_dict()(planning.py:411-412) is the only key whose presence changes with its value; every other optional field is emitted asNone(:401,:402,:429). That forcedbench.py:243-253to replace a flat key-tuple comprehension with two**{}splats re-testing the same condition, and leaves aKeyErrorlandmine for any future caller. Request: emit the key unconditionally and add it to the existing tuple atbench.py:244-249; the new test attests/cli/test_planning.py:224becomes... is None. Keep omitting it from the manifest (rebuild_manifest.py:363-364) — there the omission is what keeps existing cores byte-identical forflare combineand--reuse-weights(helios/src/runtime_core/preparation.rs:337-342); that requirement does not extend to a diagnostic dict.- Format validation is asymmetric:
Recipe.__post_init__rejects unknown names (declaration.py:328-329) while the three sibling head tuples have no recipe-level check (membership is enforced atplanning.py:487-495), and("mxfp8",)is now a third unlinked literal (CLIchoicesat__init__.py:212,declaration.py:328). Request: either delete the recipe-level check to match the draft/markov precedent, or hoist one module constant used by both sites. (Failing at recipe load is arguably the better behaviour; if maintainers prefer it, make all four consistent in a follow-up.) ignition/cli/help.py:76-91lists optional recipe features (--expert-scale-compression,--mixed-prefill,--no-context-parallel,--no-stream-overlap) but not--target-head-quantization. Request: add it soignition export MODEL --helpshows the flag applies. The draft/Markov head flags share the gap, so this is a consistency improvement rather than a regression.docs/runtime-core-design.md:374-377enumerates thePREPARATION_PARAMETER_SCOPE_TARGET_WEIGHTmembers (online_mxfp8, resolvedonline_mxfp8_scope,expert_scale_compression). Request: addtarget_head_quantizationto that list.ignition/declaration.py:276rewords the group comment ("used only by proposals" dropped). The edit is correct; it just isn't mentioned in the description, andAGENTS.md:190-192treats unsolicited comment edits as churn. Request: one half-sentence, or leave it for the commit that needs it.- Test coverage:
test_target_head_quantization_flag_is_model_agnostic(tests/cli/test_commands.py:102-113) parametrizes three commands but asserts only a negative ("Qwen" not in section) on help text produced by one shared_preparation_argumentscall; the undeclared-recipeUsageErroris asserted twice (test_commands.py:135-138andtest_planning.py:251-253); andtest_planning.py:231-243repeats the manifest round-trip scaffolding already present at:94,:153,:189in the same file. Request: one non-parametrized positive help assertion, keep the planning-sideUsageError(it pins the alias), and keep only the scope/reproduction-args assertions in the round trip. Untested:_export_hosts(serve.py:210),debug_serve(serve.py:479) and the bench configuration output (bench.py:250-251). docs/cli-design.md:453needs a qualifier now that both head flags can be selected together; the sentence "while retaining target-head precision" describes only the draft flag alone.
Open questions for the maintainers (not requests for the author)
- The repository now has four parallel projection-precision flags (target head, draft head, draft body, Markov head), each with its own declaration tuple, validator,
to_dictentry, reproduction pair and manifest parameter. That is drift from the charter's "implemented once via a single general mechanism". This PR is not wrong to follow the existing shape, but a decision on one overrides declaration is worth having before a fifth arrives. - Related: open, unmerged PR #312 reaches the same vocabulary-head outcome on the Inkling 2 branch through a recipe-declared
--online-mxfp8-scope with-vocabulary-headgroup, with the conversion in the recipe package. That is not a mechanism available in this tree today (its recipe-side code was removed in17bb3c4a, anddocs/cli-design.md:474states--online-mxfp8leaves "target vocabulary weights" at checkpoint precision), so it does not make this PR redundant — but the two shapes for one concept should be reconciled by a maintainer rather than layer by layer. - Whether the companion recipe PR (
local-inference-lab/hyperflare-recipes#40) lands alongside this one. If it merges with a declaring recipe, S2 reduces to a cross-repo link plus a measured citation, and only a GPU export can confirm the conversion and the ~600 MiB saving.
What is right (no action)
- Layering: an Ignition-only
PreparationParameterunderSCOPE_TARGET_WEIGHT, omitted when unset (rebuild_manifest.py:363-364,add()skipsNoneat:350-352), matchingdocs/runtime-core-design.md:345-358; Rust compares scopes generically (preparation.rs:286-347), soruntime_core.proto,core.proto,helios/andignition/components/are untouched andflare combine/--reuse-weightsvalidation comes for free. - Shape: recipe-declared tuple with default
()(declaration.py:278) mirrors the three sibling head tuples; the flag is an explicit CLI option, not an environment switch (AGENTS.md:446-451, design-review P10), and an opt-in rather than silent requantization (design-review P9). - Propagation: the field is a real
Planfield, sotuning_devices/tuning replicas carry it (tuning_replicas.py:179-185rebuilds the plan fromfields(root)), and the manifest scope choice is semantically correct. - Recording is conditional everywhere it matters (plan dict, reproduction args, startup status), so omitting the flag leaves plans, manifests and exports unchanged.
- The description has the four required parts in order, states before/after per area, separates the paired-stack numbers from this PR's contribution, and ends with
Discord: nero.
#10 [high] SUMMARY REPORT (final text)
Summary report (GitHub post) — PR #518
Reviewed the design, plumbing, prose and tests. The layering is right — the setting is an Ignition-only preparation parameter recorded under SCOPE_TARGET_WEIGHT and omitted when unset, so existing cores stay byte-identical and no Protobuf or Helios change is needed. One blocker before merge, plus should-fix items on placement and on the docs/description claims.
Blockers
- The flag never reaches memory planning.
Plan.target_head_quantizationis validated and recorded but never sized:fit()has no such parameter (ignition/planning.py:445-453) andRecipe.weights_bytes(:363-374) still charges the full BF16 head. Result:Plan.fits,automatic()GPU choice,_shortfalloutput and every printed plan JSON describe a model larger than what the flag prepares. Fix: declare the quantized head's resident bytes (likescale_compressed_device_bytes) or subtract insideweights_bytes, thread the setting throughfit/plan, and add a test showingweights_bytesdrops.
Should fix
- Applied after planning, not inside it.
deriveand the three handlers patch the field on withreplace(...)(ignition/cli/preparation.py:60-75,serve.py:206-211/275-280/475-480,bench.py:162-177) instead of passing it tofit/plan, so an undeclared format surfaces asCapacityErroron a tight host rather than the intendedUsageError. Fix: make it afit/planparameter and validate it there; 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_quantizationsand no conversion code lives here. Fix: say it takes effect only for recipes that declare it in external recipe repositories; drop the named checkpoint and the unmeasured effect. Also qualify:453("retaining target-head precision") now that both flags can be combined. - Evidence paragraph is not reproducible. The TP2 figures
116.0 / 164.2 / 230.5 / 332.4 tok/sare unlabeled by concurrency with no 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 gaps. Say 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, and note that no CI ran onf54928b.
Nits
- Direct attribute access:
getattr(args, "target_head_quantization", None)atserve.py:210/278/479,bench.py:170is unnecessary — all three commands register the flag (ignition/cli/__init__.py:212) and neighbouring keywords are direct. Same atrebuild_manifest.py:302vs:363. - Plan dict shape:
to_dict()(planning.py:411-412) is the only key whose presence varies; emit it unconditionally and add it to the tuple atbench.py:244-249, removing the second**{}splat (:250-251). Keep the manifest omission — there it preservescombine/--reuse-weightscompatibility. - Validation asymmetry:
declaration.py:328-329rejects unknown formats, unlike the three sibling head tuples, and makes("mxfp8",)a third unlinked literal. Fix: delete it to match precedent, or hoist one constant used by both sites. - Discoverability: add
--target-head-quantizationto the "Optional features for this recipe" list (ignition/cli/help.py:76-91) and to theSCOPE_TARGET_WEIGHTlist indocs/runtime-core-design.md:374-377. - Tests: one three-command parametrization asserts only
"Qwen" not in section; the undeclared-recipeUsageErroris asserted twice;test_planning.py:231-243repeats the existing manifest round-trip. Keep one positive help assertion and the scope/reproduction-args checks;_export_hosts,debug_serveand the bench details output are untested.
Open question for maintainers (not the author): this is the fourth parallel projection-precision flag, and open unmerged PR #312 reaches the same vocabulary-head outcome through a recipe-declared --online-mxfp8-scope group. No rewrite requested — but the single-mechanism decision belongs upstream.
#11 [high] Research summary
Both deliverables are written and saved to the scratchpad (entry 9 = FULL REPORT, entry 10 = SUMMARY REPORT). Both are ready to post.
Verdict: the design is sound — an Ignition-only preparation parameter under SCOPE_TARGET_WEIGHT, omitted when unset, so no Protobuf/Helios change and existing cores stay byte-identical. One blocker, four should-fix, nine nits.
Blocker (1): the flag never reaches memory planning. fit() has no such parameter (ignition/planning.py:445-453) and Recipe.weights_bytes (declaration.py:363-374) still charges the full BF16 head, so Plan.fits, automatic() GPU choice, _shortfall and every printed plan JSON describe a larger model than the flag prepares — precisely on the memory-constrained DGX Spark TP1 target the PR motivates. I corrected my own first draft here: exported capacity comes from measured recipe.usage(), not the estimate, so the defect is planning/selection accuracy only.
Should fix (4): (a) the flag is patched onto the Plan via replace(...) after planning rather than being a fit/plan input, so an undeclared format surfaces as CapacityError instead of UsageError; (b) docs/cli-design.md:454 names Qwen3.8 Flash Next and a conversion/free effect that exists only in the unmerged companion recipe PR; (c) the description's evidence paragraph has unlabeled tok/s with no baseline and two identifiers (abbench, the quality gates) that are undefined and unresolvable in this repository; (d) the description omits the ownership fact (Recipe.prepare in the recipes repo performs the conversion) and the results of its own new test, and doesn't mention that no CI ran.
Nits (9): unnecessary getattr fallbacks, the omit-when-unset to_dict shape that forced a two-splat rewrite in bench.py, asymmetric format validation, missing discoverability in help.py and the design doc, and test duplication/gaps.
One agent finding I rejected: the subtractive review called the whole PR a blocker because --online-mxfp8-scope already exists. I verified that docs/cli-design.md:474 explicitly states --online-mxfp8 leaves target vocabulary weights at checkpoint precision, and that the cited precedent (PR #312, with-vocabulary-head) is open, unmerged, and its recipe-side code was removed from this repository in 17bb3c4a. So it's not a duplicate path today. I kept it as a maintainer open question — alongside the real observation that this is now the fourth parallel projection-precision flag — rather than telling the author to delete the work.
#12 [high] Post metadata, case-file link and framing
Metadata and framing for the GitHub post (so the final report and summary can be published without re-reading the PR).
- PR: NVIDIA/hyperflare-inference #518, "Add recipe-declared --target-head-quantization preparation flag".
- Author: nero- (CONTRIBUTOR). Contact line in the description:
Discord: nero(correct format, AGENTS.md:142-153) — mention if the post addresses the author directly. - Branch feat/target-head-quantization -> main, head f54928b, +126 -10 across 10 files. Opened 2026-11-25.
- Discussion: only the autobot case-file comment (link https://autobot.eidonix.com/api/v1/cases/825e5624-3113-4147-b3d6-aefe7b47b706.html). No maintainer review yet, so nothing to reconcile with earlier reviewer asks; this is first-pass feedback.
- No CI checks ran on the head commit (relevant to the S3 prose finding).
- Companion PR: local-inference-lab/hyperflare-recipes#40 (unmerged) — supplies the recipe declaration and the actual BF16->MXFP8 conversion; the PR says merge this before or alongside it.
- Tone/scope for the post: the author's design is correct and the plumbing is well tested; lead with that, then the single blocker, then placement/docs/description fixes. Say explicitly that the blocker is not a redesign — the field, the manifest scope and the omit-when-unset behaviour are all right; only sizing input and where validation happens need to move.
- Do not tell the author to delete the PR or reuse another mechanism: I checked the "duplicate of --online-mxfp8-scope" claim and rejected it (entry 4). If a maintainer decides otherwise, that is an upstream decision on projection-precision mechanisms, phrased as an open question.
#13 [high] Citation index for all findings
Consolidated citation index — every file:line used in the report, verified at pr/518 head (f54928b). Use this instead of re-reading code when assembling the final report.
BLOCKER B1 (sizing):
- ignition/planning.py:445-453 (fit signature, no target_head_quantization); :526 (only weights_bytes call); :325 fixed_bytes; :383-385 fits; :551-559 _shortfall text; :674-680 automatic(); :697-725 option list + CapacityError; :431 to_dict weights_bytes.
- ignition/declaration.py:363-374 weights_bytes; :367-368 expert_scale_compression precedent; :85-86 scale_compressed_device_bytes; :214 usage() docstring (served capacity is measured, not estimated).
- AGENTS.md:452-456 (advanced flag carried through the plan).
SHOULD FIX S1 (placement):
- ignition/cli/preparation.py:60-69 plan() call, :70-75 replace(...).
- ignition/cli/serve.py:206-211 (_export_hosts), :275-280 (_prepare), :475-480 (debug_serve).
- ignition/cli/bench.py:162-177.
- ignition/planning.py:581-589 (plan signature), :603-606, :627-632, :498-500, :465-467, :487-495 (sibling validations), :289-293 (Plan.post_init check).
- ignition/cli/init.py:50,53,60 (registration), :212-214 (flag).
SHOULD FIX S2 (docs):
- docs/cli-design.md:454 (new row), :453 (draft-head row "retaining target-head precision"), :474 (--online-mxfp8 leaves "target vocabulary weights" at checkpoint precision), :405/:1067 (alias
qwen3.8-flash). - AGENTS.md:379-384 (recipes live in hyperflare-recipes); AGENTS.md:194-198 (no scaffolding presented as supported); docs/design-review.md:125-136 (P15/P16).
SHOULD FIX S3/S4 (description):
- AGENTS.md:82-112 (four questions), :95-102 (headline comparison, scope, no combined attribution), :103-112 (baseline/config/result/limits), :122-128 (resolvable references), :57-58 and :306 (report unrun/skipped checks), :84-87 (dataflow/ownership).
NITS:
- ignition/cli/serve.py:210,278,479; ignition/cli/bench.py:170 (getattr); serve.py:197,283 (legitimate getattr, dcp_size).
- ignition/preparation/rebuild_manifest.py:302-303 (getattr) vs :363-364 (direct); :300 (sibling direct); :350-352 add() skips None.
- ignition/planning.py:411-412 to_dict conditional (vs :401,:402,:429 unconditional); ignition/cli/bench.py:243-253 (two **{} splats, :250-251).
- helios/src/runtime_core/preparation.rs:286-347 (generic scope compare; :337-342 target-weight slice) — the reason manifest omission must be kept.
- ignition/declaration.py:328-329 (recipe-level format check) vs :277-280 (sibling tuples with none); ignition/cli/init.py:212 (choices literal); ignition/planning.py:487-495 (draft/markov membership).
- ignition/cli/help.py:76-91 (optional-features list).
- docs/runtime-core-design.md:374-377 (SCOPE_TARGET_WEIGHT member list), :345-358 (preparation metadata contract).
- ignition/declaration.py:276 (comment reword); AGENTS.md:188-193 (churn).
- tests/cli/test_commands.py:102-113, :116-139; tests/cli/test_planning.py:212-253 (esp. :224, :231-243, :251-253), :94/:153/:189 (existing round trips). Untested: serve.py:210, serve.py:479, bench.py:250-251.
WHAT IS RIGHT: ignition/components/ holds init.py + 13 Helios-ABI modules (AGENTS.md:385) and no file there changed; no helios/, no *.proto change; tuning_replicas.py:179-185 rebuilds the plan from fields(root) so replicas inherit the field.