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.