Explore report · NVIDIA/hyperflare-inference #681

Raw Markdown for agents: https://autobot.eidonix.com/p/17e6a00e-fb88-4328-bf4c-dc1cd75c1d75.md

Case file — PR #681: helios/scheduler: use active cohort mean in coalescing horizon

Draft, opened 2026-12-02 by FujitsuPolycom, base main, head e15b836, 5 files, +236/−18, labels area:scheduling, performance, no CI checks on head, no reviews and no comments. Verified against the head tree unless marked "claimed".

Key findings

  1. Half the change is an undeclared Rust/simulator divergence repair. The Python simulator's speculative mean_out was already a per-decoder cohort mean before this PR — scripts/scheduling_sim/utility.py:215-219 is untouched by the diff, which only rewrites the horizon block (utility.py:232-236, see pr_diff). The PR presents both the horizon and the expected-output change as one new formula; in fact mean_out moves Rust toward the simulator's existing behaviour. docs/design-review.md:195-208 explicitly says "Do not diverge Helios from the simulator's qualified policy", so the repair is welcome but it is undocumented and unmentioned in the description.
  2. The change is strictly monotone: it can only raise queued-prefill credit, never lower it. Old horizon min(H, post_prefill, min_i rem_i) ≤ new mean_i min(rem_i, min(H, post_prefill)) for every reachable state, and the per-decoder max(..., 1.0) on mean_out (policy.rs:627, :636) is ≥ the old cohort-wide clamp. Consequently every state where more prefill credit is harmful gets worse — which is exactly where the measured solo regressions land (see §Claims).
  3. No operator knob, no opt-out, default-on everywhere. coalescing_horizon_tokens (policy.rs:26, default 64.0 at :42) is not exposed in helios/src/server/config.rs (only scheduler_policy, scheduler_terminal_value, scheduler_terminal_age_price appear, :305-312) and has no flare-cli/src flag (no matches). PolicyConfig::throughput() (policy.rs:50-52) zeroes delivery_fairness and decode_age_price but not coalescing_horizon_tokens, so --scheduler-policy throughput does not disable the term. The change applies to every prefill-capable core on every deployment with no way to revert short of a rebuild.
  4. The "84 simulator runs matched 84/84" evidence cannot exercise the changed code path. scripts/scheduling_sim/workloads.py:33-55 defines 21 workloads × 4 decode values = 84 runs (__main__.py:42); every decode() there uses uniform output=128, and the prefill_decode_* mixes use output=128. No workload pairs a near-EOS decoder with a long prefill, so the old peer_budget min and the new mean coincide. Parity is expected by construction; the only real coverage of the new formula is tests/test_scheduling_utility.py:506-528.
  5. The mandatory simulator gate for cohort algorithms is not reported. docs/design-review.md:195-208 requires cohort-algorithm changes to be "evaluated against the Python simulator and reference solvers", and the 64-seed screening/validation catalog in scripts/scheduling_sim/learning.py (not opened); :234-251 makes skipping runnable CPU checks "a blocking design failure" and says "Disclosure does not excuse skipping runnable CPU checks". #681 reports only the 84-run workloads() parity sweep — the identical gate (#661, #663) were both asked for by prior Autobot review.
  6. The served A/B was not run on the head. Tested trees are df9a8ebd, dbbf65df, 38130855 and the archive-check hash is 40596880cc64; the head is e15b836 and #661's head is 3d868f84. policy_tests.rs/utility.py also overlap #661's +1,762-line test block, so the merge-order claim cannot be checked from the PR alone.
  7. Two of three solo scenarios regress, and the stack rows are not attributable to #681. Solo cold-heavy-mix: output 541.8→521.8 (−3.7%), SLO 88.1→79.1%, TTFT p50 1,763→1,834 ms; solo mixed-c32: SLO 93.0→91.1%. The "Stack" rows combine #660+#661+#665+#681. The PR discloses the mechanism: near-EOS coalescing "pulls 150K–250K cold prefills ahead of decoders without chunk shrinking, raising agentic_multiturn TTFT p99 3,323 → 5,144 ms".
  8. It depends on unmerged work. The change is only net-positive in the configuration where #661's chunk shrinking and draining exist; #661, #660 and #665 are all still open (each with an Autobot "Ready To Merge" recommendation) as of 2026-12-02.
  9. Zero engagement. Draft, no CI, no human review, no comment, no reaction, no cross-reference from any of the four related PRs or from #676.

The change

The why

Item State Relationship
#645 Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining merged 2026-11-30 Origin: introduced coalescing_prefill_log_bonus, PolicyConfig::coalescing_horizon_tokens, the peer_budget min, the burst workloads (workloads.py:50-54) and the burst test. #681 refines it. Its own review noted the bonus is "enabled by default … affecting prefill durations, admission ordering, and checkpoint pricing for every prefill-capable core".
#661 smaller prefill chunks under active age-priced streams open, same author, head 3d868f84, +2778/−186, 15 files Declared stack parent; contains policy.rs +195/−129, policy_tests.rs +1762 and tests/test_scheduling_utility.py +24/−1 — the same test files #681 appends to. Last Autobot review 2026-12-02 15:24: "Ready To Merge", 0 blockers, "Confirm GitHub Actions CI is green on 3d868f8". Earlier rounds were Changes Requested (unrun 64-seed gate; service_rates mispricing). Its own 64-seed learning.py (not opened) --preset validate run (15,872 runs, retained-refresh accepted 35/35) is the gate #681 lacks.
#660 budget interior conversation-anchor splits open, same author, Ready To Merge Stack member; touches checkpoints.rs (not opened)/docs, not the coalescing code; its mixed-c32 numbers are the stack's base.
#665 scan-resistant dual-turnover prefix cache eviction open, same author, head c5b3923, Ready To Merge Stack member; the Stack row's prefix-cache hit-rate delta (48.6→52.5%) is attributable to #665, not #681.
#663 price first-output waiting age on incumbent decode rounds merged 2026-12-01 (8489d504), yatesdr, +1154/−87 Landed the day before; default-on under balanced (decode_age_price = 0.1), the same preset benchmarked here. Shares the initial_prefill amortization denominator (docs/scheduling-utility.md:307-308), so relative weight shifts as the horizon grows. Its Autobot review recorded a Should-Fix that "Existing balanced burst-coalescing regression guarantees were dropped"; verified: tests/test_scheduling_utility.py:403,405 now assert absolute ceilings (coal_ttft <= 600.0, coal_sub <= 2) instead of relative guarantees, while policy_tests.rs:6855-6863 still compares coalescing on vs off. #681 adds no such baseline comparison.
#676 large prefill chunks → >1.4 s decode p99 ITL open issue Same symptom family; argues for capping prefill, names only #661.
#654 / #662 competing first-output age-pricing designs closed Superseded by #663; context for the churn around this preset, not overlapping in the coalescing term.
#655 snapshot cost retention open, Ready To Merge Different files (cost.rs (not opened)/checkpoints.rs (not opened)); not in #681's clean-merge claim.
#571, #334 open Also touch policy.rs but in unrelated functions (wide-round forcing; Engram row prefetch).

Nothing found that supersedes, reverts or competes with the coalescing-horizon change itself; #681 has no Closes #/Fixes # reference.

Recent activity

helios/src/scheduler/policy.rs history at the head (search_history):

So the edited function is two days old and has had three authors' changes in three days; #681 sits directly on top of #663 and builds on #645. scripts/scheduling_sim/utility.py before this PR had only been touched by #645, #644 and #663. Default-branch committers in helios/src (180 days): Luke Alonso 237, Martin Vit 52, yatesdr 49; in scripts/scheduling_sim: Luke Alonso 6, PCCessna 1, yatesdr 1. #681 reverses nothing semantically (its term is disjoint from #663's), but both add per-prefill-token credit over initial_prefill, so their relative weight moves with the horizon.

People

Community

Nothing found. The PR is a draft opened and last updated 2026-12-02 with zero discussion of any kind. Contrast with the rest of the series: #660, #661 and #665 each went through three Autobot review rounds before reaching "Ready To Merge".

Project fit

Aligned:

Where it lines up less well:

Claims and evidence

Claimed results (author's numbers, not re-verified; SM120 4× RTX PRO 6000 and 4× GB10, DeepSeek-V4.1-Flash, TP4, --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, workloads from FujitsuPolycom/tokbench v0.4.0, --seed 42 --temperature 0.0):

Arm ∥ Scenario (repeats) Out tok/s Stalled >250 ms TTFT p50 ms SLO
Solo ∥ mixed-c32 (2) 1,281.7 → 1,276.8 11.29 → 11.49% 1,425 → 1,390 93.0 → 91.1%
Solo ∥ long-context-mixed (1) 655.4 → 667.3 (+1.8%) 28.1 → 26.3% 1,510 → 1,449 89.8 → 92.6%
Solo ∥ cold-heavy-mix (1) 541.8 → 521.8 (−3.7%) 62.5 → 62.2% 1,763 → 1,834 88.1 → 79.1%
On #661 ∥ mixed-c32 (2) 1,254 → 1,261 med 6.65 → 5.95% med 1,479 → 1,439 89.4 → 90.5% med
On #661 ∥ long-context-mixed (1) 670.5 → 667.6 16.4 → 9.8% 1,503 → 1,473 89.3 → 82.1%
On #661 ∥ cold-heavy-mix (1) 545.6 → 547.8 56.3 → 55.7% 1,713 → 1,786 81.6 → 79.8%
Stack (660+661+665) ∥ mixed-c32 (2) 1,374.6 → 1,394.2 4.82 → 4.34% 1,001 → 922 96.5 → 97.1%
GB10 Stack ∥ mixed-c8 (2) 128.4 → 129.4 41.8 → 38.0% 1,181 → 1,118 79.0 → 81.7%
GB10 Stack ∥ agentic-coding C=8 (1) 137.1 → 135.0 45.4 → 34.5% 1,024 → 877 81.8 → 85.7%

Supported by the table: the On #661 and Stack arms generally improve stalls, TTFT and SLO.

Not supported / unsupported by the table: (a) the "Stack" rows cannot be attributed to #681 — they include three other PRs, and the prefix-cache hit-rate gain belongs to #665; (b) the solo arm is the only #681-only evidence, and 2 of 3 rows regress — mixed-c32 SLO −1.9 pp, cold-heavy-mix output −3.7%, SLO −9.0 pp, TTFT +4.0%; (c) On #661 long-context-mixed improves stalls (16.4→9.8%) but loses SLO (89.3→82.1%); (d) the PR's own disclosed trade-off is a mechanism-level cost: agentic_multiturn TTFT p99 3,323 → 5,144 ms, cold 150K–250K prefills jumping ahead of decoders; (e) no repeat counts are given for the single-repeat rows, and no confidence intervals anywhere.

Claimed evidence and what backs it:

Reach

Process

Draft; opened and last updated 2026-12-02; head e15b836; no GitHub Actions checks on the head (the rest of the series has CI plus three Autobot rounds); zero reviews, zero comments, zero reactions; no linked issue. Its declared merge order puts three unmerged "Ready To Merge" PRs (#661, #660, #665) ahead of it, and its own numbers are meaningful mainly in that stacked configuration.

Open questions / could not be found

  1. Whether the head e15b836 reproduces the numbers measured on df9a8ebd / dbbf65df / 38130855, and what changed between those trees and the head.
  2. Why the served A/B does not include a workload targeted at the changed path (a near-EOS decoder alongside a long cold prefill) — the only configuration where old and new formulas differ; mixed-c32/cold-heavy-mix measure it only statistically.
  3. Whether the author considers the mean_out change a divergence fix or a new rule, and whether scripts/scheduling_sim/learning.py (not opened) (64-seed catalog) was run or deliberately skipped; no learning.py (not opened) result is reported.
  4. No issue, comment or maintainer request motivating the change could be found; #676 is the only related user-visible defect report and it names #661, not #681.
  5. No review, reaction, or cross-reference from any maintainer or from the other open PRs in the series as of 2026-12-02.
  6. Whether docs/scheduling-utility.md's first-output credit (:287-320), which shares the initial_prefill denominator, needs re-tuning now that the horizon can grow up to 64× — untested and undiscussed.