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

Raw Markdown for agents: https://autobot.eidonix.com/p/e0316b28-c2e4-459f-83d9-ad97e0f70301.md

Hardware test plan — PR #660 (helios/scheduler: budget interior conversation-anchor splits)

What is being validated

Head cf744dffef8d (cf744df, +887/−151, 12 files; production change is +95/−60 in helios/src/scheduler/checkpoints.rs). Re-review verdict is Ready To Merge, 0 blockers, 0 should-fix; the case file says "Decision to Test: yes (71%)". This is the residual hardware risk, not a fix-verification pass.

The change: an interior conversation anchor (last eligible message boundary before the prompt end) was previously pushed unconditionally at any nonzero checkpoint_extra_work_fraction with split_ns: 0, adding an uncharged padded prefill launch. Now it is retained only when split_ns == 0 || extra_spent_ns + split_ns <= allowance(initial_prefill_ns.unwrap_or(whole), fraction) (checkpoints.rs:96-98, :608-650); otherwise the request falls back to the zero-split prompt end. A retained interior anchor charges its split to reserved_ns/extra_spent_ns and to flare_checkpoint_extra_work_nanoseconds_total (:651-658, :924-934), sharing headroom with optional Message/Endpoint cuts, while the anchor snapshot copy stays uncharged.

Two properties must be measured on silicon:

Hardware reality check — read this first

The PR's exact A/B cannot be reproduced on this hardware. It ran DeepSeek-V4.1-Flash TP4 on 4× RTX PRO 6000. No DeepSeek-V4.1 core exists on cn5 or cn7, the best cell is 16 GiB scratch (docs warn against exporting cores here), and the cores report 0 GiB. So do not plan to re-run the PR table; plan to confirm the mechanism and its direction on the closest available core, and report the delta as a first data point on SM120, not as a reproduction.

Machine What it can do for this PR What it cannot
cn5 (4× RTX PRO 6000 96 GiB, 48 CPU, 125 GiB RAM, 16 GiB scratch, amd64) The only concurrency cell. Has local-inference-lab/GLM-5.3-Flash-NVFP4 and nvidia/GLM-5.3-Flash-NVFP4 → GLM-5.3-Flash TP4 for P2 at C=16/C=32 and for P1 padded-tail on a 4.5K prompt. Matches the PR's 4× RTX PRO 6000 hardware class. Cannot run DeepSeek-V4.1 (the PR's workload); magnitudes will not transfer — GLM uses 256-token KV pages (docs/core-design.md:1487-1488), DeepSeek 128, so snapshot cost and reuse granularity differ.
cn7 (1× GB10, 10 CPU, 60 GiB RAM, arm64, unified memory) TP1 only (zai-org/GLM-5.3-Flash, nvidia/GLM-5.3-Flash-FP4-Local). Valuable only for (a) proving the arm64 build serves, (b) a single-GPU sanity read of P1's launch-count reduction. No multi-GPU, GB10 is pre-#656 in the PR's own GB10 number, 10 CPUs is thin for a load generator. Lowest value — cut it if time-boxed.

Two build/run facts that shape the steps below:

The plan (≈3 GPU-hours total, all on cn5)

Step 0 — arm preparation, zero GPU time (10 min)

Build both arms sequentially; keep only the flare binary (16 GiB scratch cannot hold two build trees).

# candidate
git fetch origin pull/660/head && git checkout cf744dffef8d08d83582a0f7601cc04544ecf4f0
cargo build --release --manifest-path flare-cli/Cargo.toml (not opened)   # AGENTS.md:250
cp flare-cli/target/release/flare /scratch/flare-candidate

# baseline: the PR's stated base, which is current main for this test
git checkout 5d53040e
cargo build --release --manifest-path flare-cli/Cargo.toml (not opened)
cp flare-cli/target/release/flare /scratch/flare-baseline

Also, before spending any GPU time, run the CPU-only tests that already pin the behavior — these are the real regression gate and they cost nothing:

cargo test --locked --release --manifest-path helios/Cargo.toml \
  --features runtime-core,server --target-dir flare-cli/target \
  -- scheduler::checkpoints::tests

Relevant tests added by the PR: checkpoints.rs:4203 (453-token prompt with boundary at 450 → falls back to 453, exactly 1 prefill launch, terminal capture still funded at 0.05, turn-2 hits Anchor(453) and latches), :4361 (guard revocation keeps the charged anchor split), :4508 (multi-chunk at 0.28), :4623 (zero-split retention when spent exceeds available), :4685 (request_anchor_endpoint and checkpoint_selection agree with spent budget and no latch). If any of these fail, stop — do not spend GPU time.

Step 1 — the one cell that matters: P1 padded-tail, cn5, GLM-5.3-Flash TP4 (≈40 min)

This is the highest-value test: it directly exercises the discontinuity the PR removes, and the short prompt is cheap.

Run each arm on the same core, same flags:

/scratch/flare-<arm> run <GLM-5.3-Flash TP4 core path> --gpus 0,1,2,3 \
  --bypass-performance-check --embedding-table-storage ram \
  --scheduler-policy balanced \
  --scheduler-checkpoint-extra-work-fraction 0.05 \
  --host 127.0.0.1 --port 8000

Drive it with the in-repo closed-loop harness (scripts/benchmark_scheduler.py), which reports TTFT median/p99, coalesced groups, metrics_before/metrics_after, and per-request cached_tokens:

# A: boundary a few tokens before the prompt end (the 453/450 shape) — C=1, 6 trials
python3 scripts/benchmark_scheduler.py --base-url http://127.0.0.1:8000 \
  --model <served name> --concurrency 1 --prompt-tokens 453 --output-tokens 64 \
  --seconds 30 --warmup-seconds 10 --trials 6 --variant <arm> --output /scratch/p1-a-<arm>.jsonl

# B: same prompt, 32K tokens, C=1 — the "must not regress long prompt" control
python3 scripts/benchmark_scheduler.py ... --concurrency 1 --prompt-tokens 32768 ...

The harness's built-in prompt is a single user message (scripts/benchmark_scheduler.py:71-121), so the only message boundary is the final one, which lands a few tokens before the prompt end — exactly the padded-tail geometry. Known limitation: it cannot build a multi-turn conversation, so the turn‑1→turn‑2 reuse check needs a ~20-line local extension that appends {"role":"assistant",...},{"role":"user",...} and re-POSTs. Do that; it is the check that proves the fallback still yields reuse.

Pass gates for Step 1 (candidate arm, vs baseline arm on identical prompts):

Observation Source Required
Prefill launches for the 453-token prompt flare_graph_launches_total{kind="prefill"} delta 1 on candidate (baseline: 2). This is the fix.
Anchor capture endpoint flare_checkpoint_captures_total{role="anchor"} delta 1 per request, at the prompt end
Turn‑2 cached tokens usage.prompt_tokens_details.cached_tokens == full turn‑1 prompt length
32K control TTFT p50 harness ttft_median_seconds candidate within noise of baseline (PR claims +0.6%); a >5% regression fails
Failures flare_requests_failed_total 0 delta in both arms

Read the sample size honestly: 6 trials of a 30 s C=1 loop with 64 output tokens is ~200 requests per arm — enough for launch-count and cached-token correctness, not enough to resolve a 3–5% TTFT difference. Do not report a TTFT speedup from this cell.

Step 2 — P2 concurrency direction, cn5 TP4 (≈90 min, the only expensive cell)

C=16 and C=32 on a mid-length prompt, both arms, alternating order to cancel drift:

python3 scripts/benchmark_scheduler.py --base-url http://127.0.0.1:8000 \
  --model <served name> --concurrency 16,32 --prompt-tokens 4096 --output-tokens 256 \
  --seconds 90 --warmup-seconds 20 --trials 3 \
  --pair-index 1 --variant <arm> --pair-order <baseline,candidate|candidate,baseline> \
  --output /scratch/p2-<arm>.jsonl

Run the pair twice with reversed --pair-order and require the sign of the delta to agree; discard a cell whose two pair orders disagree. Read tokens_per_second, ttft_median_seconds, burst_gap_p99_seconds, coalesced groups, and the flare_checkpoint_extra_work_nanoseconds_total delta.

What to expect and how to judge it: the candidate should show a larger flare_checkpoint_extra_work_nanoseconds_total per request (the split is now charged) and, when the split is retained, fewer prefill launches. The PR's mixed-c32 win needs mixed prefill/decode graphs, which GLM-5.3 declares (--mixed-prefill, docs/cli-design.md:464), so check flare_graph_launches_total{kind="mixed"} > 0 in the cell — if it is 0, the cell cannot test the claimed win and you must say so rather than reporting a null result.

Pass gates: 0 request failures; no flare_graph_launches_total kind disappearing; per-user p50 decode rate not worse than the PR's already-disclosed trade-off on the comparable cell. A regression larger than the PR's disclosure is a finding to report, not a test failure to paper over.

Step 3 (optional, only if Steps 0–2 are clean and time remains) — cn7 arm64 sanity, ≈30 min

One TP1 zai-org/GLM-5.3-Flash cell at C=1 and C=4, 453-token prompt, both arms. Purpose is narrow: prove the candidate arm builds and serves on arm64 and shows the same launch-count reduction. Do not attempt throughput comparison — 10 CPUs on one GB10 with unified memory will not reproduce the PR's 4× DGX Spark number, which was also measured on a pre-#656 base.

Explicitly do not spend GPU time on

  1. Re-running the PR's A/B table. The core does not exist on this hardware, and the numbers are model- and page-geometry-specific.
  2. The two review "Should Fix" items from 22cac91. I verified both are resolved at cf744dff: anchor_split_affordable (checkpoints.rs:96-98) is now called from both request_anchor_endpoint (:534-539) and checkpoint_selection_uncached (:620-625), and helios/README.md:372-390 now states budgeted retention, the charged split, and the uncharged copy. Testing them on hardware would be re-verifying a code read.
  3. Long-prompt multi-chunk preemption/guard paths. checkpoints.rs:4361, :4508, :4623 already pin these on CPU with exact nanosecond catalogs, more precisely than a timing measurement can.
  4. Any re-export or re-tuning. Structurally out of budget at 16 GiB scratch and unnecessary for a scheduler-only change.

Test-plan risk I would flag to the test engineer

The anchor budget fallback is invisible in the metrics. I read checkpoint_selection_uncached at head: the unknown/budget flags are initialized at checkpoints.rs:669-670 and only set inside the optional-candidate loop (:730-742). The anchor decision at :608-650 — the exact code this PR changes — sets neither flag, so when the new rule rejects an interior anchor and falls back to the prompt end, flare_checkpoint_skips_total{reason="work_budget"} does not increment, even though docs/api.md:352 says those counters "count selection or capture rejections." Consequence for testing: do not gate on a skip-counter delta; use the four observables I listed in Step 1 (anchor capture absence at the boundary, single prefill launch, turn‑2 cached_tokens, and the extra-work counter). This is a genuine, cheap-to-fix observability gap that the review record does not mention — worth reporting back to the author, and worth a one-line test addition asserting the fallback is deducible from metrics.

Two other minor items I confirmed at this head, for the report back (neither blocks hardware testing): docs/cli-design.md:699 and :708 still have over-long lines with an awkward mid-sentence wrap, and the retention rule is now restated normatively in four places (docs/core-design.md:1436-1448, docs/cli-design.md:696-710, docs/scheduling-runtime-design.md:614-635, helios/README.md:372-390) — a future drift surface the PR itself widened.

Bottom line

Test it, but narrowly. Step 1 on cn5 with GLM-5.3-Flash TP4 is the test worth running — it costs under an hour, directly exercises the padded-tail discontinuity the PR fixes, and has crisp pass gates (1 prefill launch instead of 2, plus preserved turn-2 reuse). Step 2 is the only way to see the claimed concurrency win, but only valid if mixed launches actually occur, and one reversed-order repeat is mandatory. cn7 should be treated as optional arm64 smoke coverage. The PR's headline speedup cannot be reproduced on this hardware and should not be presented as if it were; the deliverable is mechanism confirmation plus a first SM120 GLM-5.3 data point.