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):
self.limits.snapshots == 0→ no checkpoint cuts at all (:482-484), no terminal capture (:957-959).self.policy.checkpoint_extra_work_fraction == 0.0→ interior anchor kept only if the split prices at zero; otherwise latch the prompt end (:510-551).
Two traps that would otherwise waste the whole run:
- 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). --prefix-cache-memory 0does not makesnapshots == 0.snapshotsis the GPU-side prefix-cache row budget, computed asrows - executionfrom the row/page virtual extents (helios/src/runtime_core/memory.rs:1026-1044, 1113, 1144);--prefix-cache-memoryonly sizes the host offload tier (selene/src/offload.rs:105-114). So thesnapshots == 0branch is essentially untestable from the CLI on cn5 — recordflare_snapshot_capacityat 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)
- Rebase
69bf2cf2ontof7256584(the review's only pre-merge should-fix). The head is based onba3afb13, which predates1a5d4d8c'sObservedState/ObservedSafeharness. cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server --lib scheduler::→ expect 394 pass.python3 verification/helios-lifecycle/check.py (not opened) --mutationson the rebased commit → confirms the 59 newCheckpointReservationedges satisfy the post-1a5d4d8cfull-.cfginvariant 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.- Build both binaries from
git archiveof 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).
flare_checkpoint_captures_total{role="anchor"}must increment. If it stays 0, the anchor path is not exercised on this core/GPU and the whole A/B is void — report that instead of guessing.- Record
flare_snapshot_capacity,flare_pages, and the startup cache summary (per-rankN shared snapshot slots) into the test log. - Sanity-check the launch counter is live:
flare_graph_launches_total{kind="prefill"}climbs.
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
- Arm A =
mainbinary, Arm B = PR-head binary. Do not change any other flag between arms. - Run A, B, B, A to cancel thermal drift, and record the base commit hash.
- Single-stream,
max_tokenssmall (e.g. 16), 5 repetitions per prompt shape.
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):
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.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.flare_message_checkpoints_totalvsflare_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.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-551should silence it).unknown_costshould be 0–1.- 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.
- Clean exit (
exit=0) on both arms; noflare_requests_failed_totalincrement.
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.
- Send each conversation twice, identical prefix.
- Compare across arms:
flare_cache_hits_total,flare_cache_reused_tokens_total,flare_host_cache_hits_total,flare_host_cache_reused_tokens_total,flare_snapshot_publications_total,flare_snapshot_evictions_total. - Also send one branch variant (same prefix, different final assistant turn) — that is precisely the case where prompt-end anchoring can lose a hit the message anchor used to provide. Report the reuse delta even if it is negative; that is the honest cost of the change and belongs in the merge record.
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
- cn7 (GB10, arm64). The PR is pure scheduler/cache policy: no CUDA, kernel, or architecture-specific code. A single-GPU arm64 box adds nothing and cannot even span TP.
- The default
0.05path. Unchanged by this PR; the probe at Gate 1 is all it needs. - Snapshot eviction ranking (#568 territory). Cover by unit test, not a GPU run.
- Throughput/soak sweeps. The effect is one prefill launch per request; it appears immediately or not at all. Anything past 5 repetitions per shape is wasted.
- The
promote_request_anchorper-decode-step re-pricing (review Should Fix #2, full-prompt cache hits at fraction 0). It is CPU/allocation only, does not affect correctness, and would be mis-attributed to the GPU. Note it and move on.
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.