Explore report · NVIDIA/hyperflare-inference #661

Raw Markdown for agents: https://autobot.eidonix.com/p/ec1106ca-ed80-4424-b2b2-4b1d19afc8f2.md

Case file: PR #661 — helios/scheduler: explore smaller prefill chunks under active age-priced streams

https://github.com/NVIDIA/hyperflare-inference/pull/661 · author FujitsuPolycom (CONTRIBUTOR, Discord "Dooner") · base main @ 5d53040e · head 29f2b5b · draft, 1 commit, opened and last updated 2026-12-01 · labels area:scheduling, enhancement, performance · no CI checks, no reviews, no comments, no triage: label.

Key findings

  1. The measured build is not the shipped build. The SM120 4× RTX PRO 6000 A/B ran on fdb10bb5; head is 29f2b5bc, and the PR's own Limits bullet admits the A/B predates the resize_prefill deferred_prefill guard and the doc/test hardening. Every headline number (peak gap 331.9 → 260.3 ms, >250 ms stalls 215 → 78, per-user p50 +5.7%, output −2.0%) therefore describes code that is not what would merge.
  2. The description's "throughput (0.0) keeps two-frame pipelining" is false in one case, and the PR's own test asserts the exception. PolicyConfig::throughput() zeroes decode_age_price but leaves terminal_age_price: 1.0 (helios/src/scheduler/policy.rs:50-52 vs :35-37); has_active_age_priced_stream() checks terminal_age_price for terminal-cleanup requests (helios/src/scheduler.rs:989-998), and prefill_step_requires_feedback() now unconditionally returns true when any age-priced stream is resident (scheduler.rs:1180-1183). So a non-terminal Prefill still drains under --scheduler-policy throughput whenever a terminal-cleanup (checkpoint/snapshot) stream exists. helios/src/scheduler/policy_tests.rs:7784-7826 demonstrates exactly this and shows that zeroing terminal_age_price restores pipelining.
  3. The PR narrows work merged one day earlier by the area's dominant maintainer. #645 (lukealonso, merged 2026-11-30, e85019b9, +1886/−204, 21 files) introduced GraphKind::pipelines() two-frame Prefill pipelining, prefill_step_requires_feedback, effective_prefill_catalog and PrefillCostModel. Every one of those is what #661 narrows or replaces.
  4. A sibling PR by the same author moves the same headline metric the opposite way, and neither description mentions the other. #660 (FujitsuPolycom, open, same base 5d53040e) reports an identical mixed-c32 baseline row (1,072.8 tok/s output; 215 >250 ms gaps) and moves stalls 215 → 434 while #661 claims 215 → 78. Only the author's comment on #663 (2026-12-01 22:09) shows them measured together.
  5. A documented mandatory gate is explicitly unrun. #661 changes graph selection and timing estimation; docs/design-review.md:195-208 requires such changes to be evaluated against the Python simulator and the 64-seed catalog in scripts/scheduling_sim/learning.py (not opened). The PR's own Limits say learning_policy.py (not opened) and kani are unrun. The simulator has no representation of an unmeasured cost, so the new interpolation rule has no simulator counterpart; the new pytest (tests/test_scheduling_utility.py:421-441) exercises the pre-existing utility policy on a GB10-shaped catalog, not the interpolation.
  6. docs/scheduling-theory.md — untouched by this PR — still states the opposite of the new behaviour: prefill has no per-chunk cadence (:74-76), selection has "no duration ceiling, prefill size preference, or breadth-before-depth rule" (:93-97), and "two long prefills do not need smaller chunks merely to alternate" (:119-120).
  7. An undeclared kind resolution change: resolve_prefill_kind_from now maps every capacity outside terminal_prefill_catalog to TerminalPrefill when deferred_prefill is set (helios/src/scheduler.rs:896-902), not only the tail. It tightens #613's invariant but appears in the description only obliquely ("excludes non-terminal-catalog shapes under deferred_prefill").
  8. Precedent for the risk it takes: restricting unmeasured prefill discovery to natural fit (#538, same author, merged 2026-11-26) produced a measured production regression fixed two days later by #550 (iein): an exact 31K-token repeat went from 0.02 s reuse to 15.3 s TTFT on 4× DGX Spark GB10. #661 relaxes that same restriction under age-priced streams and edits the same doc paragraph #550 touched.

The change

Plain terms: under --scheduler-policy balanced (decode_age_price = 0.1), Helios has no mixed prefill/decode graph on DeepSeek-V4.1-Flash TP4, so it must interleave prefill chunks with decode steps. #661 makes three changes to that interleaving: (a) it lets the scheduler estimate the cost of unmeasured small prefill shapes by borrowing/interpolating measured timings instead of treating them as "discover me first, cost 0"; (b) it permits non-terminal Prefill chunks (not just TerminalPrefill tails) below max_terminal while decoders are active; (c) it drains the transport between consecutive non-terminal Prefill steps whenever an age-priced decoding/resume/terminal-cleanup stream is resident, so decoders get to re-compete after each chunk.

Size: 10 files, +1,785/−95. Production is ~+391/−79 across 4 scheduler files (the description's "+312 net prod LOC"); the bulk is test code — helios/src/scheduler/policy_tests.rs (+984, 7 new tests) and a ~+302-line in-file test block in cost.rs (3 new tests at cost.rs:1280, :1355, :1474). Test:prod ≈ 3:1.

File map (verified against the diff):

Things the change does that the description does not say: the resolve_prefill_kind_from widening (item 7 above); the resize_prefill narrowing to the terminal catalog under deferred_prefill (mentioned only as a parenthetical "incl. resize_prefill"); the fact that the interpolation also applies on cores that have only a Prefill catalog (nothing in the interpolation path depends on terminal_prefill_catalog; the empty-terminal early return at scheduler.rs:924 only disables the terminal-completion predicates); and that the feedback barrier also fires under throughput during terminal cleanup.

Things the description says that the change does not do: "solo prefill and throughput (0.0) keep two-frame pipelining" — only when no terminal-cleanup stream exists. "0 flags, unsafe, hardcoded capacities, model branches, or ABI changes" holds for flags/unsafe/model branches/ABI (no CLI change, no unsafe, no per-model branch), but the diff adds a new PrefillSlotPlan struct and several capacity-carrying fixtures; no production hardcoded capacity is introduced.

The why

The problem is three coupled mechanisms, all verifiable:

  1. TERMINAL_PREFILL catalogs start at 256 while PREFILL starts at 128, so a 128-token shape is non-terminal-only and cannot serve a tail. The asymmetry comes from #479 (voipmonitor, merged) adding TERMINAL_PREFILL = 14 as an optional graph op.
  2. Unmeasured smaller Prefill shapes are skipped by cold discovery — the natural-fit restriction #538 (same author, merged 2026-11-26, ba35da3f) introduced.
  3. Tails up to max_terminal (16384) run as one TerminalPrefill, and consecutive non-terminal Prefill steps fill both transport frames (#619, #645), so decoders wait for both.

Wanted-since / how widely: no issue asks for exactly this change. The nearest lineage is #485 (voipmonitor, filed 2026-11-23, closed by #645) measuring prefill chunk drift on DeepSeek-V4.1-Flash TP4 at 64k–128k (flare_graph_launches_total{kind="prefill"} rising 18 → 29 → 31, 18 ms–1900 ms GPU-time drift), plus #538 (the author's own restriction, motivated by chunks stepping down 14336 → 12288 → … → 256) and #550 (the counter-risk, 0.02 s → 15.3 s on GB10). The same problem is being attacked from two other sides in the same 24 hours: #663 (yatesdr, first-output waiting age) and #660 (same author, interior conversation-anchor splits). Demand is real but expressed as three PRs by three authors in ~3 days, not as a long-standing issue. docs/scheduling-theory.md:119-120 records the project's prior explicit position against this direction.

Recent activity

helios/src/scheduler has been rewritten continuously for the last ten days, almost entirely by lukealonso, and #661 lands on the newest layer of that:

So #661 both builds on (interpolation precedent #510, catalogs #479, invariant #613) and reverses (#645's Prefill pipelining, #538's discovery restriction) work merged within the previous five days. It does not conflict textually with #645 — it deliberately narrows it.

People

Community

Nothing on #661 itself: pr_comments returns no comments, no reviews, no reactions, no CI. The only commentary that touches it is (a) the author's own comment on #663 at 2026-12-01 22:09 carrying the stacked A/B, and (b) #663's and #662's descriptions referencing #661 as the inverse side. For comparison, neighbouring PRs each drew an Autobot review within ~30 minutes (#538, #540, #645, #654, #655, #660, #663); #661 has drawn none, and unlike #655/#660 (triage:review) or #663 (triage:design-review) it carries no triage label.

Project fit

Where it lines up:

Where it does not:

Claims and evidence

Verified from the diff:

Not backed or contradicted:

Author-reported only, single trial, no independent reproduction, no CI:

No in-repo harness reproduces any reported workload: there is no mixed-c32, 14K+32K+64K, 150K-250K or Burst-8 workload in the tree. The only new workload data is synthetic (workloads.py:56-105) and its pytest asserts a simulated millisecond gap.

One evidence-quality wrinkle: check.py:527-580 updated the mutation source string but left the failure message at :605 ("deferred prefill must schedule TerminalPrefill before capturing a boundary checkpoint") describing the older, narrower && needs_terminal line, so the mutation now asserts a stronger claim than its message states — worth noting for whoever re-runs --mutations.

Reach

Process

Draft. One squashed commit (29f2b5b) directly on 5d53040e, so 2+ commits behind a3c80e19 with open PRs #655/#660/#663 already rebased past it — a rebase is required before any merge, and #655 in particular rewrites ActionCosts/freshness in the same file the interpolation reads. No CI checks, no review, no Autobot review, no triage label. Description follows the charter's four-part shape (Why / What / Result / Evidence) and ends Discord: Dooner as docs/design-review.md:163-169 requires, and it does disclose material limits. Age at case-file time: under a day. Test:prod ratio ~3:1.


Open questions / what could not be found

  1. Which of #661's numbers survive on the actual head 29f2b5bc — i.e. after the resize_prefill deferred_prefill guard, which changes which catalog resize_prefill reads and therefore which chunk sizes are legal? No measurement at head exists anywhere in the repo, in comments, or in the sibling PRs.
  2. How do #661 and #660 (same author, same baseline, opposite mixed-c32 stall direction, both open) interact when both land? The description of neither mentions the other; only the #663 comment measures #660+#661 together, and that is on fdb10bb5.
  3. Does the throughput-drain case (Key finding 2) change the "SM120 throughput launches identical 28/24/19, wall +0.3%" evidence, which was measured without a terminal-cleanup stream in the reported workloads?
  4. What does the learning.py (not opened) 64-seed catalog say about interpolated exploration? Not run and not runnable from the description; the simulator cannot represent unmeasured costs.
  5. Does the widened deferred_prefill → TerminalPrefill resolution ever change behaviour on a real signed core (does any core ship a TERMINAL_PREFILL catalog that is a strict subset of PREFILL and serve deferred-prefill requests)? The diff's tests cover it synthetically (policy_tests.rs:7530-7640); no production evidence.
  6. Interaction with #655 (ActionCosts rewrite, "Ready To Merge") — untested; the interpolation depends on which entries ActionCosts considers measured and fresh.
  7. Who has reviewed, benchmarked or reproduced any of the numbers independently: nobody. iein (author of #550) and lukealonso (author of #645) — the two people with the most relevant evidence — have not commented.