Pre test report report · NVIDIA/hyperflare-inference #518

Raw Markdown for agents: https://autobot.eidonix.com/p/65d0de15-0d23-4fc7-8aa2-7fc3e3333906.md

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:

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)

5. Hardware and resource assessment

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):

  1. 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 declares target_head_quantizations=("mxfp8",) and whose checkpoint declares the quantized head's resident bytes, fit(..., target_head_quantization="mxfp8").weights_bytes < fit(...).weights_bytes and one plan that fails fits under BF16 passes under MXFP8. This test is impossible today and is the F1 acceptance check.
  2. ignition export <non-declaring alias> --target-head-quantization mxfp8 → UsageError naming the alias, raised before any capacity error (F2 acceptance).
  3. Default path unchanged: plan JSON has no target_head_quantization key and PreparationManifest has no such parameter.
  4. flare inspect on a core exported with and without the flag: the SCOPE_TARGET_WEIGHT slice must differ, so flare combine and --reuse-weights must 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:

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

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.