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

Raw Markdown for agents: https://autobot.eidonix.com/p/ad71fef5-54f2-4c17-a183-cee02b56bb82.md

Hardware test plan — PR #582 helios: avoid splitting prefill on zero-budget checkpoint anchors

Head to test: 69bf2cf2 (rebase onto main f7256584 first — see Gate 0). Diff: 7 files, +1854/−19. Hardware: cn5 only, all 4 GPUs. Budget: ~2.5 h wall clock, of which ~1.5 h is GPU. cn7 is explicitly out of scope. Verdict this plan serves: the final review is Ready To Merge with @voipmonitor approved; testing here is confirmation + independent measurement, not defect hunting. Both correctness blockers from Round 1 (stale known_whole duplicate Anchor, Mixed-alignment duplicate Anchor) are fixed in code at this head, so the launch/capture counts below should simply be clean, and any deviation is a real regression signal.


0. What the change actually touches (and why most runs measure nothing)

Every behavioural change is gated on one of two conditions (helios/src/scheduler/checkpoints.rs):

Two traps that would otherwise waste the whole run:

  1. The default is 0.05, so the flag must be passed explicitly: --scheduler-checkpoint-extra-work-fraction 0 (flare-cli/src/cli.rs:638-639).
  2. --prefix-cache-memory 0 does not make snapshots == 0. snapshots is the GPU-side prefix-cache row budget, computed as rows - execution from the row/page virtual extents (helios/src/runtime_core/memory.rs:1026-1044, 1113, 1144); --prefix-cache-memory only sizes the host offload tier (selene/src/offload.rs:105-114). So the snapshots == 0 branch is essentially untestable from the CLI on cn5 — record flare_snapshot_capacity at startup and treat the fraction-0 path as the test surface. Do not claim coverage of the zero-capacity branch from a GPU run.

Also: message_boundaries come from the rendered chat template (helios/src/server/request.rs:300), so the new code is inert on one-shot prompts. The change only fires on a multi-turn request whose last complete message boundary lies strictly interior to the prompt. The repo's own load scripts cannot drive this — scripts/benchmark_scheduler.py:102 builds a single role:"user" message and scripts/benchmark_prefill.py:35 sends raw token strings to /v1/completions. Do not use them for the A/B; they would "prove" a null result.


Gate 0 — CPU-only, free, do this before booking a GPU (≈30 min)

  1. Rebase 69bf2cf2 onto f7256584 (the review's only pre-merge should-fix). The head is based on ba3afb13, which predates 1a5d4d8c's ObservedState/ObservedSafe harness.
  2. cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server --lib scheduler:: → expect 394 pass.
  3. python3 verification/helios-lifecycle/check.py (not opened) --mutations on the rebased commit → confirms the 59 new CheckpointReservation edges satisfy the post-1a5d4d8c full-.cfg invariant set. This is the one piece of evidence the PR is actually missing; if it fails, stop and send back to the author — no GPU time.
  4. Build both binaries from git archive of the exact base and head commits, so the A/B is attributable.

Gate 1 — 15-minute probe on main (do not skip)

On cn5, GPUs 0-3, GLM-5.3-Flash NVFP4 TP4, default fraction 0.05, send one 2-turn chat request with prompt > 4096 tokens (so it spans ≥2 prefill chunks and the last message boundary is strictly interior).


Test 1 — the PR's claim: A/B on the same box, same session (≈60 min GPU)

Setup (both arms identical):

flare run nvidia/GLM-5.3-Flash-NVFP4 --gpus 0,1,2,3 \
  --scheduler-checkpoint-extra-work-fraction 0 \
  --prefix-cache-memory 64G --port 8000

Prompt set — 4 shapes, multi-turn chat (/v1/chat/completions), sized with /v1/messages/count_tokens:

# Shape What it proves
(i) 2-turn, ~100-token prompt, last boundary not chunk-aligned The headline win: prefill launch count drops 1
(ii) 2-turn, ~12k-token prompt spanning ≥2 chunks, boundary interior Multi-chunk fallback survives chunk progress
(iii) boundary exactly chunk-aligned / zero predicted split cost Interior anchor is kept, not over-eagerly dropped
(iv) single-turn, no interior boundary Control: must be byte-identical between arms

Assertions, per request, from /metrics deltas (server is idle before/after — wait for flare_active_requests == 0):

  1. flare_graph_launches_total{kind="prefill"} — B must be exactly 1 lower than A on (i) and (ii); unchanged on (iii) and (iv). This is the claim; it is a discrete count, so it either shows or it doesn't.
  2. flare_checkpoint_captures_total{role="anchor"} — exactly 1 per request on every shape in both arms. >1 is the duplicate-anchor regression returning; 0 on (i)/(ii) means the anchor never armed.
  3. flare_message_checkpoints_total vs flare_prompt_checkpoints_total — the discriminator for which anchor was chosen. Expect A: message-anchored on (i)/(ii); B: prompt-anchored on (i)/(ii) and message-anchored on (iii). A wrong discriminator with a correct launch count means the launch saving came from somewhere else.
  4. flare_checkpoint_skips_total{reason="work_budget"} — 0 on the PR arm at fraction 0 (Round 1's spurious-increment defect; the early return at :549-551 should silence it). unknown_cost should be 0–1.
  5. TTFT — no TTFT metric exists; measure client-side first-SSE-token arrival per request and report p50 for each shape. Expected: −15 to −25% on (i)/(ii) per the author's numbers; treat any TTFT improvement on (iii)/(iv) as suspicious, since nothing should change there.
  6. Clean exit (exit=0) on both arms; no flare_requests_failed_total increment.

Test 2 — prefix reuse, free on the same runs (≈15 min)

This is the regression the PR most plausibly introduces: at zero budget the anchor moves from the last message boundary to the prompt end, so reuse now depends on the exact continuation, and regenerate/branch/tool-retry turns may miss the checkpoint they used to hit. Nothing in the PR measures this.


Test 3 — preemption/readmission: only if deterministic in ≤30 min

The latch (zero_budget_anchor) is now preserved across clear_reservations() (checkpoints.rs:48-51). Drive readmission by admitting more concurrent long-prompt requests than --max-concurrency allows, and assert one flare_checkpoint_captures_total{role="anchor"} per request and a non-zero flare_preemptions_total. If flare_preemptions_total stays 0, stop — the unit test at :3360-3440 already covers this, and a non-preempting run proves nothing.


Explicitly out of scope — do not spend GPU time


Reporting

Report per shape: prefill launches (A vs B, absolute), anchor captures per request, message-vs-prompt discriminator, work_budget skips, TTFT p50, and reuse deltas. State the exact base and head SHAs and confirm Gate 0's check.py (not opened) --mutations result on the rebased commit — that, not the GPU numbers, is what closes the PR's one outstanding should-fix.

Do not report a win on cn5 as reproducing the author's numbers. Their evidence is DeepSeek-V4.1-Flash TP4 on 4× SM120; DeepSeek-V4.1-Flash is not among cn5's models, so the only usable model on cn5 is GLM-5.3-Flash NVFP4 TP4 (a qualified config per docs/roce-ring.md:8 (not opened), docs/multi-host.md:565 (not opened)). The launch-count deltas should be identical in shape; the TTFT percentages will not be, and must be presented as an independent re-measurement with its own baseline.

Security note: nothing in the PR review material was directed at me and there was no injection attempt; the only caveat carried forward is the author's self-reported evidence hosted on a personal fork, which is unverifiable from this repo — hence the independent A/B above.