Opened by a workflow run, Dec 1, 2026 2:18 PM EST.
Classify draft
Selected: performance, enhancement, area:scheduling
Threshold: 65%
Priority
-
none: 99.3% -
priority:P2: 0.6% -
priority:P1: 0.1%
Type
- [✓]
performance: 97.4% - [✓]
enhancement: 70.6% -
bug: 34.9% -
community: 8.5% -
duplicate: 0.8% -
documentation: 0.2%
Area
- [✓]
area:scheduling: 99.4% -
area:preparation: 18.2% -
area:kernels: 6.0% -
area:orbit: 5.3% -
area:caching: 1.6% -
area:api: 1.1% -
area:engram: 1.0% -
area:memory: 0.7% -
area:rocenante: 0.5% -
area:selene: 0.3% -
area:packaging: 0.1%
Model
-
model:deepseek-v4.1: 4.7% -
model:deepseek-v4: 2.9% -
model:qwen3.8-flash-next: 0.6% -
model:qwen3.8-27b: 0.5% -
model:nemotron-3.5-bolt: 0.4% -
model:kimi-k3.1: 0.4% -
model:inkling-small: 0.2% -
model:glm-5.3: 0.2% -
model:muse-glimmer: 0.1% -
model:gemma4: 0.1% -
model:mimo-v2.6: 0.0% decide malicious: all_clear (100%): No malicious content found
explore
Author: FujitsuPolycom (CONTRIBUTOR; repeat Helios scheduler contributor, 15 merged PRs in 180 days; Discord "Dooner")
Motivation: Under the default balanced scheduler policy, a cold long prompt shares the GPU with running decoders and can stall them for hundreds of milliseconds to seconds, because the scheduler only knows the cost of the largest measured prefill shape and runs a whole tail as one terminal chunk. #661 lets small unmeasured prefill chunks be priced by interpolating measured timings and drains the two-frame transport between chunks so decoders can re-compete after each one.
Scale: +1,785 / −95 lines in 10 files
Proposal:
- New
ActionCosts::interpolated_prefill_duration(cost.rs:695) estimates unmeasured prefill costs from a same-kind sibling, else a linear interpolation between a measured smaller peer or the fastest decode step and a measured larger peer;ScoredPrefillisolated, non-monotonic timings clamped. - Under
age_price > 0, unmeasured pure-prefill shapes up to the natural fit compete byValueRateon that estimate instead of discovery priority, and record real timings (policy.rs:988-1030, :1334-1370). prefill_step_requires_feedbacknow drains whenever any age-priced decode/resume/terminal-cleanup stream is resident (scheduler.rs:1180-1183) — narrowing #645's one-day-old two-framePrefillpipelining.resolve_prefill_kind_frommaps every capacity outside the terminal catalog toTerminalPrefillunderdeferred_prefill(scheduler.rs:896-902);resize_prefillreads the terminal catalog (policy.rs:1789);terminal_prefill_windowcached.- Tests (+984 policy_tests, +302 cost tests, 1 pytest) plus
workloads.pyGB10 catalog,check.pymutation anchor and doc updates. Touches: - helios/src/scheduler.rs and policy.rs (prefill kind resolution, feedback barrier, candidate scoring — default-on under
balanced) - helios/src/scheduler/cost.rs (
ActionCosts, which open PR #655 also rewrites) - docs/scheduling-runtime-design.md, helios/README.md, scripts/scheduling_sim, tests, verification/helios-lifecycle/check.py Related items:
- #645 Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining (merged): the direct parent; #661 narrows its
Prefillpipelining, catalog routing and cost model - #538 Restrict cold pure-prefill discovery to natural-fit graph capacities (merged, same author): introduced the restriction #661 relaxes
- #550 Restore prefix checkpoints on prefill catalogs without terminal prefill (merged): fixed #538's 15.3 s GB10 regression; #661 edits the same doc paragraph
- #660 budget interior conversation-anchor splits (open, same author): identical
mixed-c32baseline but reports stalls 215→434 where #661 reports 215→78 - #663 price first-output waiting age on incumbent decode rounds (open): inverse-side sibling; the only stacked A/B for #661 lives in a comment there
Link: https://github.com/NVIDIA/hyperflare-inference/pull/661
Autobot comments: The A/B was measured on
fdb10bb5, not head29f2b5bc(the PR says so in Limits), so headline numbers describe code that would not merge. "throughput (0.0) keeps two-frame pipelining" is false when a terminal-cleanup stream exists —throughput()leavesterminal_age_price = 1.0(policy.rs:50-52) and the PR's own test policy_tests.rs:7784-7826 asserts the drain. Thedeferred_prefillkind resolution is widened beyond what the description implies. docs/scheduling-theory.md:74-76, 93-97, 119-120 still state the opposite (no prefill size preference; "two long prefills do not need smaller chunks") and is untouched, while design-review.md:195-208's mandatory simulator/learning.py(not opened) gate is declared unrun and has no simulator equivalent. #661 undoes #645's pipelining and #538's discovery restriction within days of both merging. Zero comments, reviews, CI checks, reactions or triage label.
Classify intake
Selected: triage:design-review, performance, enhancement, area:scheduling
Threshold: 65%
Triage
- [✓]
triage:design-review: 78.1% -
triage:review: 15.4% -
triage:validation: 5.7% -
triage:investigate: 0.8% -
none: 0.1% -
triage:partial: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
performance: 97.7% - [✓]
enhancement: 65.1% -
community: 56.2% -
duplicate: 46.9% -
bug: 0.1% -
documentation: 0.0%
Area
- [✓]
area:scheduling: 97.1% -
area:preparation: 1.4% -
area:engram: 0.5% -
area:api: 0.2% -
area:caching: 0.2% -
area:memory: 0.2% -
area:rocenante: 0.2% -
area:selene: 0.1% -
area:kernels: 0.1% -
area:packaging: 0.0% -
area:orbit: 0.0%
Model
-
model:deepseek-v4.1: 14.8% -
model:deepseek-v4: 6.8% -
model:inkling-small: 1.4% -
model:glm-5.3: 0.2% -
model:gemma4: 0.1% -
model:qwen3.8-27b: 0.1% -
model:kimi-k3.1: 0.0% -
model:nemotron-3.5-bolt: 0.0% -
model:qwen3.8-flash-next: 0.0% -
model:mimo-v2.6: 0.0% -
model:muse-glimmer: 0.0%
Apply Labels (Intake)
Applied: +triage:design-review
Value Proposition
Value Proposition — PR #661 (helios/scheduler: smaller prefill chunks under age-priced streams)
Charter alignment — right layer, wrong posture. Every change sits inside the Helios scheduler (cost.rs, policy.rs, scheduler.rs, service.rs): no model branches, no unsafe, no new CLI/PolicyConfig field, no ABI or graph-op change — squarely within "keep the runtime small and model-agnostic." It measures on charter target hardware (SM120 4× RTX PRO 6000, 4× GB10) with a served flare run A/B, satisfying "bring real evidence" in kind. Two frictions: the behaviour ships implicitly inside the default balanced preset (against "Be explicit… no magic defaults"), and it deliberately narrows #645 — prefill pipelining merged one day earlier by lukealonso, owner of helios/src, who has not engaged.
Novelty & status — genuinely additive. No merged commit on main fixes this; #663 (yatesdr) is the complementary inverse side and #660 a sibling by the same author, neither a canonical substitute. But it is one of three PRs from three authors on the same problem in ~3 days, and docs/scheduling-theory.md:74-76, 93-97, 119-120 — untouched — still asserts the opposite of the new behaviour.
Value vs cost — real audience, unproven artifact. Beneficiaries are anyone on stock balanced with cold multi-K prompts contending with decoders (lineage #485/#538). But the headline numbers describe code that would not merge: the A/B ran on fdb10bb5, not head 29f2b5bc, and the PR's own Limits admit it predates the resize_prefill deferred_prefill guard that changes which chunk sizes are legal. The claim "solo prefill and throughput (0.0) keep two-frame pipelining" is false whenever a terminal-cleanup stream is resident (policy.rs:50-52 leaves terminal_age_price: 1.0; scheduler.rs:1180-1183; test policy_tests.rs:7784-7826), so the 28/24/19 launch evidence does not cover that case. The mandatory simulator/learning.py gate (docs/design-review.md:195-208) is unrun, and the simulator has no representation of an unmeasured cost — so the interpolation rule has no qualification path. Precedent for the hazard is concrete: #538 → #550, 0.02 s → 15.3 s TTFT on GB10. Cost: ~+391/−79 prod LOC in four hot scheduler files, ~3:1 test:prod, plus a substantive rebase against #655, which rewrites the ActionCosts the interpolation reads.
Verdict: Worth it with changes
Direction is charter-legitimate and the author owns this thread; the blockers are evidence and documentation, not concept. Preconditions: (1) re-run the SM120 and GB10 A/B on head after rebasing past #655; (2) fix or restate the throughput claim and re-measure the terminal-cleanup case; (3) reconcile docs/scheduling-theory.md; (4) run learning.py/64-seed validation or get explicit maintainer sign-off that it is inapplicable; (5) disclose the resolve_prefill_kind_from widening (scheduler.rs:896-902); (6) coordinate explicitly with #660 and #663. If the head re-measurement does not reproduce the claimed deltas, this becomes Not worth it.
Full report Decide Value: yes (99%): This change is worth reviewing: it provides value to the project in line with its charter.
Subtraction and simplicity
Subtraction/Simplicity lens on PR #661 (head 29f2b5b). Verdict: the diff is lean where it counts — no flags, unsafe, env reads, new GraphKind, model branches, CLI/PolicyConfig fields or wire changes; interpolated_prefill_duration is a single self-contained pure function; docs, README and the check.py (not opened) mutation anchor move with it. The five findings are all deletions inside the new plumbing, not the scheduling policy.
- S1 (high) —
PrefillSlotPlan/prefill_slot_state/prefill_slot_nat_fit(policy.rs:79-86,:420-456) is an ad-hoc cache that duplicatescheckpoint_selection_cachedandnext_progress'sget_or_insert_with(:756,:768-775), costs five signature changes (:937,:1323,:1486,:1520-1536,:1933), and is keyed onslotalone, ignoring thekindit is handed — socandidates()' shared array servesScoredPrefilla terminal-catalog nat fit. Delete, don't repair: the inline form it replaced recomputed per(kind, slot)over a ≤12-entry catalog. - S2 (high) — the
last_interpblock is copy-pasted verbatim, 17 lines twice (policy.rs:1006-1022,:1356-1372, differing onlyrequest→r,width→capacity), plus the duplicatedns == 0 → nat_fit → continuedecision (:999-1031vs:1349-1381). Oneunmeasured_prefill_nshelper; dropping the memo entirely saves 8 more lines. - S3 (medium-high) —
service_rateswalks the whole prefill catalog twice for one boolean (service.rs:224-231);scan_prefill(false)subsumesscan_prefill(true), andtoken_rateis 0.0 there with nothing else setting it, so the== 0.0gate exists only to avoid re-paying the first pass. −9 lines, one fewer catalog walk per admission. - S4 (medium) —
prefill_catalog_for_terminal(policy.rs:350-358) re-implementsprefill_catalog's kind→catalog switch (:342-348) to accept a pre-resolvedterminal_onlybool; collapsing it also removes the reason for thenatural_fit_prefill_capacity→…_for_terminalrename that churns six call sites. - S5 (medium) —
interpolated_prefill_durationstates its peer-ordering rule four times: theis_some_andpre-filter (cost.rs:734-744) is exactly the negation of theis_none_oraccept test (:762-772). One comparator and one pass, −15 lines.
Minor (not flagged): the three new cost.rs tests re-declare ~25-line closures on top of two pre-existing copies (~100 hoistable lines); policy_tests.rs:6975-7010 restates workloads.py:58-91.
Deliberately kept: terminal_prefill_window (scheduler.rs:657, :842-860) — the hoist requested in #538's review; has_active_age_priced_stream (:989-998); prefill_must_complete_terminally_from (:957-987) — follow-up, not a blocker. No structural AGENTS.md violation.
Open: whether S1's eager per-slot form covers TerminalPrefill's promotion of Prefill in phase_plan; whether last_interp is justified by any measurement (none in the PR); S5's pre-filter may exist to skip predictor work, in which case the reduce-over-pairs form is the safe rewrite.
Correctness and contracts
Reviewed PR #661 (head 29f2b5bc) for correctness, contracts and system-level consequences. Six findings, all verified in the changed files.
- Major —
throughputdoes not keep pipelining, contradicting the PR text.policy.rs:50-52zeroes onlydecode_age_price;terminal_age_pricestays 1.0 (:37),has_active_age_priced_streamchecks it (scheduler.rs:989-998), and the barrier returns true unconditionally (:1180-1183). The PR's own test asserts the drain (policy_tests.rs:7784-7826). The 28/24/19 launch evidence does not cover it. - Major — the barrier is scheduler-global, not plan-scoped:
prefill_step_requires_feedback(scheduler.rs:1180-1183) returns true for everyPrefillplan before the per-lane check (:1191-1200), and scans all slots (:990), including the planned request's ownResume-phase slot. Reverses #645's two-frame pipelining on the defaultbalancedpath, unmeasured at head. - Major — undeclared contract change:
resolve_prefill_kind_from(scheduler.rs:896-902) forcesTerminalPrefillfor every capacity outsideterminal_prefill_catalogunderdeferred_prefill, leavingneeds_terminaldead, and disagreeing with the empty-catalog early return at:924. - Minor —
check.py:529-535mutation source now removes the guard for all capacities but the message at:605still describes the older&& needs_terminalmechanism. - Minor — the interpolation's floor endpoint ignores work/start_position (
cost.rs:774-784) anddecode_flooris unfiltered across batches (:715-726), systematically mis-pricing cut-limited deep-context chunks — the shapes the PR wants to explore. - Minor —
docs/scheduling-theory.md:93-97,119-120untouched and contradicting; default-on with no opt-in (policy.rs:35-37), against the charter's "be explicit".
All headline numbers were measured on fdb10bb5, predating both the resize_prefill guard (policy.rs:1789-1797) and the barrier — the two changes most likely to move them; no measurement at head exists.
Verified sound: terminal_prefill_window caching (scheduler.rs:842-853), PrefillSlotPlan hoisting (policy.rs:79-86, :1006-1021), interpolation overflow/clamp arithmetic (cost.rs:779-785), service_rates gating (service.rs:224-231), and no unsafe/new GraphKind/wire/ABI/flag change.
Open: which numbers survive at head; whether any signed core has TERMINAL_PREFILL ⊂ PREFILL under deferred_prefill; #660/#655 interactions; the unrun learning.py (not opened) layer-2 gate.
Final review
Recommendation: Changes Requested
The core Rust scheduling changes (interpolated_prefill_duration, chunkable non-terminal Prefill under active age-priced streams, deferred_prefill non-terminal-catalog exclusion, and the age-priced Prefill feedback barrier) are clean, memory-safe, and model-agnostic, with sound TimingOrigin::Discovery handling in commit() and no concurrency or overflow defects found. However, this is a default-on balanced-policy performance change that currently fails two merge gates: (1) it diverges Helios from scripts/scheduling_sim/learning_policy.py's qualified initial_discovery = "native" policy without running the mandatory 64-seed scripts/scheduling_sim/learning.py gate (docs/design-review.md:195-208) and without a head-commit (29f2b5b) served A/B or CI run, and (2) the PR description's throughput pipelining claim contradicts scheduler.rs:989-998, 1180-1183 / policy_tests.rs:7784-7826, while the new service_rates fallback test (policy_tests.rs:7738-7741) has a false-pass blindspot that never exercises prefill_must_complete_terminally_from == true.
Merge Risk
Level: Medium
- Default-on hot-path behavior change: Activates implicitly under the shipped
balancedpreset (decode_age_price = 0.1,terminal_age_price = 1.0,helios/src/scheduler/policy.rs:35-37), narrowing #645's two-framePrefillpipelining to drain after every non-terminalPrefillchunk whenever a decoding, resuming, or terminal-cleanup stream is resident, and relaxing #538's natural-fit-only discovery rule (the same discovery surface where #538 → #550 previously caused a GB10 regression). - Clean concurrency, safety, and artifact compatibility:
RequestScheduleris single-threaded (&mut self), zerounsafe, zero new flags/ABI/graph ops, and signed cores serve unchanged;terminal_prefill_windowcaching (scheduler.rs:657, 842-853) andinterpolated_prefill_durationarithmetic (cost.rs:779-785,u128with non-monotonic clamp and.max(1)) are sound. - Branch lag & rebase: Based on
5d53040e(behind currentmain), with minor textual overlap incost.rs,scheduler.rs, anddocs/scheduling-runtime-design.mdagainst open PRs #655, #660, and #663 (note: #655 only changesSnapshotcost retention viameasured_duration, notActionCosts::entriesor prefill freshness semantics).
Walkthrough
helios/src/scheduler/cost.rs(:695-786,:1280-1577): AddsActionCosts::interpolated_prefill_duration, returning a positive estimate for unmeasuredPrefill/TerminalPrefill/ScoredPrefillcapacities from a measured same-capacity sibling (Prefill↔TerminalPrefill, withScoredPrefillisolated) or linear interpolation between a measured smaller peer (or fastest measuredDecode/Speculative/Resumefloor) and a strictly larger measured peer evaluated atstart_position, clamping non-monotonic timings; adds 3 isolated unit tests.helios/src/scheduler.rs(:657, 803, 838, 842-861, 896-902, 957-1015, 1180-1183): Cachesterminal_prefill_windowon catalog updates; widensresolve_prefill_kind_fromsorequest.deferred_prefillexcludes every capacity absent fromterminal_prefill_catalog; addsprefill_must_complete_terminally_from,has_active_age_priced_stream, andprefill_requires_terminal_completion_for_age; drains non-terminalPrefillsteps inprefill_step_requires_feedbackwhenever an active age-priced stream exists.helios/src/scheduler/policy.rs(:79-86, 350-456, 970-1031, 1330-1381, 1694-1799): Replaceseffective_prefill_catalogwithprefill_catalog_for_terminal; hoists per-slot(cut, terminal_only, nat_fit)intoPrefillSlotPlan; prices unmeasured pure-prefill candidates<= nat_fitusinginterpolated_prefill_durationunderage_price > 0.0(whichcommit()atscheduler.rs:2397-2400still records asTimingOrigin::Discovery); updatesresize_prefillto use the terminal catalog underdeferred_prefilland cap capacity atcandidate.capacityunderage_price > 0.0 && !terminal_only.helios/src/scheduler/service.rs(:201-231): Adds atoken_rate == 0.0fallback inservice_ratesto scan non-terminalPrefillcapacities when an age-priced stream is active and!prefill_must_complete_terminally_from(...).helios/src/scheduler/policy_tests.rs,scripts/scheduling_sim/workloads.py,tests/test_scheduling_utility.py,verification/helios-lifecycle/check.py,docs/scheduling-runtime-design.md,helios/README.md: Adds 7 isolated scheduler tests, a synthetic GB10 utility workload/test, updatedcheck.pymutation source string (:529-535), and runtime-design/README documentation.
Pre-merge Checks
- [PASS] Security / malicious screen: Pure scheduler arithmetic, tests, and docs; no
unsafe, I/O, FFI, parsing, privilege, or untrusted-input surface introduced. - [WARN] Charter & value fit: Right runtime layer, model-agnostic, and zero new flags/ABI changes, but ships implicit default-on
balancedbehavior whose mandatory simulator gate (docs/design-review.md:195-208) is unrun and whosethroughputclaim in the PR description disagrees with the code. - [WARN] Related / duplicate / conflict check: Genuinely additive over #645 (deliberately narrowing its
Prefillpipelining under active age-priced streams) and complementary to #663, but base5d53040eis behindmainand needs coordination/rebase alongside open #655, #660 (same author, oppositemixed-c32stall direction), and #663. - [WARN] Tests & verification evidence: Unit tests are isolated and exercise real entry points, except a false-pass blindspot at
policy_tests.rs:7738-7741; no CI checks are attached on29f2b5b, SM120 A/B ran onfdb10bb5prior toresize_prefill'sdeferred_prefillguard, GB10 numbers predate #656 (571a4471), andscripts/scheduling_sim/learning.pyis unrun.
Blockers
- Unrun mandatory timing-learning gate (
docs/design-review.md:195-208) and pre-head A/B evidence (fdb10bb5vs29f2b5b):- Verified behavior/impact:
docs/design-review.md:201-206requires changes to timing estimation or exploration to be validated against the screening and 64-seed catalog inscripts/scheduling_sim/learning.pyand explicitly states "Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog." Contrary to the assumption that the simulator cannot represent unmeasured timings,scripts/scheduling_sim/learning_policy.py:45, 235-273(initial_discovery = "native", documented atdocs/scheduling-theory.md:551-558) explicitly models Helios's unknown-first discovery; the newtests/test_scheduling_utility.py:422-442only exercises fixed-costUtilityScheduler, not unknown-cost interpolation. In addition, all SM120 A/B numbers were measured onfdb10bb5(beforeresize_prefill'sdeferred_prefillguard atpolicy.rs:1789-1792), the GB10 numbers are pre-#656 (571a4471), and no CI run is attached on head29f2b5b. - Concrete fix: Rebase onto current
main, run the CI verification suite (cargo test --locked --release,pytest,check.py,kani), re-run the SM120 served A/B on the exact head commit, and either model interpolated unmeasured-prefill exploration inscripts/scheduling_sim/learning_policy.pyand runscripts/scheduling_sim/learning.py(updatingdocs/scheduling-theory.md:551-558) or obtain explicit maintainer sign-off waiving the simulator gate for this rule.
- Verified behavior/impact:
Should Fix
- Reconcile
throughputpipelining behavior and PR description (helios/src/scheduler/policy.rs:35-37, 50-52,helios/src/scheduler.rs:989-998, 1180-1183,helios/src/scheduler/policy_tests.rs:7784-7826):- Verified behavior/impact:
PolicyConfig::throughput()zeroesdecode_age_pricebut keepsterminal_age_price: 1.0, andhas_active_age_priced_stream()returnstruefor any residentpolicy::terminal_cleanup(r)stream whenterminal_age_price > 0.0. Consequently,prefill_step_requires_feedback()drains non-terminalPrefillchunks even under--scheduler-policy throughputwhenever a terminal-cleanup (Snapshot) stream is resident. Bothdocs/scheduling-runtime-design.md:620-622and the PR's own testpolicy_tests.rs:7784-7826explicitly assert this, directly contradicting the PR description's claim "solo prefill andthroughput(0.0) keep two-frame pipelining" (and the reported28/24/19launch-parity check does not cover a resident terminal-cleanup stream). - Concrete fix: Retaining
terminal_age_price: 1.0inthroughput()is sensible for prompt KV-page reclamation, so update the PR description to state the terminal-cleanup exception (matchingdocs/scheduling-runtime-design.md:620-622) and verifythroughputlaunch parity with a resident terminal-cleanup stream — or, ifthroughputis meant to preserve pipelining unconditionally, adjust the barrier predicate and updatedocs/scheduling-runtime-design.md:620-622andpolicy_tests.rs:7784-7826accordingly.
- Verified behavior/impact:
- Fix false-pass test blindspot for
prefill_must_complete_terminally_from(helios/src/scheduler/policy_tests.rs:7738-7741,helios/src/scheduler.rs:955-987,helios/src/scheduler/service.rs:225-231):- Verified behavior/impact:
policy_tests.rs:7738-7741assertsservice_rates(short_prompt).0 == Nonefor a 256-token prompt (deferred_prefill = false,caps = [128..16384],term_caps = [256..16384],window = 128) with the comment "A short 256-token prompt must complete terminally (window = 128), so fallback does not apply." In fact,prefill_must_complete_terminally_from(scheduler.rs:957-987) checkscapacity = 128, getsresolve_prefill_kind_from == GraphKind::Prefill(scheduler.rs:896-901because128is absent fromterminal_prefill_cataloganddeferred_prefill == false), and returnsfalse. Theservice.rs:228fallback therefore does run onshort_prompt, and the assertion passes solely becausePrefill(128)was left unmeasured in the fixture (policy_tests.rs:7716) — meaning!self.prefill_must_complete_terminally_from(...)atservice.rs:228is completely unexercised by the test. - Concrete fix: Measure
Prefill(128)(or test adeferred_prefill = true256-token prompt / a catalog whereterm_capsstarts at128) soprefill_must_complete_terminally_fromactually evaluates totrueand provesservice.rs:228suppresses the fallback when no legalPrefillchunk exists; also clarify thescheduler.rs:955-956docstring to reflect that terminal-capablePrefillshapes absent fromterminal_prefill_catalogremain legal when!deferred_prefill.
- Verified behavior/impact:
Subtract / Simplify
- Deduplicate the 30-line unmeasured-prefill interpolation block (
helios/src/scheduler/policy.rs:999-1031and:1349-1381):continuation_candidateandadd_candidatecontain byte-identicalmatch predictor { Some(p) => ..., None => { nat_fit ... last_interp ... } }blocks differing only in variable names (following/width/requestvskind/capacity/r). Extract a single helper (e.g.,prefill_candidate_ns(...) -> Option<u64>) to delete ~25 duplicated lines and prevent drift between the two sites. - Keep
PrefillSlotPlanoff non-prefilladd_candidatearms (helios/src/scheduler/policy.rs:79-86, 420-456, 1323, 1524-1538):PrefillSlotPlanis only read inside prefill branches, yet it is threaded as a trailing&mut [PrefillSlotPlan; REQUEST_LANES]through every non-prefill arm ofcandidates()(Vision,Speculative,Init,Restore,Snapshot,Resume,Decode) and re-cachescutalready memoized byPlanningScope(checkpoints.rs:11-19). To preserve theplan()CPU win without plumbing it through non-prefill paths, consider a dedicatedadd_prefill_candidatehelper or passingOption<&mut ...>only where prefill slots are scored. - Delegate
prefill_catalog_for_terminaltoprefill_catalog(helios/src/scheduler/policy.rs:342-358):prefill_catalog_for_terminalrepeats the same three catalog branches asprefill_catalog; delegating viaself.prefill_catalog(if kind == GraphKind::ScoredPrefill { kind } else if terminal_only { GraphKind::TerminalPrefill } else { GraphKind::Prefill })removes the duplicate switch. - Consolidate peer comparison in
interpolated_prefill_duration(helios/src/scheduler/cost.rs:734-744, 759-772): Keeping the cheap pre-filter beforepred.predictmakes sense, but the(capacity, same_kind)ordering is written out four times (hi/lo× skip/accept); a tiny directional helper keeps the earlycontinuewhile cutting ~15 lines of repetitive branching.
Nits
verification/helios-lifecycle/check.py:528-605: The mutation's failure message at:605still mentions only "before capturing a boundary checkpoint"; noting non-terminal-catalog exclusion underdeferred_prefillwould make any future survivor easier to diagnose.helios/src/scheduler/cost.rs:1284-1511: The three new interpolation tests each re-declare identical ~30-linemake/step_for/timingclosures (also duplicated at:1092-1130); hoisting module-level#[cfg(test)]helpers would remove ~90 lines of test boilerplate.
Dropped on verification
- Upstream C&C Finding 2 ("feedback barrier is scheduler-global, not plan-scoped; solo
RequestPhase::Resumedrains its own prefill"): False. A request inRequestPhase::Resumehas already completed prefill (policy.rs:300-305,scheduler.rs:2865-2871) and can never execute aGraphKind::Prefillplan. Furthermore, aGraphKind::Prefillplan contains only prefill lane(s), so checking whether an age-priced stream exists outsideplan.lanesis identical tohas_active_age_priced_stream()— draining betweenPrefillchunks specifically because another resident slot is decoding/resuming/cleaning up is the intended mechanism of the barrier. - Upstream C&C Finding 3 ("undeclared widening of
resolve_prefill_kind_from, deadneeds_terminal, empty-catalog disagreement"): False.needs_terminalis used atscheduler.rs:903for all capacities interminal_prefill_catalog; returningGraphKind::TerminalPrefillfor capacities absent fromterminal_prefill_catalogwhendeferred_prefill == truecleanly excludes non-terminal-catalog capacities (declared in the PR's What, documented atdocs/scheduling-runtime-design.md:482-483, and tested atpolicy_tests.rs:7432-7650); andrequest.deferred_prefillcan never betruewhenterminal_prefill_catalogis empty (scheduler.rs:855-857, 1857, 2482, 2491). - Upstream C&C Finding 5 ("
interpolated_prefill_durationignoresstart_position, should scale floor bywork / capacityand restrictdecode_floortobatch == 1"): False / harmful fix.start_positionis evaluated viapred.predict(key.tokens, start_position)(cost.rs:755, with borrowed context slope at:750-754); interpolating full-capacity duration incapacityconservatively matches static CUDA-graph execution and avoids discounting padded shapes; anddecode_floortakesmin(estimate.nanos)(cost.rs:724), whereas restricting strictly tokey.batch == 1would break interpolation (None) on multi-decoder servers that have only observedbatch > 1decode graphs. - Upstream C&C Finding 6 (part: "
docs/scheduling-theory.md:74-120contradicts the new default-on behavior"): False.docs/scheduling-theory.md:78-132explicitly documents the fixed-value baseline without decode-age pricing, whiledocs/scheduling-utility.md:282-284already states that under decode-age pricing "a prefill shrinks its chunk size when decoders wait." (The real doc sync point isdocs/scheduling-theory.md:551-558forinitial_discovery = "native", folded into Blocker 1.) - Upstream S&S S1 (part: "
PrefillSlotPlanis under-keyed onkindand mispricesScoredPrefillagainstterminal_prefill_catalog"): False. Checkedpolicy.rs:304, 921, 1511: a request withprompt_logprobs == trueonly entersScoredPrefill(neverPrefill/TerminalPrefill), and a request withprompt_logprobs == falseonly entersPrefill/TerminalPrefill, for both of whichprefill_catalog_for_terminal(kind, terminal_only)returns the exact same slice. - Upstream S&S S3 ("replace
service.rs:224-231double scan with a singlescan_prefill(terminal_only && !allow_nonterminal)with identical semantics"): False. The rewrite is not semantically identical: whenTerminalPrefillis already measured at a lower rate than a smaller measuredPrefill, thetoken_rate == 0.0fallback preserves the terminal rate whereas S3's rewrite would replace it with the higher non-terminal rate and alterServicePricenormalization wheneverhas_active_age_priced_stream()toggles. - Upstream Dossier / Value Prop claim ("substantive semantic rebase against #655 rewriting
ActionCosts"): Overstated. Verified #655: it replacesfresh_durationwithmeasured_durationforSnapshotonly and does not alterActionCosts::entries,Estimate, or prefill freshness semantics; any rebase with #655 is minor/textual. - Upstream Dossier / C&C claim ("the simulator has no representation of an unmeasured cost"): False.
scripts/scheduling_sim/learning_policy.py:45, 235-273(initial_discovery = "native") explicitly models unmeasured graph costs and unknown-first discovery. - Upstream C&C claim ("feedback barrier landed after
fdb10bb5"): Unverified / misread. The PR's Limits state only thatresize_prefill'sdeferred_prefillguard and doc/test hardening landed afterfdb10bb5.
Classify triage
Selected: (none)
Threshold: 65%
Triage
-
triage:validation: 55.9% -
triage:review: 43.5% -
triage:design-review: 0.5% -
none: 0.0% -
triage:partial: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:integration: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with. decide malicious: all_clear (100%): No malicious content found
explore
Author: FujitsuPolycom (CONTRIBUTOR; repeat Helios scheduler contributor; Discord "Dooner")
Motivation: Under the default balanced policy Helios cannot run prefill and decode in one graph on this model, so cold long prompts occupy the GPU in chunks and decoders sit idle, producing visible output stalls. The PR lets the scheduler try smaller, unmeasured prefill chunk sizes and hand the GPU back to waiting decoders between them.
Scale: +1949 / −106 lines in 11 files (production +397/−78 in 4 files; the rest is tests and docs)
Proposal:
- New
ActionCosts::interpolated_prefill_durationestimates unmeasured prefill chunk costs from GPU-measured neighbours (cost.rs:695-786). - Unmeasured pure-prefill candidates under the natural fit compete by interpolated ValueRate when
age_price > 0(policy.rs:1465-1492). - Allows non-terminal
Prefillchunks undermax_terminalwhile streams are active, and drains the transport after each such chunk (scheduler.rs:1187-1190). resolve_prefill_kind_fromnow maps every capacity outside the terminal catalog toTerminalPrefillunderdeferred_prefill(scheduler.rs:901-906).- Adds a
service.rsfallback rescanning non-terminal capacities so prefill gets a positive token rate (service.rs:298-328). Touches: helios/src/scheduler/policy.rs— selection, discovery, resize caps, prefill pricinghelios/src/scheduler.rs— kind resolution and feedback draining of the transporthelios/src/scheduler/cost.rs— new interpolation rule feeding every estimate Related items:- #645 Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining (merged): the mechanisms #661 narrows, merged one day earlier
- #538 Restrict cold pure-prefill discovery to natural-fit graph capacities (merged): same author; the restriction #661 relaxes
- #550 Restore prefix checkpoints on prefill catalogs without terminal prefill (merged): the 0.02 s → 15.3 s GB10 regression from that same restriction
- #663 Price first-output waiting age on incumbent decode rounds (merged): complementary sibling; #661 now claims to halve its regression
- #660 Budget interior conversation-anchor splits (open): same author, same control row, opposite stall direction (215 → 434 vs 215 → 78)
Link: https://github.com/NVIDIA/hyperflare-inference/pull/661
Autobot comments: Now at head
c588d610on current main, +1,949/−106 in 11 files, so earlier "behind main / rebase needed" notes are stale. A fifth production file,service.rs, silently changes prefill service pricing for defaultbalancedusers — undeclared. The body's "throughputpipelines" claim is still false:throughput()leavesterminal_age_price = 1.0(policy.rs:50-52), and the new test documents the exception (policy_tests.rs:8291-8314). One new test can pass regardless of the guard it names (policy_tests.rs:7728-7810).docs/scheduling-theory.md:558-565now admits the simulator divergence but:74-76/:93-97still assert the opposite. Headline A/B numbers predate the head, no CI is reported forc588d610, the 64-seed validation gate is unrun and the simulator cannot model the changed mechanisms, and the Autobot Changes-Requested review targets the superseded29f2b5bwith no human review at all.
Classify intake
Selected: performance, area:scheduling
Threshold: 65%
Triage
-
triage:design-review: 54.2% -
triage:review: 37.3% -
triage:validation: 8.3% -
triage:investigate: 0.1% -
none: 0.1% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:partial: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
performance: 98.8% -
enhancement: 62.2% -
community: 50.0% -
bug: 24.5% -
duplicate: 20.2% -
documentation: 1.4%
Area
- [✓]
area:scheduling: 99.4% -
area:preparation: 8.5% -
area:engram: 6.8% -
area:kernels: 2.3% -
area:api: 1.1% -
area:memory: 1.1% -
area:caching: 0.6% -
area:selene: 0.4% -
area:rocenante: 0.2% -
area:orbit: 0.2% -
area:packaging: 0.0%
Model
-
model:deepseek-v4.1: 2.9% -
model:deepseek-v4: 1.2% -
model:kimi-k3.1: 1.0% -
model:mimo-v2.6: 0.7% -
model:nemotron-3.5-bolt: 0.6% -
model:glm-5.3: 0.3% -
model:muse-glimmer: 0.2% -
model:qwen3.8-27b: 0.2% -
model:inkling-small: 0.1% -
model:gemma4: 0.1% -
model:qwen3.8-flash-next: 0.1%
Apply Labels (Intake)
No label changes
Subtraction and simplicity
Subtraction/simplicity review of #661 (head c588d610 on 1fbcc3c9). Verdict: the +397/−78 production diff is otherwise lean — no new flags, knobs, env vars, unsafe, per-model branches, or ABI change — but five real simplifications exist, two of them copy-paste.
- 33-line interpolated-exploration block pasted verbatim twice —
policy.rs:1110-1142and:1462-1494, identical modulokind/capacity/r; extract oneexplore_prefill_ns(...) -> Option<u64>and both sites collapse to one line (~66 → ~16 lines). - The
last_interpmemo that rides along with it (policy.rs:1081,:1443and the match/match plumbing) is speculative micro-optimisation over an O(#graphs) integer scan; it disappears with the extraction. - "unmeasured ⇒
PlanOrigin::Discovery" duplicated atpolicy.rs:1784-1789and:2071-2077; one helper using the existingcosts.duration_key(..).is_none_or(|ns| ns == 0)(cost.rs:873) replaces theobservation(..).and_then(..)tuple dance (cost.rs:904-908proves equivalence). interpolated_prefill_durationhand-inverts its own tie-break — a skip filter atcost.rs:734-744and the real selection at:762-772encode the same predicate twice; derive onebetter(..)predicate.service.rs:298-328scans the prefill catalog twice (scan_prefill(terminal_only)thenscan_prefill(false)); one pass tracking both maxima removes theskip_nonterminalparameter and halves the extra per-call scan.- Medium/low: ~92 lines of byte-identical test fixtures triplicated in
cost.rs(:1284,:1359,:1478) wheremake_prefillhelpers already exist;prefill_catalog/prefill_catalog_for_terminal(policy.rs:363-379) are the same three-way selector twice;PrefillSlotPlan(:89-96) memoises acutthatcheckpoint_selections(checkpoints.rs:410-428) already caches; the runtime-design doc states the exploration rule twice (:486-498vs:665-668).
Open: none of these are correctness bugs; terminal_prefill_window and the two guard helpers are genuine simplifications, not additions to the subtraction surface.
Correctness and contracts
Reviewed PR #661 (head c588d61 on main 1fbcc3c9) for correctness, contracts and system-level consequences. The scheduler mechanics are largely sound (single-threaded, no new locks/unsafe, no underflow, discovery plans still drain), but four issues block merge:
- Undeclared model-contract reversal (Blocker) —
scheduler.rs:901-906now returnsTerminalPrefillfor every capacity absent fromterminal_prefill_catalogwheneverrequest.deferred_prefill, droppingneeds_terminal;helios/model-contract.md:182-186still promisesPREFILLfallback.verification/helios-lifecycle/check.py:527-535now enshrines the new rule. - Two-frame prefill pipeline disabled by any terminal-cleanup stream (Major) —
scheduler.rs:1187-1190drains unconditionally whenhas_active_age_priced_stream(), which includesterminal_cleanuprequests atterminal_age_price=1.0, sothroughput()(policy.rs:50-52) no longer pipelines. The PR body still claims "(throughput pipelines)"; its own testpolicy_tests.rs:8291-8333documents the exception. - Service-rate scope discontinuity (Major) —
service.rs:321-328only rescans non-terminal prefills whentoken_rate == 0.0, yet non-terminal chunks are now legal, soServicePricejumps when the fallback flips, contradictingdocs/scheduling-runtime-design.md:240-251. - Optimistic interpolated estimate (Major) —
cost.rs:720-777uses the min decode cost over any batch as the capacity-0 rung with no KV-context term; against the PR's own GB10 table estimates are 15–31% low (47.9 vs 65 ms at 256), biasingValueRateand thecapacity <= nat_fitgate toward the smallest chunks and explaining the body's own "+1.8% makespan".
Also Major: nat_fit is cached per slot without a kind key (policy.rs:89-96, :518-537) while one plan array is shared across the Prefill and TerminalPrefill passes (:1599-1634), so the terminal exploration gate uses the ordinary prefill catalog's natural fit. Evidence remains head-stale (body Limits), and the mandatory 64-seed simulator gate is unrun on a simulator that cannot model the changed mechanisms.
Open: whether the deferred_prefill widening is intentional (no contract version change declared) and whether any served A/B exists for c588d610.
Re-review
Recommendation: Changes Requested
Head c588d61 cleanly rebases onto main (1fbcc3c9), adds the PlanOrigin::Discovery and deferred_prefill/resize_prefill safety guards with strong isolated unit tests, and keeps the core Rust scheduling implementation memory-safe, single-threaded, and model-agnostic. However, the Round 1 verification blocker remains unresolved—neither the mandatory 64-seed simulator timing validation (docs/design-review.md:195-208) nor a head-commit served A/B / CI run on c588d61 is present—and RequestScheduler::service_rates (helios/src/scheduler/service.rs:297-328) still misprices feasible non-terminal Prefill rates whenever any TerminalPrefill shape is already measured.
Merge Risk
Level: Medium
- Default-on hot-path behavior change: Activates implicitly under the shipped
balancedpolicy (decode_age_price = 0.1,helios/src/scheduler/policy.rs:35), unlocking smaller unmeasured pure-prefill chunks via GPU-interpolated one-shot discovery and draining non-terminalPrefillsteps whenever an active age-priced stream is present (narrowing #645's two-frame prefill pipelining on the same cold-discovery surface where #538 → #550 previously caused a GB10 regression). - Sound safety & concurrency invariants:
RequestSchedulerremains single-threaded with zerounsafe, no new CLI flags/ABI/graph-op changes, soundu128interpolation clamping (cost.rs:779-785), and a sounddeferred_prefillsafety guard (scheduler.rs:901-907) preventing non-terminal-catalog full-statePrefillgraphs from running over skipped continuation state. - Residual pricing & validation risk: Under
service.rs:321-328, measuring any coveringTerminalPrefillsuppresses faster feasible non-terminalPrefillrates inservice_rates, distortingServicePriceshare accounting during active-stream chunking; and all headline SM120/GB10 benchmarks predate the newresize_prefill/Discoveryguards and1fbcc3c9rebase.
Walkthrough
helios/src/scheduler/cost.rs(:695-786,:1279-1577): AddsActionCosts::interpolated_prefill_durationto estimate unmeasuredPrefill/TerminalPrefill/ScoredPrefillcapacities from a measured same-capacity sibling (Prefill↔TerminalPrefill;ScoredPrefillisolated) or linear interpolation between a smaller measured peer (or fastest measuredDecode/Speculative/Resumefloor) and a strictly larger measured peer, with safeu128arithmetic and non-monotonic clamping; adds 3 isolated unit tests.helios/src/scheduler.rs(:662, 757, 808, 843, 847-866, 901-907, 964-1022, 1187-1190): Cachesterminal_prefill_windowon catalog updates; tightensresolve_prefill_kind_fromsorequest.deferred_prefillexcludes capacities absent fromterminal_prefill_catalogeven when!needs_terminal; addsprefill_must_complete_terminally_from,has_active_age_priced_stream, andprefill_requires_terminal_completion_for_age; drains non-terminalPrefillsteps inprefill_step_requires_feedbackwhile an active age-priced stream exists.helios/src/scheduler/policy.rs(:89-96, 371-379, 414-439, 501-537, 1081-1142, 1443-1494, 1599, 1784-1792, 1813-1815, 1863-1865, 1906-1920, 2052, 2071-2081): Replaceseffective_prefill_catalogwithprefill_catalog_for_terminal; hoists per-slot prefill state intoPrefillSlotPlan; enables interpolatedValueRatescoring for unmeasured pure-prefill capacities<= nat_fitunderage_price > 0.0while classifying them asPlanOrigin::Discoveryinselect_plan()andphase_plan(); keepsresize_prefillinsideterminal_prefill_catalogunderdeferred_prefilland caps age-priced resizes atcandidate.capacity.helios/src/scheduler/service.rs(:297-328): Adds atoken_rate == 0.0fallback rescanning non-terminalPrefillcapacities whenterminal_only && has_active_age_priced_stream() && !prefill_must_complete_terminally_from(...).- Tests, simulator workload, lifecycle check & docs (
helios/src/scheduler/policy_tests.rs,scripts/scheduling_sim/workloads.py,tests/test_scheduling_utility.py,verification/helios-lifecycle/check.py,docs/scheduling-runtime-design.md,docs/scheduling-theory.md,helios/README.md): Adds 9 isolated Rust scheduler tests (GB10 storm, continuation/add-candidate oversized-sibling guards,resize_prefillcaps,deferred_prefillexclusion,service_ratesfallback,has_active_age_priced_streambranches,Discoveryorigin preservation), synthetic GB10 simulator workload/test, updatedcheck.py:527-535mutation target, and updated runtime/README/theory docs.
Pre-merge Checks
- [PASS] Security / malicious screen: Pure scheduler cost-estimation and selection arithmetic, tests, and docs; no
unsafe, I/O, FFI, parsing, privilege, or untrusted-input surface added. - [WARN] Charter & value fit: Right runtime layer, model-agnostic, zero new flags/ABI, and solves a real
balancedstall problem; however, it ships default-on without meeting the mandatory 64-seed timing-estimation simulator gate (docs/design-review.md:195-208), and the PR body's(throughputpipelines)shorthand omits theterminal_cleanupdrain exception. - [PASS] Related / duplicate / conflict check: Cleanly rebased on
main1fbcc3c9(post-#663/#667), additive over #645, and orthogonal to open #655/#660 (minor rebase coordination incost.rs/docs/only). - [WARN] Tests & verification evidence: Unit/contract tests are isolated and exercise real scheduler paths, and local archive verification is detailed; however, GitHub Actions CI is not reported on
c588d61, all SM120/GB10 A/B numbers predate theresize_prefill/Discoveryguards and1fbcc3c9rebase, andlearning.py --preset validate(64 held-out seeds) is unrun.
Blockers
- Unresolved Round 1 verification gates: mandatory 64-seed simulator timing gate unrun and no served A/B or CI on head
c588d61(docs/design-review.md:195-208, PR bodyEvidence/Limits):- Verified behavior/impact:
docs/design-review.md:201-206mandates that "Changes to timing estimation or funded refresh require running the screening and 64-seed validation catalog inscripts/scheduling_sim/learning.py… Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog." This PR adds a new timing estimator (ActionCosts::interpolated_prefill_duration,helios/src/scheduler/cost.rs:695-786) and changes unmeasured pure-prefill discovery underage_price > 0.0(helios/src/scheduler/policy.rs:1110-1142, 1462-1494). PR Evidence reports onlylearning.pysmoke+screen, which run seeds(0, 1)andTRAINING_SEEDS = range(16)(scripts/scheduling_sim/learning.py:488-497,scripts/scheduling_sim/learning_analysis.py:12-13)—not--preset validate(HELDOUT_SEEDS = range(10_000, 10_064)). Moreover,scripts/scheduling_sim/learning_policy.py:255-273(initial_discovery = "native") was not updated to model interpolated unmeasured pure-prefill discovery (which uses onlyGraph.prefill_capacityandGraph.decode_capacity, already present inscripts/scheduling_sim/model.py:24-30, independent ofTERMINAL_PREFILLor two-frame pipelining);docs/scheduling-theory.md:558-565merely documents the divergence. Separately, per the PR body's own Limits, all SM120flare runA/B numbers ran onfdb10bb5/82f68ea8before theresize_prefill/PlanOrigin::Discoveryguards and the1fbcc3c9rebase (and GB10 numbers predate #656), with no CI result readable forc588d61. - Fix: (1) Either model the interpolated unmeasured pure-prefill discovery rule in
scripts/scheduling_sim/learning_policy.pyand passlearning.py --preset validate(64 held-out seeds), or obtain explicit maintainer sign-off waiving simulator parity for this rule; and (2) re-run the key SM120 served A/B (mixed-c32andT_50C) onc588d61(post-guards, post-rebase) and confirm green GitHub Actions CI on the mergeable head.
- Verified behavior/impact:
Should Fix
service_ratesgates feasible non-terminalPrefillpricing ontoken_rate == 0.0, understating feasible rate once anyTerminalPrefillshape is measured (helios/src/scheduler/service.rs:297-328):- Verified behavior/impact: Selection (
helios/src/scheduler/policy.rs:511-512) computesterminal_onlyviaprefill_requires_terminal_completion_for_age, so under active age-priced streams non-terminalPrefillchunks are feasible whenever!prefill_must_complete_terminally_from(...). By contrast,service_rates(service.rs:297-328) computesterminal_only = self.prefill_requires_terminal_completion_from(...), skipsGraphKind::Prefillon the first scan, and only rescans withskip_nonterminal = falseiftoken_rate == 0.0. As soon as any coveringTerminalPrefillshape is measured (e.g., a slower paddedTerminalPrefill(16384)for an 8192-token prompt),scan_prefill(true)returns a positive rate and suppresses a faster measured feasiblePrefill(4096)chunk. WhenPrefill(4096)then executes,observe_service/projected_service(service.rs:432-433) divides its tokens by the understated terminal rate, overcharging the request's normalized GPU share and violatingdocs/scheduling-runtime-design.md:247-249. - Fix (subtractive—also removes the double catalog scan): Replace the
scan_prefillclosure andtoken_rate == 0.0rescan athelios/src/scheduler/service.rs:297-328with a single pass using the same feasible-set condition:
followed by the singlelet terminal_only = if self.has_active_age_priced_stream() { self.prefill_must_complete_terminally_from(request, start, cut) } else { self.prefill_requires_terminal_completion_from(request, start, cut) };for &capacity in catalogloop skippingkind == GraphKind::Prefillonly whenterminal_only. Add a unit test measuring both a slower paddedTerminalPrefilland a faster feasiblePrefillunder an active decoder and assertingservice_ratesreturns the faster feasible rate.
- Verified behavior/impact: Selection (
- PR description's
(throughputpipelines)claim omits theterminal_cleanupdrain exception (helios/src/scheduler.rs:996-1005, 1187-1190,helios/src/scheduler/policy.rs:37, 50-52,helios/src/scheduler/policy_tests.rs:8291-8314):- Verified behavior/impact:
PolicyConfig::throughput()zeroesdecode_age_pricebut keepsterminal_age_price: 1.0, andhas_active_age_priced_stream()returnstruewhenever a finishing request is inpolicy::terminal_cleanup(r)—which intentionally drains non-terminalPrefillso retirementSnapshots are not delayed behind two-frame pipelined prefills (already tested atpolicy_tests.rs:8291-8314and accurately documented inhelios/README.md:285-287). However, the PR body still claims unqualified(throughputpipelines)from Round 1. - Fix: Update the PR body to state accurately that
throughputkeeps two-framePrefillpipelining across active decode/resume streams and drains only when a finishingterminal_cleanupstream is resident (terminal_age_price > 0.0).
- Verified behavior/impact:
Subtract / Simplify
- Extract the duplicated 33-line interpolated-exploration block and delete the speculative
last_interpmemo (helios/src/scheduler/policy.rs:1081, 1110-1142and:1443, 1462-1494):continuation_candidateandadd_candidatecontain byte-identical 33-line exploration blocks, including a 16-linelast_interpcache that only hits when two distinct prefilling slots share identical(work, scheduled_consumed)for the same capacity while scanning a smallself.entriestable with no allocation. Extract a singleexplore_prefill_ns(...) -> Option<u64>helper onRequestSchedulerwithoutlast_interp(~65 lines removed) so the core exploration gate cannot drift between the two call sites.
- Unify the duplicated
PlanOrigin::Discoverypredicate (helios/src/scheduler/policy.rs:1784-1792and:2071-2081):select_planandphase_planduplicateduration_ns == 0 || self.costs.observation(key).and_then(|(_, observed, _)| observed).is_none(), which is equivalent toduration_ns == 0 || self.costs.duration_key(key).is_none_or(|ns| ns == 0)(helios/src/scheduler/cost.rs:873-875, 904-908). Extract a singleplan_origin(&self, candidate: Candidate) -> PlanOriginhelper.
- Deduplicate the inverted peer-selection predicate in
interpolated_prefill_duration(helios/src/scheduler/cost.rs:734-744vs:759-772):- The early-skip filter at
:734-744hand-inverts the same(tokens, same_kind)tie-break applied at:759-772. Hoist one comparison predicate (or drop the redundantcur_same && !same_kindearly skip) so the peer-ranking rule lives in one place.
- The early-skip filter at
- Promote the triplicated test closures in
helios/src/scheduler/cost.rs(:1284-1317,:1359-1392,:1478-1511):make,step_for, andtimingare pasted byte-identically across all three new unit tests (~92 lines). Promote them to module-local#[cfg(test)]helpers to save ~60 lines.
Nits
docs/scheduling-theory.md:74-76, 93-97vs:558-565: The new paragraph at:558-565explains native Helios's interpolated cold discovery, while:93-97states the steady-state measured objective ("No duration ceiling, prefill size preference, or breadth-before-depth rule precedes it"). Adding a brief parenthetical pointer at:93-97to the cold-discovery rules inscheduling-runtime-design.mdprevents readers from seeing an apparent contradiction.docs/scheduling-runtime-design.md:486-505vs:665-668::665-668restates the exploration limit already specified normatively at:486-505; trimming:665-668to a cross-reference reduces doc-drift surface.helios/src/scheduler/policy.rs:363-379:prefill_catalog(kind)can delegate directly toself.prefill_catalog_for_terminal(kind, kind == GraphKind::TerminalPrefill).
Dropped on verification
- Upstream F6 (Blocker) — "
deferred_prefillkind resolution contradictshelios/model-contract.md:182-186and forces terminal rebuild on every mid-prompt chunk": Dropped as false. Verified athelios/src/scheduler.rs:901-912, 2489-2499, 2859-2861,helios/model-contract.md:173-186, andpolicy_tests.rs:7939-8156:binary_search(&capacity).is_err()only matches capacities absent fromterminal_prefill_catalog(e.g.,128), whereas mid-prompt chunks insideterminal_prefill_catalog(256..=16384) still fall through toif needs_terminal { TerminalPrefill } else { Prefill }and run as non-terminalPrefill. Whendeferred_prefillis true, earlier chunks skipped trailing continuation layers, so running a full-statePrefill(128)graph would read incomplete continuation state without clearingdeferred_prefill; excluding128whiledeferred_prefill == trueis a necessary safety guard (models withoutTERMINAL_PREFILL, and requests with!deferred_prefill, still fall back toPREFILL). - Upstream F5 (Major) — "
PrefillSlotPlan::nat_fitaliases acrossPrefillandTerminalPrefill, breakingTERMINAL_PREFILLexploration": Dropped as false. Verified athelios/src/scheduler/policy.rs:371-379, 414-439, 518-537, 1611-1627:prefill_catalog_for_terminal(kind, plan.terminal_only)checks onlykind == GraphKind::ScoredPrefill, returning the exact same catalog forPrefillandTerminalPrefill, andnatural_fit_prefill_capacity_for_terminaldoes not takekind. A single request slot can never simultaneously matchScoredPrefillandPrefill/TerminalPrefill, andnat_fitis the smallest capacity maximizing single-step work (not catalog minimum128). - Upstream F4 (Major) — "
interpolated_prefill_durationhas wrong-batch decode floor, missing KV-context term, and causes steady-state extra chunks/stalls": Dropped as false / mischaracterized. Verified athelios/src/scheduler/cost.rs:668, 695-786, 797andpolicy.rs:1462-1494: (1).minacrossDecode | Speculative | Resumebatches selects the fastest measured single-token forward pass (larger batches are slower); (2) KV-context work scales linearly withcapacity * start_position(cost.rs:797), which is0atcapacity = 0, so interpolating from(0, decode_floor)to(c_hi, t_hi(start_position))already scales the context term proportionally; (3) retaining measured durations after TTL expiry matchesprefill_entry(cost.rs:668, PR #285/#655); and (4) interpolation is a one-shot cold-discovery prior (PlanOrigin::Discovery) replaced permanently after a single GPU execution, not a steady-state cost. - Upstream A7 / Test Blindspot — "
policy_tests.rs:7728-7810(continuation_candidate_excludes_oversized_padded_unmeasured_prefill) cannot test the prefill guard because it callsphase_plan(GraphKind::Init, ...)": Dropped as false. Verified atpolicy.rs:1075-1179, 1297-1305, 1565-1575, 2058-2060andpolicy_tests.rs:7790-7809:phase_plan(GraphKind::Init, Some(prompt))invokesadd_candidate(Init)→continuation_candidate, which loops overPrefillandTerminalPrefillcapacities (:1297-1302) and directly exercises thenat_fit.is_some_and(|nat| width <= nat)guard atpolicy.rs:1116. The twinadd_candidateguard (policy.rs:1468) is separately covered bypolicy_tests.rs:8337-8423. - Upstream F2 sub-claims — "require an age-priced lane inside the
Prefillplan" & "diverginghas_active_age_priced_streamvs scaledage_price": Dropped as invalid / low-signal. APrefillplan contains only the prefilling request (batch 1), never the waiting decoding/cleanup streams, so checking lanes insideplanwould defeat draining; and any raw-vs-scaledage_pricedivergence is strictly conservative (drains rather than risking stalls). - Upstream S8 — "delete
PrefillSlotPlanbecausecutis cached incheckpoint_selections": Dropped as low-signal.PrefillSlotPlanis a small stackCopyarray avoiding repeatedRefCellborrows andHashMaplookups across up to 23 capacities × active lanes while co-cachingterminal_onlyandnat_fit. - Upstream dossier stale rebase items ("behind
main/ needs rebase onto #663"): Dropped as stale. Headc588d61is already rebased cleanly ontomain1fbcc3c9.
Classify triage
Selected: triage:validation
Threshold: 65%
Triage
- [✓]
triage:validation: 94.8% -
triage:review: 4.7% -
triage:design-review: 0.4% -
none: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:integration: 0.0% -
triage:superseded: 0.0% Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.
Apply labels
Applied: +triage:validation, -triage:design-review decide malicious: all_clear (100%): No malicious content found
explore
Author: FujitsuPolycom (CONTRIBUTOR; repeat Helios scheduler contributor; Discord "Dooner")
Motivation: On the shipped balanced policy, Helios has no mixed prefill/decode graph, so a cold long prompt gets run as one big prefill step that blocks every decoding user for up to a second. This PR lets the scheduler try small prefill chunks it has never measured, paced so decoders re-compete between chunks.
Scale: +2,778 / −186 lines in 15 files
Proposal:
- Estimate unmeasured prefill shapes by interpolating measured neighbours (
cost.rs:695-776) and score them for discovery while decoders are age-priced. - Force a transport drain after each non-terminal prefill step whenever an age-priced decode/resume/terminal-cleanup stream is resident (
scheduler.rs:1187-1190). - Restrict
deferred_prefillandresize_prefillto the terminal prefill catalog and cap age-priced resize growth (scheduler.rs:901-907,policy.rs:1838-1853). - Carry the first-output wait clock and interior checkpoint-cut credit across non-terminal chunks.
- Model
initial_discovery = "interpolated"in the Python simulator and run the 64-seed validation gate. Touches: helios/src/scheduler/policy.rs— candidate scoring, per-slot plan cache, resize capshelios/src/scheduler.rs— drain barrier, kind resolution, terminal-window cachescripts/scheduling_sim/*— the mandatory Layer-2 timing simulator and its tests Related items:- #645 Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining (merged): the mechanism #661 narrows the day after it merged
- #538 Restrict cold pure-prefill discovery to natural-fit graph capacities (merged): same author, the discovery rule #661 relaxes
- #550 Restore prefix checkpoints on prefill catalogs without terminal prefill (merged): fixed the GB10 15.3 s regression #538 caused
- #663 helios/scheduler: price first-output waiting age on incumbent decode rounds (merged): sibling scheduler PR, now in main
- #676 large prefill chunks cause >1.4s decode p99 ITL under balanced policy on GB10 (open): independent reproduction, offers GB10 validation
Link: https://github.com/NVIDIA/hyperflare-inference/pull/661
Autobot comments: The branch moved to
3d868f84and the body was rewritten. Four earlier objections are now resolved: theservice_ratesmispricing (single pass,service.rs:297-311), the false "throughputpipelines" claim, the "numbers predate the head" objection, and "theory doc untouched". What remains is a narrower set: the served A/B is author-reported with no in-repo harness (workloads live inFujitsuPolycom/tokbench) and now shows SLO regressions (cold-heavy-mix89.0 % → 81.6 %, drain cutoffs 4 → 7; cold-burst peak gap 277.4 → 433.7 ms) that the body does not explain; the 64-seed gate covers only the interpolation rule, since the simulator has a single prefill family, and its--configsfile is uncommitted; thedeferred_prefillkind widening and theservice_ratesrepricing are still undeclared;docs/scheduling-theory.md:74-76/:121-122still assert prefill needs no cadence or smaller chunks. Both Autobot reviews are Changes Requested but target superseded heads; there is no human review, and the claimed CI run is not readable.
Subtraction and simplicity
Subtraction/Simplicity/Conventions review of PR #661 @ 3d868f84: no reject-level convention violation, and the diff is leaner than typical — it deletes a duplicated ~60-line prefill branch into add_prefill_candidate, caches terminal_prefill_window, and adds no CLI flag, no PolicyConfig field, no unsafe.
Five cuts, four sharing one cause (the age-priced path was added alongside the terminal logic rather than through it):
policy.rs:517-543— thelast_interpmemo is dead weight: declared per capacity (:1092,:1429) so it can only hit across slots with identical(work, scheduled_consumed); costs a hand-spelled tuple type three times, a&mutparameter threaded through two callers, and the sole reason for the#[allow(clippy::too_many_arguments)]. Replace with a directif let Some(ns) = self.costs.interpolated_prefill_duration(...) { return Some(ns); }; drop the parameter fromprefill_candidate_ns,add_prefill_candidate,continuation_candidate.- Three near-identical catalog walks —
scheduler.rs:964-994,policy.rs:409-434,policy.rs:451-459— same work/kind/skip-Prefillshape, one differing acceptance test. Collapse to one helper takingterminal_only+ animpl Fnpredicate; shrinks each caller to 3-4 lines. - The age-price terminal dispatch is spelled twice (
scheduler.rs:1007-1022keys onage_price > 0.0withprefill_cursor;service.rs:297-301re-implements it onhas_active_age_priced_stream()withconsumed_tokens) — widen the helper to(request, start, cut, age_price)and call it from both. Relatedlyhas_active_age_priced_stream()scans all slots yet is called per request inside the rates fold (policy.rs:750-757), plus:503andscheduler.rs:1188; compute once per pass, as the PR already did forterminal_prefill_window. - Delete
prefill_catalog_for_terminal(policy.rs:371-374, usesGraphKindas a bool, 3 call sites) and addActionCosts::is_measuredbesideis_freshto replace the tuple re-destructuring inis_unmeasured_candidate(policy.rs:545-548). docs/scheduling-theory.md:562-573restates the rule already indocs/scheduling-runtime-design.md:494-513with a cross-link; replace with two sentences.policy.rs:462-478is a 25-line rationale-as-history doc comment.
Open: no planner-timing evidence for any memo/scan claim; whether the nat_fit cross-kind memo (policy.rs:526-530 vs shared prefill_plans at :1537) is a real defect is a Correctness call; no real signed core with TERMINAL_PREFILL ⊂ PREFILL is identified.
Correctness and contracts
Two substantive findings, both in touched Rust production code and both uncovered by tests.
-
Major —
helios/src/scheduler.rs:901-907dropsneeds_terminalfrom the deferred-prefill branch, so any capacity absent fromterminal_prefill_catalogresolves toTerminalPrefillwhiledeferred_prefillis set. On a subset catalog that capacity has no terminal shape, sopolicy.rs:1435/:1427produce no candidate at all, andservice.rs:307-319loses that capacity's measured token rate (ServicePrice fairness normalizer shifts silently). It contradictshelios/model-contract.md:182-186, diverges from the Python reference (ignition/direct/scheduler.py:300-312), is policy-independent so--scheduler-policy throughputdoes not opt out, andverification/helios-lifecycle/check.py:527-535now enshrines the widened line under a message describing the old rule. -
Major risk —
helios/src/scheduler/policy.rs:531-542evaluates interpolation before the natural-fitSome(0)marker with guardcapacity <= nat, so the nat-fit capacity loses theduration_ns == 0precedence ofValueRate::compare(utility.rs:167-172) exactly when age pricing is active. If the estimate cannot outbid a decoder the shape is never dispatched, never measured, and (per the new drain atscheduler.rs:1187-1190) cannot pipeline either — #538's discovery invariant no longer holds underbalanced. No test covers nat-fit precedence withage_price > 0.0.
Minor: docs/scheduling-theory.md:74-76 and :121-122 still state the opposite; docs/scheduling-utility.md lacks the two new credit rules; the body's opt-out line overstates; SLO regressions (89.0→81.6 %, 94.8→89.3 %, n=1) unexplained.
Sound: interpolation u128 math and clamp, last_interp memo, is_unmeasured_candidate, resize_prefill cap, cached terminal_prefill_window, wait-clock and interior-cut-credit guards, no new unsafe/ABI/flag, platform parity.
Open: is the widening deliberate and does any real signed core have a strict-subset terminal catalog? Should the Python mirror and check.py follow? Where is the 64-seed --configs file? No independent A/B reproduction; cargo-kani not run; GB10 not re-measured.
Re-review
Recommendation: Ready To Merge
Head 3d868f8 resolves every Round 2 blocker and should-fix item cleanly: interpolated unmeasured pure-prefill discovery is now modeled and validated across the mandatory 64-seed scripts/scheduling_sim/learning.py --preset validate catalog, RequestScheduler::service_rates derives terminal_only in a single pass aligned with candidate selection, the throughput drain wording is corrected, and fresh SM120 TP4 flare run A/B and archive test/TLA+/mutation runs are reported on the submitted tree. Direct verification of the core scheduler changes—including the two new balanced single-graph wait/credit fixes—confirms sound single-threaded state transitions, memory safety, and contract compliance with no new regressions. Confirm GitHub Actions CI is green on 3d868f8 before merging.
Merge Risk
Level: Medium
- Default-on
balancedhot-path behavior change: Activates implicitly under--scheduler-policy balanced(decode_age_price = 0.1), allowing unmeasured pure-prefill capacities<= nat_fitto compete via GPU-interpolated durations (helios/src/scheduler/cost.rs:695-776,policy.rs:531-542), unblocking non-terminalPrefillchunks belowmax_terminal, and draining non-terminalPrefillsteps whenever an active age-priced stream is resident (helios/src/scheduler.rs:1187-1190). - Measured workload trade-offs & benchmark limits: On SM120 TP4 (
3d868f8vsmain1fbcc3c9),>250 msdecode stalls drop substantially (-32.2%onmixed-c32,-41.7%onlong-context-mixed,-8.6%oncold-heavy-mix), but overall SLO dips across all three mixes (91.1% -> 89.4%,94.8% -> 89.3%,89.0% -> 81.6%, with4 -> 7client-side 45 s drain cutoffs under KV saturation oncold-heavy-mix), the two heavier mixes aren=1, and GB10 was not re-measured on3d868f8. - Clean concurrency, safety, and artifact compatibility: Single-threaded scheduler logic, zero
unsafe, zero new CLI flags/ABI/graph ops, sounddeferred_prefillstate guard (helios/src/scheduler.rs:901-907), overflow-safeu128interpolation with non-monotonic clamping (cost.rs:769-775), and verified lifecycle mutations (verification/helios-lifecycle/check.py:527-535).
Walkthrough
helios/src/scheduler/cost.rs(:688-776,:1269-1499): AddsActionCosts::interpolated_prefill_duration(same-capacityPrefill/TerminalPrefillsibling lookup, elseu128linear interpolation between measured smaller peer or fastest measured decode/speculative/resume floor and strictly larger peer, clamping non-monotonic timings and isolatingScoredPrefill), plus 3 isolated unit tests.helios/src/scheduler.rs(:662, 757, 808, 843, 847-866, 901-907, 964-1022, 1187-1190): Cachesterminal_prefill_windowacross catalog updates; tightensresolve_prefill_kind_fromsorequest.deferred_prefillexcludes non-terminal-catalogPrefillshapes even when!needs_terminal; addsprefill_must_complete_terminally_from,has_active_age_priced_stream, andprefill_requires_terminal_completion_for_age; drains non-terminalPrefillsteps inprefill_step_requires_feedbackwhile an age-priced stream is active.helios/src/scheduler/policy.rs(:89-96, 371-374, 409-548, 875-895, 1066-1121, 1388-1458, 1537-1575, 1722-1853, 1985-2006): Consolidates prefill candidate generation intoadd_prefill_candidateandprefill_candidate_nswith per-slotPrefillSlotPlan; prices unmeasured pure-prefill candidates<= nat_fitvia interpolation underage_price > 0.0while preservingPlanOrigin::Discoveryviais_unmeasured_candidate; caps age-pricedresize_prefillgrowth atcandidate.capacityand restrictsdeferred_prefillresizes toterminal_prefill_catalog; retainsfirst_output_wait_nsacross capture-free non-terminal chunks on single-graph prompts (preserves_first_output_wait); credits reconciled segment wait(end - prefix_tokens) / initial_prefillinlane_value_for_tokens_withinfor deferredTerminalPrefillsteps landing on interior checkpoint cuts.helios/src/scheduler/service.rs(:297-319): Computesterminal_onlyonce per prefill request usingprefill_must_complete_terminally_fromwhenhas_active_age_priced_stream()is true, aligningservice_ratesfeasible capacities with candidate selection.scripts/scheduling_sim/{learning.py,learning_policy.py,workloads.py}&tests/test_scheduling_*.py: Modelsinitial_discovery = "interpolated"in the simulator (_natural_fit_prefill_capacity,_interpolated_prefill_duration, bootstrap accounting matchingnativewhenage_price == 0or solo), adds the synthetic GB10 prefill-storm workload, and adds isolated Python unit/CLI tests.helios/src/scheduler/policy_tests.rs,verification/helios-lifecycle/check.py,docs/{scheduling-runtime-design.md,scheduling-theory.md},helios/README.md: Adds isolated Rust unit/policy tests covering all new paths, updates thecheck.py:527-535mutation target, and updates runtime, theory, and README documentation.
Pre-merge Checks
- [PASS] Security / malicious screen: Pure single-threaded scheduler arithmetic, simulator code, tests, and docs; no
unsafe, I/O, FFI, parsing, or untrusted-input surface introduced. - [PASS] Charter & value fit: Model-agnostic change in the right Helios scheduler layer with zero new CLI flags,
PolicyConfigfields, or ABI/graph-op changes; addresses a realbalancedstall issue (independently reproduced in #676) with honest served A/B evidence and disclosed trade-offs. - [PASS] Related / duplicate / conflict check: Cleanly rebased on
main1fbcc3c9(post-#663/#667), additive over #645, and cleanly sequenced ahead of stacked draft #681 (only minor rebase overlap with open #655/#660). - [WARN] Tests & verification evidence: All new Rust/Python tests are isolated and exercise real entry points; author reports passing
cargo test --locked --release(7/7 crates),check.py --jobs 16 --mutations,pytest(839/839),ruff, 64-seedlearning.py --preset validate(ACCEPTED), and SM120 A/B on3d868f8, but GitHub Actions CI status on3d868f8could not be inspected directly and GB10 was not re-measured on this head.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Drop the caller-owned
last_interpmemo (helios/src/scheduler/policy.rs:517-543, 1092, 1118, 1429, 1437):last_interp: Option<(usize, u64, Option<u64>)>is declared inside each(kind, capacity)loop, so it only hits when two distinct active prefill slots happen to share the exact same(work, scheduled_consumed)for the same unmeasured capacity. Removing it eliminates the repeated opaque 3-tuple,&mutthreading, and#[allow(clippy::too_many_arguments)]onprefill_candidate_ns(dropping it from 8 to 7 non-selfarguments). - Unify age-priced terminal completion dispatch and hoist
has_active_age_priced_stream()(helios/src/scheduler.rs:1007-1022,helios/src/scheduler/service.rs:297-301,helios/src/scheduler/policy.rs:750-757):service_ratesre-spellsprefill_requires_terminal_completion_for_agewithstart = consumed_tokensand scans all active slots viahas_active_age_priced_stream()once per request insidelane_values's slot array construction (O(slots^2)). Parameterizing the helper over(request, start, cut, active_age_priced)and computinghas_active_age_priced_stream()once inlane_valuesremoves both the duplicated predicate and the repeated slot scans.
Nits
- Sync
docs/scheduling-utility.md:306-320: The "First-output waiting age against active decoders" section still describesfrac = work / initial_prefilland anchor-split wait preservation without mentioning the two newbalancedsingle-graph rules (preserves_first_output_waitacross capture-free non-terminal chunks and reconciled-cutfirst_output_valuecredit), which are currently documented only indocs/scheduling-runtime-design.md:281-289. - Clarify the PR body's
Opt-out: --scheduler-policy throughputshorthand: As already noted in What,throughputstill drains non-terminalPrefillwhen aterminal_cleanupstream is resident (terminal_age_price > 0.0), and thedeferred_prefillnon-terminal-catalog exclusion (scheduler.rs:901-907) is policy-independent.
Dropped on verification
- Correctness Finding 1 (
resolve_prefill_kind_fromwidening athelios/src/scheduler.rs:901-907breaksmodel-contract.md,service_rates, andignition/direct/scheduler.pyparity): Dropped as a false positive that inverted the safety invariant. Verified inscheduler.rs:251-253, 860-862, 2489-2499, 2859-2861,helios/model-contract.md:176-186, andpolicy_tests.rs:4998-5069, 7950-8045:deferred_prefillis set only after a non-terminalPrefillskips trailing continuation layers, and smallerPrefillshapes absent fromterminal_prefill_catalogexecute complete continuation layers without rebuilding skipped state. Restoring&& needs_terminalwould allow full-statePrefill(128)to run over skipped continuation state once smaller age-priced chunks are enabled. Non-deferred prompts (!deferred_prefill) still fall back toPrefill, excluding illegalPrefill(128)fromservice_rateswhile deferred is correct, andignition/direct/scheduler.py:300-312is the greedy single-request debug executor without age-priced shrinking ordeferred_prefilltracking. - Correctness Finding 2 (Interpolation evaluated before
(plan.nat_fit == Some(capacity)).then_some(0)athelios/src/scheduler/policy.rs:531-542breaks discovery / causes starvation): Dropped as a false positive misreading the core design. Verified inpolicy.rs:531-542,docs/scheduling-runtime-design.md:501-507,scripts/scheduling_sim/learning_policy.py:314-329,tests/test_scheduling_learning_policy.py:1603-1637, andutility.rs:50-73: givingcapacity == natzero-duration precedence underage_price > 0would immediately preempt active decoders with monolithic unmeasured4K/8Kstalls, defeating the PR. Unserved prompts growServicePriceexponentially andfirst_output_valuelinearly, so they cannot starve, andage_price == 0or absence of a larger peer still falls through toSome(0). - Correctness Minor (
docs/scheduling-theory.md:74-76, 121-122contradict the PR): Dropped as false. Line 74-76 states prefill has no externally visible per-chunk cadence (still true—chunks shrink to protect decode cadence), and line 121-122 states two long prefills do not need smaller chunks merely to alternate (still true—with no active decoders,age_price == 0). - Subtraction supporting note (Cross-kind
PrefillSlotPlan::nat_fitreuse hazard atpolicy.rs:526-530, 1537-1575): Verified harmless.ScoredPrefillslots are disjoint fromPrefill/TerminalPrefillslots incandidates()(policy.rs:1549-1565), andprefill_catalog_for_terminal(kind, plan.terminal_only)returns the same catalog for bothPrefillandTerminalPrefill. - Subtraction Items 2, 4, and 5 (Collapsing three distinct prefill-catalog loops into one closure helper; deleting
prefill_catalog_for_terminal/is_unmeasured_candidate; trimmingdocs/scheduling-theory.md:562-573andpolicy.rs:462-478doc prose): Dropped as low-signal or over-abstraction. The three catalog loops have distinct termination/aggregation shapes (limitearly-exit vs argmax fold vs existentialwork == remaining),is_unmeasured_candidatewas explicitly requested in Round 2,prefill_catalog_for_terminaldeduplicates a 3-way branch across 3 callers, and the theory/doc-comment text documents subtle user-facing and maintainer invariants in place.
Classify triage
Selected: triage:validation
Threshold: 65%
Triage
- [✓]
triage:validation: 70.0% -
triage:review: 29.2% -
none: 0.5% -
triage:design-review: 0.3% -
triage:partial: 0.0% -
triage:investigate: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: yes (84%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.
Pre Test Report
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:
- A pure-decode or pure-prefill load measures nothing. Every arm needs decode + prefill concurrent. (Note this also means the PR's own "pure workloads unchanged" claim is untestable on cn5 for the prefill family — see §5.)
- The
deferred_prefillexclusion and theresize_prefillterminal-catalog restriction are policy-independent (they apply underthroughputtoo) and require condition 6. If the core you prepare has noterminal_prefillgraphs, those two sub-changes are untested — say so in the report rather than claiming coverage.
Two traps that would silently void a run (both are real gaps in scripts/benchmark_scheduler.py):
- Warmup measures the very shapes under test.
--warmup-secondsruns the same request bodies (scripts/benchmark_scheduler.py:207-209), which executes the small prefill shapes and makes them measured, so the interpolation andPlanOrigin::Discoverynever fire in the measured trial. Use--warmup-seconds 0on cold arms. - Cost state persists. Estimates live in
ActionCostswithestimate_ttl_ns = 30 s(policy.rs:39), and discovery is one-shot and permanent once measured. Restart the server between cold arms. If you do want a decode warmup, do it with decode-only traffic: the interpolation floor is the fastest measured decode step (cost.rs:715-726), so decode warmup is legitimate and prefill warmup is not twice so.
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 |
- cn7 cannot reproduce the GB10 result, and should not be used for it. The PR's GB10 line is 2× DGX Spark, TP2, GLM-5.3-Flash-FP4-Local; cn7 is a single GB10 with 10 CPUs. A 1-GPU run would be a new, unrelated configuration, and the isolated issue #676 (which reproduces the same stall with an independent prototype and offers GB10 validation) is the right vehicle for that hardware. Recommend declining the GB10 arm and saying why.
- Model substitution: the PR measured
DeepSeek-V4.1-Flash, which is not on cn5. Usenvidia/GLM-5.3-Flash-NVFP4(4 GPUs, TP4) — same model family as issue #676's independently reproduced stall, and present on the host. This makes the run a transfer check, not a reproduction: the PR's exact numbers (mixed-c32−32.2 % stalls,long-context-mixed−41.7 %,cold-heavy-mix−8.6 %) will not be matched, and the report should say so up front. Also cross-reference #676 so the two GLM prefill-stall efforts are not counted twice. - All models are listed with "0 GiB", so preparation or download happens inside the job. Do this once, from a CPU-only job on cn5 (48 CPUs, no GPU-lead time), then run the timed arms against the existing core.
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.
- Core has a
TERMINAL_PREFILLcatalog —flare inspect CORE --graphs(docs/cli-design.md:1622, table atflare-cli/src/inspect.rs:1350-1372listskind,batch,tokens,Timeper 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
PREFILLcapacity absent from the terminal catalog,scheduler.rs:847-857) — the arm in §4C depends on it.
prefill_chunk_sizeis not already minimal. Ifprefill_chunk_sizeis 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 the128…4096catalog exists.- Baseline binary is
mainat1fbcc3c9, not the PR base.5d53040e(the declared base) is behindmain; the reported A/B compared against1fbcc3c9. Use1fbcc3c9for the A/B or the deltas are not comparable to the claim. - CI on
3d868f84is green (cargo test --locked --release7 crates,pytest839,check.py (not opened) --mutations) — an engine failure mid-run otherwise costs the whole GPU slot.cargo-kaniwas not run by the author. - 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.
- Load: steady decoders (short prompts, e.g. 512 tokens,
--output-tokens 256) plus a staggered burst of cold long prompts (≈14K / 32K / 64K, the PR's cold-burst geometry). - Harness caveat (must handle):
scripts/benchmark_scheduler.pytakes one--prompt-tokensfor all lanes (:181, :200), so it cannot express mixed short-decode + long-cold-prefill in a single invocation. Two acceptable options, in order of preference:- Two concurrent invocations against the same server with different
--prompt-tokens(512 for decoders, 14000/64000 for prefill burst), started together; each writes its own JSONL. Cheap, uses only in-repo tooling. - Five to ten sequential curl/httpx requests as the cold burst, interleaved with one continuous benchmark run for the decoders.
Do not edit
scripts/benchmark_scheduler.pyfor this run — its--variant/--pair-order/--pair-indexflags are parsed (:187-189) but never used inmain(), so arm-labelling must be done from the JSONL filenames.
- Two concurrent invocations against the same server with different
- Trials:
--trials 3 --seconds 60 --warmup-seconds 0, fresh server process per arm (see §1 traps). Run interleaved order (main, PR, PR,main) to cancel drift. - Repetitions: n≥3 per arm. The PR itself ran
long-context-mixedandcold-heavy-mixat n=1, so this arm is also what makes the claim statistically meaningful. Budget: 4 arms × 3 trials × 60 s ≈ 12 min of GPU plus restarts.
Metrics — and the post-processing you must write, because the harness does not do it:
flare_scheduler_executions_total{reason="discovery"}from/metrics(helios/src/server/metrics.rs:931-939;TimingOrigin::Discoveryis set byis_unmeasured_candidate,policy.rs:545-548). This is the canary. If it does not increase on the PR arm on a cold run with decoders resident, #661 never fired and every latency number is meaningless — stop and report an activation failure instead of a performance verdict.- Decode inter-token gaps from the emitted
rows(groups[].seconds,:160-161). The harness computesburst_gap_median_seconds/burst_gap_p99_secondsbut has no>250 msstall count and no SLO evaluation — compute both fromrowsto compare against the PR's>250 msstall and SLO framing. Report stalls, gap p99, per-user tok/s, output tok/s, TTFT p50, and SLO pass rate separately; do not collapse them. flare_graph_launches_total{kind="prefill"}andflare_prefill_tokens_total(metrics.rs:1227-1247,:1042-1044). ⚠️PREFILL,TERMINAL_PREFILLandSCORED_PREFILLshare the singlekind="prefill"label (metrics.rs:406-418), so you cannot distinguish terminal from non-terminal prefill steps from/metrics. Treat "did it chunk" as inferable only from launch counts +prefill_tokens_total+ TTFT, and state this limitation. Per-graph detail exists only on the stderr TUI dashboard (server/dashboard.rs:102-135starts the trace, which needs a terminal) — not scriptable; note it as an observability gap, not a defect.
Pass/fail reading (write this down before running, so the result is not post-hoc):
- Validates the PR if:
reason="discovery"executions > 0 on the PR arm and ≈ 0 onmain; decode gap p99 / >250 ms stall count improves materially on PR; output tok/s and SLO pass rate do not regress beyond noise. - Refutes it if: the PR arm is not better on gaps, or SLO / output tok/s regress in the same direction as the PR's own reported regressions.
- Inconclusive if: discovery stays at 0 (activation failure — check conditions 1–6 and the
terminal_prefillcatalog), or the delta is smaller than the across-trial spread.
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.
- Run the same mixed load as Arm A with
--scheduler-policy throughputon both binaries. - Expect: no discovery executions (age_price = 0 disables the interpolation gate,
policy.rs:531), non-terminal prefill pipelining preserved except while a finishing stream is in terminal cleanup. - Because the metric cannot split terminal prefills, keep this arm read-only: report
reason="discovery"= 0 and the gap/SLO numbers, and explicitly label it "throughput launch parity with a resident terminal-cleanup stream: not fully observable from/metrics". Do not let this arm gate the merge decision.
Do not spend GPU time on
- Pure decode / pure prefill runs to "prove" no regression. On a single engine build the prefill family's measured behavior is unchanged; a pure-prefill arm at TP4 is a long, expensive run to confirm a near-tautology. If a zero-regression claim is still wanted, do it once, decode-only, and label it a spot check.
- Re-running
learning.py (not opened) --preset validate. That is a CPU simulator gate already reported as ACCEPTED (64 seeds,35/35vsttl,35/35vsnative) and it does not establish GPU behavior (docs/design-review.md:207-208). Re-running it is cheap in GPU terms but adds nothing; re-run only if CI reporting for it is disputed. - The
cargo/pytest/check.py(not opened)/kanisuites on cn5's job slot. CPU work; run it where it does not hold a GPU.
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:
- Reproduce the PR's headline deltas (different model; different GPU count on the GB10 side).
- Validate the GB10 claim — cn7's single GB10 is the wrong topology for the PR's TP2 measurement; route that to #676.
- Distinguish
PREFILLfromTERMINAL_PREFILLlaunches on hardware (sharedkind="prefill"metric label,metrics.rs:406-418). - Establish the quality of the estimate itself (whether the interpolated duration is close to the real one) — that needs the
--graphsestimated-durations compared against post-run behavior, which the current metrics do not expose per graph without the interactive dashboard.
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.
- Reported evidence is author-reported and outside the repo. Workloads live in
FujitsuPolycom/tokbenchv0.4.0; there is no in-repo harness for themixed-c32/cold-heavy-mixshapes, and thelearning.py (not opened) --configsfile is not committed. The hardware run in §4A is therefore also the first in-repo, reproducible datapoint for this change. - The PR's own numbers contain an unexplained regression (SLO down in all three mixes;
4 → 745 s drain cutoffs). Arm A measures it in passing; it should be surfaced in the merge decision, not averaged away. - Two undeclared behavior surfaces that hardware testing cannot adjudicate and that should stay as review items: the
service_ratesrepricing (service.rs:297-301) changesServicePricenormalization for defaultbalancedusers, and thedeferred_prefillkind widening (scheduler.rs:901-907) is policy-independent. Both are documented indocs/scheduling-runtime-design.mdbut were not in the original PR description. - A false-pass unit test remains in the shape described earlier in this PR's history (
prefill_must_complete_terminally_fromnever evaluated astruein the short-prompt case). Not testable on hardware; worth a one-line note to the author so the next revision's test actually exercisesservice.rs's guard. - Observability gap worth filing separately:
PREFILL/TERMINAL_PREFILL/SCORED_PREFILLcollapse intokind="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. - Simulator divergence is documented, not silent (
docs/scheduling-theory.md:558-565(not opened)) andinitial_discovery = "interpolated"is modeled inscripts/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-97still 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.
Discord Test Request
Discord post (ready to paste)
## Recommendation: Test
High confidence that this needs testing — low confidence in the claimed win until it is
## Hardware Required
- cn5 (not cn7): 4x RTX PRO 6000 Blackwell, 4 GPUs at TP4, 48 CPUs
- `nvidia/GLM-5.3-Flash-NVFP4` — the PR's DeepSeek-V4.1-Flash isn't on cn5, so this is a transfer check, not a reproduction
- `--prefill-chunk-size 4096` (gives the 128…4096 capacity catalog) + a cold server per arm — no prefill warmup, restart between arms
## Justification
- Nothing in-repo shows this code path ever runs: we must gate on `flare_scheduler_executions_total{reason="discovery"}` going up. If it stays 0 the change never fired and no latency number means anything.
- The PR's own table shows SLO dropping in all 3 mixes (91.1→89.4, 94.8→89.3, 89.0→81.6%) and 4→7 45s drain cutoffs. We need to know if that reproduces before merge, not average it away.
## Estimated Time to Complete
~15 min of GPU time (4 interleaved arms x 3 trials x 60s + restarts), ~45–60 min wall clock with one-time model prep on CPU. Optional +10 min for the `throughput` arm.
What I verified against the repo (so the post is not just relaying the packet)
- Defaults that make the change a no-op unless the right load is present:
balanced=decode_age_price 0.1,terminal_age_price 1.0,estimate_ttl_ns 30 s(helios/src/scheduler/policy.rs:29-45);throughput()zeroes onlydecode_age_price(policy.rs:50-52). The interpolation gate really isage_price > 0.0 && capacity <= nat_fit(policy.rs:531-541). - Interpolation/floor behaviour is as described: same-capacity
Prefill↔TerminalPrefillsibling, else interpolation between the nearest measured smaller peer and a strictly larger peer, with the fastest measuredDecode/Speculative/Resumestep as floor (helios/src/scheduler/cost.rs:690-730, floor at:715-726).ScoredPrefillis isolated (:702-707). - The catalog is real at chunk 4096:
prefill_capacities(4096)yields exactly128, 256, 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096— 10 capacities, i.e. something for the new exploration to find (helios/src/scheduler.rs:80-92). At chunk 128/256 there are 2–3 entries and nothing to explore, as the packet warns. - The drain barrier is policy-relevant:
prefill_step_requires_feedbackreturns true wheneverhas_active_age_priced_stream()(helios/src/scheduler.rs:1187-1190), so abalanceddrain follows from the changed code, not just the docs. - The canary metric exists:
/metricsemitsflare_scheduler_executions_total{reason="ordinary|discovery|timing_refresh|acceptance_learning"}(helios/src/server/metrics.rs:931-939). So the pass/fail gate in the post is mechanically checkable. - Both harness traps are real:
scripts/benchmark_scheduler.pytakes a single--prompt-tokensfor all lanes (:181,:200), and--warmup-secondsreplays the same request bodies (:208-209), which would measure the very shapes under test;--variant/--pair-order/--pair-indexare parsed (:187-189) and never used inmain(), so arms must be labelled from JSONL filenames. Executable:--warmup-seconds 0, fresh server per cold arm. - Review state: latest Autobot review of
3d868f8is Ready To Merge, Blockers: None (earlier Changes-Requested reviews target superseded heads29f2b5b/c588d61), so nothing blocks spending the GPU slot (PR #661 discussion).
Judgement calls baked into the post
- Test, not "Test on cn7." The PR's GB10 line is 2× DGX Spark TP2; cn7 is a single 10-CPU GB10, so a run there would be a new configuration, not a reproduction. Issue #676 is the right vehicle for GB10 and should be cross-referenced so the two GLM prefill-stall efforts aren't counted twice.
- Confidence is split on purpose (High that testing is warranted / low that the claim holds) because the PR's evidence is author-reported from an out-of-repo client (
FujitsuPolycom/tokbenchv0.4.0) and two of the three mixes are n=1. The post says "transfer check, not a reproduction" so no one expects −32.2 % / −41.7 % to be matched. - I kept the post to the decisive arm only. Arm B (the SLO/drain-cutoff regression) is folded into Arm A rather than given its own slot, and the optional
throughputarm is a one-line add-on — that's where the ~10 min extra comes from. Deliberately excluded from the post: pure-decode/pure-prefill "no regression" runs, re-runninglearning.py (not opened) --preset validate(already ACCEPTED, CPU simulator, no GPU signal), and CI suites on a GPU slot.
Notes worth carrying into the test report (not in the post)
- If the prepared core has no
TERMINAL_PREFILLcatalog (flare inspect CORE --graphs), thedeferred_prefillexclusion andresize_prefillrestriction are untested, and the optionalthroughputarm must be dropped — say so rather than claiming coverage. PREFILL/TERMINAL_PREFILL/SCORED_PREFILLsharekind="prefill"in/metrics, and per-graph traces are dashboard-only — a real observability gap to file separately; it also means "did it chunk" is only inferable.- Preconditions that can void an arm: baseline must be
mainat1fbcc3c9(not the declared base5d53040e); CI green on3d868f84;cargo-kaniwas never run by the author. - Open review items hardware cannot settle: the
service_ratesrepricing (service.rs:297-319(not opened)) changes normalization for defaultbalancedusers, thedeferred_prefillkind widening (scheduler.rs:901-907) is policy-independent, and there is still a false-pass unit test shape in the earlier history.
Caveat on process: I ran out of turns before writing scratchpad entries, so the citations above live only in this report; the goal (a template-exact post backed by verified claims) is met, but nothing was persisted to the scratchpad.