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

Raw Markdown for agents: https://autobot.eidonix.com/p/a62a33b2-2826-4426-9445-fb00e4d90537.md

#1 [high] Verified: PR #229 targets deleted directories (blocking)

Verified at main vs pr/229 head (eebbf1d):

#2 [high] Verified: packing.rs per-model dispatch + record v2 (blocking/should-fix)

packing.rs at pr/229 (result 11, lines 98-113): match config.contract.frontend.image_layout { ImageLayoutKind::Bracketed if config.contract.frontend.image_preparation == Some(ImagePreparationKind::MuseGlimmer) => muse_glimmer(...), ImageLayoutKind::Bracketed => bracketed(...), ... }. Every other arm dispatches on layout alone; this one dispatches on the per-model preparation enum. Prohibited by AGENTS.md:357-364 ("image preparation/layout implementations use independent typed enum identifiers; those identifiers cannot select ... text-graph input packing") and docs/design-review.md:8-12, 50-52. Also tensor_layout (result 36 lines 22-70; pr/229 line 51-75) now adds Bracketed to vision_interpolation_indices/weights and adds Bracketed-only vision_cu_window_seqlens (patches/64+2) and vision_reverse_index (patches) — so one layout id names two staged-tensor sets. Fix is cheap and additive: new ImageLayoutKind value (main tops out at ClassToken; contract_enum at src/model/contract.rs:68 shows ImagePreparationKind ... PaddedGrid = 10). record.rs (results 34, 52): main writes/reads FLAREIMG\x01 (results 26/27); PR writes \x02 and rejects \x01 in decode (:73, :116) with no v1 reader, and bumps encoded_len to 9 + 8*8. Effect is a silent cache drop via conditioned.rs materialize_cached (pr/229 lines 149-166: decode fail → store.invalidate → re-materialize). AGENTS.md:431-444 requires retaining readers for existing cores; the v1 layout is v2 minus two trailing vectors, so a v1 reader is a few lines. Also conditioned.rs:169 still tags the payload "flare-prepared-image-v1" after the bump.

#3 [high] Verified: total_size check already changed on main (superseded)

checkpoint.py total_size:

#4 [high] Verified: ModelOpt parser extraction is dead once recipes leave

ignition/preparation/quantization.py:

#5 [high] Supporting verified facts (proto tags, conditioned, docs, recipe)

Other verified facts for the report:

#6 [high] Decision: defer hardware testing; plan for split follow-up

DECISION: do NOT refer PR #229 to hardware testing in its current shape. Reasons:

  1. ~73% of added lines are in directories main deleted (ignition/recipes, ignition/reference, qualify, tests/recipes) and main's tests/preparation/test_core_boundary.py:42/62-64 forbids them. The branch cannot pass main CI; its recipe imports components that no longer exist on main. Testing it validates a tree that can never merge.
  2. The runtime half needs an architectural change before merge (packing.rs per-model dispatch on ImagePreparationKind inside an ImageLayoutKind match, AGENTS.md:357-364 / design-review principle 3) — code that will be rewritten should not be validated on GPUs.
  3. Charter gate for new recipes/aliases unmet and unfixable by testing alone: no export/serve from the branch (PR says so), single checkpoint (config.py:63-73 rejects #192's checkpoint), unresolved alias with #192, proto tag 11 collision with #483.
  4. Two shared changes must be re-decided, not tested: total_size (main already accepts >= payload via 0a4a6eb1) and FLAREIMG v1 reader policy.

When the split happens, the follow-up runtime PR is small (~1.1k lines: helios image profile plumbing + proto/contract/describe/protobuf + frontend.py profile + conditioned wildcard fix + resize Filter). THAT is what a test plan should target — plan written in the report: single-GPU cn5, ~2-3 GPU-hours, 3 phases (regression on existing image cores + prepared-image record upgrade; new windowed-layout export/serve parity; text+image request with drafter), no throughput A/B (no kernel changes, claims come from fork cores). Resource note: needs > 16 GiB scratch for the ~23-28 GiB checkpoint/core.