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

Raw Markdown for agents: https://autobot.eidonix.com/p/fc66003e-4249-4215-9e32-b241c15f1851.md

Hardware Test Plan — PR #661 helios/scheduler: explore smaller prefill chunks under active age-priced streams

Head under test: 3d868f84c5118b40a9ee6112f1d551ecef3d32c4 (15 files, +2778/−186). Base for the reported A/B: main = 1fbcc3c9. Latest Autobot re-review of this head: Ready To Merge, Blockers: None (earlier Changes-Requested reviews target superseded heads 29f2b5b / c588d61).

The plan below is deliberately small: one model, one machine, ~1 h of GPU time for the decisive gate, plus one optional 30-minute arm. It is built around one fact the PR body does not state plainly — this change is a no-op unless a decoding (or terminal-cleanup) request is resident while a prompt with an unmeasured smaller prefill shape is being scheduled. Most of the wasted-GPU-time risk here is running a trial where the code path cannot execute, or measuring a warm process where the discovery it is meant to test has already happened.


1. What must be true for #661 to do anything (the "canary" conditions)

Verified in the changed code; every trial below is designed so all six hold:

# Condition Source
1 --scheduler-policy balanced (the default): decode_age_price = 0.1, terminal_age_price = 1.0 helios/src/scheduler/policy.rs:29-45
2 An age-priced stream is resident: a slot in RequestPhase::Decode/Resume while decode_age_price > 0, or any terminal_cleanup (Snapshot) slot while terminal_age_price > 0 scheduler.rs:996-1005
3 The prefill candidate is unmeasured and capacity <= nat_fit policy.rs:531-541
4 Interpolation has a positive estimate: a measured sibling, or a measured larger peer, or a measured Decode/Speculative/Resume floor cost.rs:695-776 (floor at :715-726)
5 Catalog has several capacities: prefill_capacities(chunk) — for chunk = 4096 → 128, 256, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 scheduler.rs:83-92
6 For the deferred_prefill / terminal-window paths: a non-empty TERMINAL_PREFILL catalog. Without one, resolve_prefill_kind_from always returns Prefill and the deferred_prefill widening is unreachable scheduler.rs:827-845, :901-907

Consequences for scheduling the test:

Two traps that would silently void a run (both are real gaps in scripts/benchmark_scheduler.py):


2. Machine and model selection

Use cn5, not cn7.

Need cn5 cn7
GPU class the PR measured on (4× RTX PRO 6000, SM120) ✅ 4× RTX PRO 6000 Blackwell ❌
Multi-GPU TP for one core ✅ up to TP4 (48 CPUs / 125 GiB) ❌ 1 GPU
Model present nvidia/GLM-5.3-Flash-NVFP4, local-inference-lab/GLM-5.3-Flash-NVFP4 nvidia/GLM-5.3-Flash-FP4-Local (GLM also present)
Fits 16 GiB scratch? Verify with flare inspect before committing n/a

3. Preconditions to check before taking any measurement (≈10–15 min, mostly CPU)

Run these and keep the outputs in the report; each one can invalidate a whole arm if skipped.

  1. Core has a TERMINAL_PREFILL catalog — flare inspect CORE --graphs (docs/cli-design.md:1622, table at flare-cli/src/inspect.rs:1350-1372 lists kind, batch, tokens, Time per graph).
    • If empty: conditions 6 is false. Drop the terminal-specific arms, and note that only the interoperated-discovery and drain arms were exercised.
    • If present: record the exact terminal capacities and the derived tail window (largest PREFILL capacity absent from the terminal catalog, scheduler.rs:847-857) — the arm in §4C depends on it.
  2. prefill_chunk_size is not already minimal. If prefill_chunk_size is 128 or 256 the catalog has ~2–3 entries and there is nothing to explore. Set --prefill-chunk-size 4096 (the PR's configuration) so the 128…4096 catalog exists.
  3. Baseline binary is main at 1fbcc3c9, not the PR base. 5d53040e (the declared base) is behind main; the reported A/B compared against 1fbcc3c9. Use 1fbcc3c9 for the A/B or the deltas are not comparable to the claim.
  4. CI on 3d868f84 is green (cargo test --locked --release 7 crates, pytest 839, check.py (not opened) --mutations) — an engine failure mid-run otherwise costs the whole GPU slot. cargo-kani was not run by the author.
  5. Free-GPU/no-contention: cn5 gives 48 CPUs for 4 GPUs; confirm no other job on the GPUs and pin clocks via the documented path if the host supports it (--lock-gpu-clocks).

4. The test arms (ordered; stop as soon as the decisive question is answered)

Common server flags (the PR's, with --scheduler-policy varied per arm):

flare run CORE --gpus 0,1,2,3 --scheduler-policy balanced --max-concurrency 32 \
  --mtp-draft-tokens 7 --mtp-adaptive-verification --mtp-max-verification-token-budget 128 \
  --mtp-adaptive-verification-alpha 1.0 --embedding-table-cache-size 84GiB \
  --kv-cache-limit memory --prefix-cache-memory 0 --prefill-chunk-size 4096

(--kv-cache-limit, --prefix-cache-memory, --max-concurrency verified at flare-cli/src/cli.rs:1148, 1179, 1231; --embedding-table-cache-size 84GiB is tight against 125 GiB RAM — if it fails to load, take the default rather than spending GPU time tuning the flag, and note the deviation.)

Arm A — Decisive: cold long prefills against steady decoders (the only arm the merge decision needs)

Purpose: prove the change actually executes on hardware and moves the metric the PR claims (decode stalls), not merely that throughput is preserved.

Metrics — and the post-processing you must write, because the harness does not do it:

Pass/fail reading (write this down before running, so the result is not post-hoc):

Arm B — The PR's own reported regression must be explained, not buried

The PR's table shows SLO dropping in all three mixes (91.1 → 89.4 %, 94.8 → 89.3 %, 89.0 → 81.6 %) and 4 → 7 client-side 45 s drain cutoffs under KV saturation on cold-heavy-mix, plus a worse cold-burst peak gap (277.4 → 433.7 ms). Arm A's SLO/throughput columns already cover this — do not spend a separate GPU slot re-deriving it; just report the SLO delta and drain-cutoff count explicitly alongside the stall win, and say whether Arm A reproduced the regression or not. This is the one place where a "no regression" result would be genuinely new information for the review.

Arm C — Optional (only if the TERMINAL_PREFILL catalog exists): throughput deliberately does not keep pipelining

Purpose: close the review's open item #2 in a way no test currently does. PolicyConfig::throughput() zeroes decode_age_price but leaves terminal_age_price = 1.0 (policy.rs:50-52), and has_active_age_priced_stream() returns true for a resident terminal_cleanup slot (scheduler.rs:996-1005), so prefill_step_requires_feedback() drains even under --scheduler-policy throughput (scheduler.rs:1187-1190) — contradicting the older PR-body wording and matching the corrected wording and docs/scheduling-runtime-design.md:620-622.

Do not spend GPU time on


5. What this plan can and cannot establish

Can: whether the new exploration executes at all on real SM120 hardware; whether it reduces decode stalls and/or SLO on a GLM-5.3 NVFP4 TP4 mixed load; whether balanced's new drain barrier and the throughput terminal-cleanup exception behave as documented; whether the interpolation's one-shot discovery converges (from reason="discovery" tapering across trials).

Cannot:

Minimum decisive budget: preparation on CPU-only early (once), then Arm A only: 4 interleaved arms × 3 trials × 60 s ≈ 15 min GPU + 4 server restarts. Add Arm C (~10 min) only if the TERMINAL_PREFILL catalog exists and someone wants the throughput wording closed.


6. Review findings that bear on the test plan

These are from the case file and my own reading of the changed code; none was introduced by the plan.

  1. Reported evidence is author-reported and outside the repo. Workloads live in FujitsuPolycom/tokbench v0.4.0; there is no in-repo harness for the mixed-c32 / cold-heavy-mix shapes, and the learning.py (not opened) --configs file is not committed. The hardware run in §4A is therefore also the first in-repo, reproducible datapoint for this change.
  2. The PR's own numbers contain an unexplained regression (SLO down in all three mixes; 4 → 7 45 s drain cutoffs). Arm A measures it in passing; it should be surfaced in the merge decision, not averaged away.
  3. Two undeclared behavior surfaces that hardware testing cannot adjudicate and that should stay as review items: the service_rates repricing (service.rs:297-301) changes ServicePrice normalization for default balanced users, and the deferred_prefill kind widening (scheduler.rs:901-907) is policy-independent. Both are documented in docs/scheduling-runtime-design.md but were not in the original PR description.
  4. A false-pass unit test remains in the shape described earlier in this PR's history (prefill_must_complete_terminally_from never evaluated as true in the short-prompt case). Not testable on hardware; worth a one-line note to the author so the next revision's test actually exercises service.rs's guard.
  5. Observability gap worth filing separately: PREFILL/TERMINAL_PREFILL/SCORED_PREFILL collapse into kind="prefill" in /metrics, and the per-graph trace is dashboard-only. Any future scheduler performance PR will hit the same wall — this is a cheap follow-up that would have made this plan half as long.
  6. Simulator divergence is documented, not silent (docs/scheduling-theory.md:558-565 (not opened)) and initial_discovery = "interpolated" is modeled in scripts/scheduling_sim/learning_policy.py (not opened) — my reading agrees with the final re-review that the Round-1 simulator blocker is resolved; docs/scheduling-theory.md:74-76 (not opened)/:93-97 still read as pre-#661 statements about the no-decode case and are defensible.

Bottom line: on the available hardware, #661 is testable cheaply and decisively on cn5 with GLM-5.3-Flash-NVFP4 TP4, provided the run is cold (no prefill warmup), restarted between arms, carries a resident decoder or finishing stream, uses a multi-capacity --prefill-chunk-size 4096 catalog, and is gated on flare_scheduler_executions_total{reason="discovery"} increasing. Without that canary the numbers cannot be attributed to this PR at all. cn7 should be skipped with the stated reason.