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

Raw Markdown for agents: https://autobot.eidonix.com/p/50dafed0-eb5b-48ea-a0f4-c33304479e18.md

Pre-Test Report — PR #540 "helios: cost-refresh recovery, prompt+output SAM copy-drafts, and calibrated wide copy-verify"

Recommendation: REFER TO HARDWARE TESTING — narrowly, on cn5, ~4.5 GPU-hours

This reverses my previous three reports, which all said "do not refer." The reason is concrete: the single blocker I used to justify holding back is genuinely fixed at this head, and so are the four stale documents. Commit a85be397/1b0db227 (cost-refresh recovery) and commit 7ca5430c (padding dominance) are now clean, self-contained, and can be validated on our hardware. The two large feature commits still cannot be usefully tested anywhere, so the referral must be scoped.

Head reviewed: e5a69669, base f377dc85, 33 files, +4306/−310. I verified the state of the code myself rather than relying on the review summaries or the author's claims.

What changed since my last report (verified in code this round)

  1. Export blocker — FIXED. heliopause/src/export/binding.rs:201-216 no longer clobbers the field; it derives it: None → "MTP", Some(0|1) → "MTP", Some(2) → "COPY_DRAFT", string forms accepted, anything else → Err("unsupported graph draft_source"), and COPY_DRAFT on a non-speculative graph is rejected at :213-215. The file is now in the PR (it was not, before). A real round-trip test exists at binding.rs:1461-1514 asserting Mtp/Mtp/CopyDraft and rejecting 3, -1, "UNKNOWN" and mixed+copy. Wide copy graphs now survive to a loadable core. This was the one defect that made commit 3 dead code.
  2. Docs — FIXED. All four previously false statements are corrected and the files are in the PR: docs/cli-design.md:200-210 (not opened) (flag now retains/prunes copy-only graphs and rewrites speculative_widths), docs/mtp-design.md:22-66 (SAM-first, ring as fallback, 131,072 caps, min_match_len = 6), docs/scheduling-runtime-design.md:6-15 (not opened),71-91,271-285,409-433 (sam.rs (not opened) in the module index, the copy-verify section, the tighter-batch rule, per-source packed tables), docs/scheduling-theory.md:574-582 (not opened),714-747 (simulator vs Helios idle-credit split), helios/manifest.md:38 (not opened) (draft_source).
  3. Cost authority — FIXED. cost.rs:50-59 adds canonical_draft_source; Key now carries draft_source (:63-79); packed_round_durations is [[Vec<Option<u64>>; 7]; 2], one table per source; the has_mtp existence scan and Estimate.draft_source are deleted; is_copy_only_step moved to scheduler.rs:1196-1199 and reads the step. MTP and copy graphs at identical B/D/W/P now coexist, pinned by cost.rs:533-586.
  4. Producer — FIXED. ignition/preparation/execution.py:104 (not opened) now rejects draft_source == 2 on any non-speculative graph including mixed; test at tests/preparation/test_execution.py:374-392 (not opened).
  5. ~900 lines of dead/test-only surface deleted, matching every simplicity-lens request: RefreshState::idle, SamConfig, with_config, from_shared_prompt, propose_for_context, propose_conditional_continuations, MatchSource, PromptSAM::build, push_slice; PromptSAM is now a private non-Arc struct; the three draft_source wire ladders are unified behind ProposalSource::from_wire/to_wire (speculation.rs:55-70 (not opened)); the duplicated copy-cohort loop collapsed into select_host_allocated_candidate (rounds.rs:764-862); @shieldstar's zero_duration[slot] fix is folded in with both tests.

What still must be said before spending rig time

The PR's entire live evidence base describes superseded code. Every number — max_b == C across C = 4..16, 9.19 vs 9.55 ms/rd at C=4, 3.078 → 3.650 tokens/round, +12.9% tok/s — was measured at the prior head 14019718, which the author states. e5a69669 then refactored exactly the path those numbers traverse: rounds.rs:937-972 hoists gpu_alloc and routes the non-GPU host-allocated MTP path through the new shared select_host_allocated_candidate (rounds.rs:764-862), and policy.rs:1020-1117/1226-1302 changed lane pricing. So no headline figure currently describes the code we would be testing. That is the strongest single reason to test now rather than accept the table.

Two should-fix issues remain, neither blocking:

No in-tree producer of draft_source = 2. ignition/recipes/ does not exist in this repository (recipes are external, local-inference-lab/hyperflare-recipes #48/#49); GraphSignature.draft_source defaults to 1 (execution.py:32 (not opened)). Repo-wide, copy_token_ids appears only in Helios Rust tests, the contract.py binding table, and ignition/direct/packing.py (not opened).

No CI on the head. The 1,712 / 620 / 207 / 71 test counts are self-reported. The only independent live run (@voipmonitor, 4× RTX PRO 6000, DeepSeek-V4.1-Flash TP4) used --no-history-drafts with default copy_verify_shapes=(), so it validated absence of regressions, not either new feature.


Expected value of a hardware test: moderate, and concentrated

Commit What it does Testable here? Value
refresh recovery retains refresh credit across idle; excludes readiness waits; two-tier refresh order Yes, cn5 High — fixes a documented starvation bug on exactly the bursty traffic Flare targets; ~40 real lines
padding dominance tighter ragged batch prunes wider padded B=16/32 Yes, cn5, conditionally Moderate — measured +5.1%/−7.9%/−5.2%, but on superseded code
SAM copy drafts per-request prompt+output suffix automaton Only with a copy-input core Low here — unknown model support; cn7 is unqualified
wide copy-verify W=16/24 copy-only speculative graphs No — no producer exists None — do not test

Minimal test plan (~4.5 GPU-hours on cn5)

Stage 0 — gates (~35 min, do these first; if either fails, stop and re-scope)

  1. One prepare of nvidia/GLM-5.3-Flash-NVFP4 on cn5, TP1, --history-drafts enabled. GLM has learned MTP (docs/core-design.md:357, docs/mtp-design.md:5), so it can exercise commits 1 and 4.
  2. Copy-input probe (~2 min, free): attempt flare run CORE --history-drafts. model/catalog.rs:97-122 hard-errors at load if the speculative graphs lack any of CopyTokenIds/CopyTokenCount/CopyConsumedTokens/CopyGeneration. The error message is the answer to "can cn5 test the SAM path at all." Record it either way — it settles an open question for the author.
  3. Confirm GPU prefix allocation. Inspect the prepared core manifest for speculative_prefix_limits inputs on speculative graphs. Test B is vacuous without this (policy.rs:234-246 gates the whole-list pass on gpu_prefix_allocation, which requires that input per model.rs:362-368). If absent, skip Test B and say so — do not burn a sweep on a path that cannot run.

Test A — refresh recovery, ~2 h — highest value

A/B main vs branch, same model, TP1.

Test B — padding dominance, ~2 h (only if Stage 0.3 passes)

Same rig. Sweep C = 1, 2, 3, 4, 6, 8 — include C=2/3, which the PR never measured, and stop at 8 since the PR reports no effect beyond it.

Stage 2 — cheap compatibility check (~10 min)

Load and serve an already-exported existing core (W=8 MTP, no copy graphs) with and without --history-drafts. Confirms the draft_source defaults keep old cores loading (AGENTS.md:431-444 (not opened)) and confirms the new pruning doesn't damage the normal path. Minutes, real coverage.

Explicitly out of scope — do not spend rig time


Bottom line

The PR is now in testable shape for its two small, valuable commits, and the defect that would have wasted a rig run is gone. Refer on cn5 for ~4.5 hours, gated on the Stage-0 probes, scoped to refresh recovery and padding dominance. No headline number in the PR currently describes this head, so the padding sweep genuinely needs re-running. Withhold any judgement on SAM copy drafts and wide copy-verify — neither can be validated on our hardware today, and testing them would confirm behavior that is unexercised in production.

Note: if maintainers split the PR (which every review recommends, and which I support), test the split-off refresh+padding PR with this identical plan — nothing is lost.


Review integrity

Nothing in the PR, its comments, or the diff attempted to direct this review. @shieldstar's comment contained a suggested patch with code, which I treated as a technical proposal and verified against the diff (it is folded in at policy.rs:1020-1117); @voipmonitor's live-run report was verified as scoped to --no-history-drafts, so it does not cover the new features. The Autobot reviews' claims were re-verified at the cited lines rather than trusted.