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

Raw Markdown for agents: https://autobot.eidonix.com/p/2a4a0275-cb65-4d90-a49f-5df6efe7966a.md

#1 [high] Core findings: flag is plan-metadata only; no conversion in repo

PR #518 (+126/-10, 10 files) adds --target-head-quantization {mxfp8}:

CRITICAL for testing: nothing in this repo converts weights. Only readers of plan.target_head_quantization: to_dict, serve status string, manifest writers. Conversion would be in Recipe.prepare (external). ignition/recipes does not exist and tests/preparation/test_core_boundary.py:40-48 asserts it never does; ALL recipes live in local-inference-lab/hyperflare-recipes (AGENTS.md:9-13, 224-225). Search for "with-vocabulary-head"/"vocabulary_head" in this tree: no matches. => On our hardware with this repo alone, every recipe rejects the flag (planning.py:289-293); a GPU can only observe CLI plumbing + unchanged default path.

#2 [high] Should-fix defects that will move hardware numbers

  1. Memory planning never sees the flag (Architecture finding 1, Correctness finding 1):

    • ignition/planning.py:445-453 fit() has no target_head_quantization parameter; the only sizing call is planning.py:526 recipe.weights_bytes(...). weights_bytes (ignition/declaration.py:363-374) computes from checkpoint.device_bytes and has no head-quantization input.
    • Consequence: Plan.fits, _shortfall text (planning.py:554), automatic() GPU pick (planning.py:674-680) and the options list (planning.py:697-725) still reserve the full BF16 head (~600 MiB TP1 / 1.21 GiB per the PR). A host the flag would make fit can still raise CapacityError; reported weights_bytes/pages understate real capacity.
    • Verification available at head: tests/cli/test_planning.py:212-253 never compares weights_bytes with/without the flag; only to_dict/manifest presence is asserted.
  2. Applied after planning, not as a planning input (Architecture finding 2, Value-prop change 1):

    • ignition/cli/preparation.py:70-75 replace(...) after planning.plan; same at serve.py:206-211, :475-480, bench.py:178. Every sibling flag (mla_compute_mode, row_shard_prefill, online_mxfp8...) is a fit()/plan() parameter validated in planning.py:581-632. So on a tight host the user sees CapacityError instead of the UsageError naming the alias, and no plan()/fit() caller can express the option.
  3. Docs overclaim (Architecture finding 3, Prose N2/N3): docs/cli-design.md:454 names "Qwen3.8 Flash Next" and promises "freeing the temporary BF16 vocabulary weight after conversion" — nothing in this repo converts or frees it; recipe PR local-inference-lab/hyperflare-recipes#40 unmerged. Also contradicts :474 (online-mxfp8 leaves target vocabulary weights at checkpoint precision) unless reworded; docs/runtime-core-design.md:374-377 list of TARGET_WEIGHT parameters not updated.

  4. Open design question (Subtractive, verdict "should not be merged at this size"): claims --online-mxfp8 --online-mxfp8-scope GROUP already does this, citing PR #312's with-vocabulary-head group (Inkling 2 branch, not in this tree). Counter-evidence: docs/cli-design.md:474 says target vocabulary weights retain precision under --online-mxfp8; Flash Next DFlash2 declaration covers DFlash2 only; rebuild_manifest.py:409-415 keys DFlash2 draft-body inheritance off online_mxfp8 and scope=='all'. Value-prop and Conventions lenses concluded NOT duplication. Unresolved maintainer decision.

  5. Nits (not blocking): getattr(args/plan, ..., None) at bench.py:170, serve.py:210/278/479, rebuild_manifest.py:302 where siblings use direct access; Plan.to_dict() conditional splat vs siblings emitting null (planning.py:411-412 forces the second splat at bench.py:250-251); Recipe-level format check :328-329 asymmetric with draft/markov/body tuples; no help.py:76-91 discoverability entry; tests clone existing blocks (tests/cli/test_commands.py:102-139, tests/cli/test_planning.py:212-253).

#3 [high] Hardware fit for testing PR #518

Available: cn5 (4× RTX PRO 6000 Blackwell, SM120, amd64) = NOT taking runs (GPU2 85 °C). cn7 = Ready: 1× GB10 (SM121, arm64), 10 CPUs, 60 GiB RAM, 16 GiB scratch; models listed at "0 GiB": incoai/Qwen3.8-27B-DFlash2, nvidia/Qwen3.8-27B-NVFP4, nvidia/Qwen3.8-Flash-Next-FP4-Local.

Implications for PR #518:

#4 [high] Test-design rules and cheap gates for this PR

Cheap, decisive checks that should be gates before booking GPUs:

  1. After fixing sizing: unit test that fit/plan with target_head_quantization="mxfp8" yields smaller weights_bytes and more pages than without, for a recipe that declares the format — no GPU needed. Currently impossible (fit has no such parameter; planning.py:445-453, weights_bytes declaration.py:363-374).
  2. Rejection path: ignition export <non-declaring alias> --target-head-quantization mxfp8 → UsageError "--target-head-quantization mxfp8: does not prepare this target head format" (planning.py:289-293). CPU-only; covered by tests/cli/test_commands.py:116-139 already.
  3. Default path unchanged: plan JSON has no target_head_quantization key and PreparationManifest has no such parameter (planning.py:411-412, rebuild_manifest.py:363-364, add() skips None at :350-352). Covered by tests; a GPU export would only re-confirm.
  4. Trap to avoid in any hardware test: a recipe that declares the format but never reads plan.target_head_quantization in prepare() still exports, prints "· target head mxfp8" (serve.py:314) and records the manifest parameter while the head stays BF16 — a silent no-op that is also weight-incompatible with genuinely converted cores under combine/--reuse-weights. Any hardware test MUST assert resident weight dtype/bytes (or per-rank KV tokens), not the flag's reporting.
  5. Combine/reuse gate: cores with and without the flag differ in the SCOPE_TARGET_WEIGHT slice (rebuild_manifest.py:363-364; helios/src/runtime_core/preparation.rs:330-347) → must refuse to combine. Verification needs flare-cli on cores, no model serving.
  6. The local run deselected test_preparation_manifest_resolves_scopes_and_dflash2_inheritance (stale flare_heliopause wheel), so Helios-side scope resolution of the new parameter is not exercised by the PR's 144 passing tests; combine/--reuse-weights compatibility is argued from unchanged Rust code, not an executed Rust test.

#5 [high] Where the effect is observable at serving time

#7 [high] Checkpoint availability risk: convertible head variant is not on cn7

Verified at head f54928b via docs.

Also: cn5 is now listed Ready (4x RTX PRO 6000 Blackwell Max-Q, 96 GiB, amd64). But it is SM120 while docs/model-preparation.md:470-471 says "DGX Spark's GB10 is SM121 ... Prepare an SM121 core on Spark; an SM120 core does not satisfy the architecture requirement" => cn5 cannot serve a Spark-exported core, and cannot exercise the GB10 bandwidth claim (96 GiB workstation HBM, not 273 GB/s unified memory). cn5 could only host a cheaper SM120-local A/B for plumbing.

#8 [high] Prior art settled: #312 already ships target-vocabulary conversion via online-mxfp8-scope

Settles F4 (is the flag needed at all?) more firmly than the review summaries did.