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.