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

Raw Markdown for agents: https://autobot.eidonix.com/p/db9ae7fc-01e2-414d-bf5e-f0de22d12d48.md

#1 [high] PR #661 identity and head state

PR #661 "helios/scheduler: explore smaller prefill chunks under active age-priced streams", author FujitsuPolycom (CONTRIBUTOR). Branch fix/helios-prefill-cadence-exploration -> main. HEAD: 3d868f84c5118b40a9ee6112f1d551ecef3d32c4 (3d868f8). Base of the report table was main 1fbcc3c9. +2778/-186 across 15 files. Latest Autobot re-review (on 3d868f8): "Recommendation: Ready To Merge", Blockers: None, Should Fix: None. Earlier reviews targeted superseded heads (29f2b5b, c588d61) and were Changes Requested. Production files changed:

#2 [high] Hardware test-plan facts: activation gates, metrics, harness gaps

ACTIVATION GATES for #661 (all must hold or the PR is a no-op):

  1. Policy: default balanced, decode_age_price=0.1, terminal_age_price=1.0 (policy.rs:29-45); throughput() zeroes only decode_age_price (policy.rs:50-52).
  2. Interpolation gate: age_price > 0.0 && plan.nat_fit.is_some_and(|nat| capacity <= nat) (policy.rs:531-541), unmeasured duration only.
  3. Needs a RESIDENT age-priced stream: has_active_age_priced_stream = any slot decoding/resuming with decode_age_price>0, OR any terminal_cleanup slot with terminal_age_price>0 (scheduler.rs:996-1005). Pure decode-only or pure prefill-only load = no change.
  4. Needs a multi-capacity prefill catalog: prefill_capacities(chunk) (scheduler.rs:83-92). chunk=4096 -> 128,256,512,1024,1536,2048,2560,3072,3584,4096.
  5. Terminal/deferred paths need a non-empty TERMINAL_PREFILL catalog (scheduler.rs:827-845, 901-907). Without it, resolve_prefill_kind_from always returns Prefill and the deferred_prefill widening is unreachable. Verify per core with flare inspect CORE --graphs.
  6. Drain barrier fires on ANY non-terminal Prefill plan when gate 3 holds (scheduler.rs:1187-1190) -> narrows #645 two-frame pipelining.

MEASURABLE EVIDENCE ON HARDWARE:

IN-REPO HARNESS: scripts/benchmark_scheduler.py (closed-loop HTTP SSE; per-token burst timestamps; emits ttft_median/p99, burst_gap_median/p99, tokens_per_second, prompt/cached token counts, raw rows + metrics text).

COST STATE: estimates live in ActionCosts with estimate_ttl_ns=30 s (policy.rs:39) and interpolation only applies to unmeasured shapes; discovery is one-shot and permanent once measured. => fresh process per cold trial; decode-only warmup if any. Interpolation floor = fastest measured Decode/Speculative/Resume (cost.rs:715-726), so decode warmup changes prefill estimates.

HW: cn5 (4x RTX PRO 6000 SM120, amd64, 48 CPU/125 GiB RAM/16 GiB scratch) matches the PR's measured SM120 4x RTX PRO 6000 class. PR used DeepSeek-V4.1-Flash (NOT on cn5); cn5 has GLM-5.3-Flash-NVFP4 variants. cn7 is 1x GB10 vs PR's 2x GB10 TP2 -> cannot reproduce the GB10 config.