Explore report · NVIDIA/hyperflare-inference #644

Raw Markdown for agents: https://autobot.eidonix.com/p/a1c6ea25-d5b4-4b0c-8e5d-df8e6bd68e44.md

Case file — PR #644 "fix(helios): per-step speculative calibration and excluded-only waiting/delivery fairness"

Repo: NVIDIA/hyperflare-inference · base main (4ed5d875, #637) · head 2b15114 · open, ready for review, opened and last updated 2026-11-30 17:35 · author lukealonso (COLLABORATOR) · Discord lukealonso. Method: read the diff and the head code (pr/644), the PR body, and the related PRs/issues in the local copy; verified arithmetic and the cited lines myself. Where something is only claimed by the author it is marked as a claim.

Key findings

  1. An open, competing fix for the same defect exists: #632 (original-el8, opened the same day, 08:24). It fixes the same under-selection of deep speculative depths in the same file (helios/src/scheduler/rounds.rs) by scaling the per-step calibration ceiling across depth (CALIBRATION_FACTOR_MAX = 2.0, CALIBRATION_STEP_FACTOR_MAX = 1.75, 2.0 * 1.75^depth); #644 instead redefines the calibrated quantity (per-step conditional rather than cumulative prefix ratio) and raises the flat clamp to 4.0 (helios/src/scheduler/rounds.rs:13,51,89). Both edit rounds.rs, policy_tests.rs and docs/scheduling-runtime-design.md; #632 additionally updates helios/README.md for the exact sentence #644 leaves stale (see finding 5). #632's own review thread states its branch had "no conflicting open PR touching helios/src/scheduler/rounds.rs", which #644 falsifies. #632 has two Autobot "Changes Requested" verdicts for missing derivation and default-α regressions (−1.9% to −5.2% on 5 of 6 cells), so the same evidence bar is live for both.
  2. #645, by the same author, was opened one minute after #644 (17:36) and overlaps 7 files (policy.rs, policy_tests.rs, service.rs, utility.rs, scripts/scheduling_sim/utility.py, tests/test_scheduling_utility.py, docs/scheduling-runtime-design.md). #645 adds LaneValue::prefill_finish while #644 adds LaneValue::decode_within and changes LaneValue::finish (same type), and #645's new coalescing term still prices delivery_fairness / (z_ss * E) — i.e. the old delivery-rate variable that #644 redefines as a served share s_i. Whichever lands second must be re-derived. #645 does not touch rounds.rs, so the calibration half is orthogonal.
  3. Open issue #152 (javieratomic, 2026-10-30, still open, triage:design-review) is the month-old field report of exactly this defect and is not referenced by the PR. On DeepSeek-V4.1-Flash TP3/3× DGX Spark, --max-concurrency 4 --mtp-draft-tokens 5, default balanced ran 416 width-1 rounds vs 165 width-6 while throughput ran 1 vs 685, costing 8–14% aggregate throughput. The issue names the two causes as delivery_fairness (4.0) and decode_age_price (0.1) — the two terms #644 changes. #152's maintainer triage (original-el8, 2026-11-05) asked for inter-token/cadence evidence, which #644 does not supply (aggregate tok/s only).
  4. Reach is wider than the description states. Only the calibration half is GPU-confidence-gated (rounds.rs:472-474). The excluded-only age, served-share delivery and LaneValue::finish changes run for every core shape and both policies; PolicyConfig::throughput() only zeroes delivery_fairness and decode_age_price (policy.rs:49) and leaves terminal_age_price = 1.0 (policy.rs:36), so LaneValue::finish now charging the full horizon and ignoring completion_ms (utility.rs:121-130) reprices terminal retirement under --scheduler-policy throughput too. No new flags, no version gate, and delivery_fairness/decode_age_price keep their names and default values while measuring different quantities (policy.rs:28-43).
  5. Documentation is left contradictory. helios/README.md:446-450 still says the per-depth ratio is "clamped to [0, 2]" (now 4.0) and still describes a cumulative per-depth ratio; docs/scheduling-runtime-design.md:203-210 (gradient g/z), :233-246 (sigma_i = K*T/min(batch_capacity,k) and the old score formula), :378-383 (terminal H−t savings), :527-538 (one-delivery accounting), :645 (delivery_fairness "value/ms") all still describe the superseded model, so the two design docs now disagree (the new versions live in docs/scheduling-utility.md:28-41,60-68,212-231,252-257,276-298).
  6. Benchmark claims lack a same-core main baseline. The headline 76.11 tok/s balanced is compared to throughput (76.43) on the new core gb10-tp4-202611301553; the only before/after pair is on a different core (gb10-tp4-202611301141: 72.46→74.15 mean, greedy_code 70.30→75.98); the DFly2 "+24.2%" compares the adaptive choice against a forced P=6, not against main.
  7. Zero engagement: no comments, no reviews, no inline comments, no reactions, no labels, no Autobot intake or review (contrast #632, which has 4 discussion entries including two Autobot reviews, and #515 with 12). voipmonitor/Martin Vit (#515/#522 author of the estimator #644 replaces, and last substantive author of rounds.rs) and original-el8 (#632, #495, #521) have not engaged.

The change

Size: 10 files, +649/−230 (per pr_files): docs/scheduling-runtime-design.md +36/−22, docs/scheduling-utility.md +93/−63, helios/src/scheduler/policy.rs +44/−11, policy_tests.rs +197/−15, rounds.rs +108/−43, service.rs +47/−24, utility.rs +51/−17, scripts/scheduling_sim/utility.py +32/−22, tests/test_scheduling_learning_policy.py +3/−3, tests/test_scheduling_utility.py +38/−10. No Protobuf, core-format or CUDA-graph files appear in the diff, consistent with the "no ABI change" claim.

Three coupled changes in plain terms:

Verified, not just claimed: the "no T-dependent bias when nothing is excluded" property holds in the arithmetic. In decode_within the served lane's +c_i·service_ms·(A + (horizon+preceding)/2) term supplies exactly the +c_i·T/2 that ValueRate::new's common subtraction −decode_age_price·T/2 (utility.rs:142-152, summed over all lanes in policy.rs:493) removes, leaving net −T²/2·c_j only for excluded lanes. With sigma_i = 0, s_i = 1, preceding = 0 the score reduces to v_i/T + g_i + c_i·A_i, i.e. pure tok/s maximisation. Same for finish on terminal rows. I found no arithmetic contradiction with the description.

What the description says that the code does not do: nothing material found — the formula sigma_i = (K−b)T_f/b, the served-share accounting, the inheritance rule and the cumulative-product pricing all match the head code. The finish change is under-described rather than overstated: the description says only "updated", while completion_ms is now used solely in a debug_assert and the full horizon is charged (utility.rs:121-130).

The why

Recent activity

People

Community

Project fit (charter, as facts)

Claims and evidence

Claim Evidence offered Assessment
No T-dependent bias when every decoder is served algebra; new Rust tests balanced_unexcluded_decoders_maximize_throughput_without_delivery_or_age_penalty (policy_tests.rs:6517) and oversubscribed_decoders_incur_excluded_wait_and_protect_skipped_lanes (:6568); Python test_unexcluded_decoders_pick_peak_throughput_speculation_depth (tests/test_scheduling_utility.py:193-207); rewritten exact-Bellman identity utility.rs:338-383 Holds; I re-derived it at head. Tests are synthetic catalogs with hand-set costs, not GPU timings.
Default balanced ≈ throughput (76.11 vs 76.43 tok/s, 0.4%) gb10-tp4-202611301553, 5 prompts, max_tokens = 256 No same-core main baseline; comparison is balanced-vs-throughput on the new core only.
greedy_code 70.30 → 75.98 tok/s (off/r 2.04 → 3.17), mean 72.46 → 74.15 gb10-tp4-202611301141, a different core Only genuine before/after in the PR; +2.3% on the mean.
Per-step calibration eliminates W=1/P=3 collapse (ctx16k_T1 70.94 vs 57.12, +24.2%; ctx4k_T1 62.57 vs 54.59, +14.6%) DFly2 gb10-tp4-202611301002, throughput policy Comparator is a forced P=6, not main; read literally it shows the adaptive choice beats forcing wide, not that it beats pre-change main.
Test suites green eos 2; selene 548 (--features test-support); selene-manager; helios scheduler:: 400 (--features runtime-core,server); flare/flare-cli 201; pytest tests/test_scheduling*.py 786; TLA+ 8 models 0 TLC errors with per-model transition counts Internally consistent. Cross-check: #632 (same day, same base) reported 399 passed / 4 ignored for scheduler::, so +1 net test despite 3 new named tests — consistent with the #[cfg(test)]-gating of observe_calibration, not independently verifiable here.
All 8 TLA+ models pass verification/helios-lifecycle/check.py (not opened) --tlc-jar … --target-dir flare-cli/target Claimed; counts given per model.
cargo-kani not run not installed; CI job covers it; Kani-covered validators unmodified Plausible — no Kani-relevant file in the diff.
B=4 uncontended and K>4 oversubscribed not benchmarked stated as a limitation Honest, and it is exactly the two regimes the new unit tests assert — the core claim of the PR is hardware-unmeasured.
No Protobuf/core-format/CUDA-graph ABI change; cores load unchanged file list Verified: 10 touched files are scheduler/docs/tests only.

Reach

Process

Open questions / what could not be found

  1. No same-core main baseline for the headline 76.11 tok/s figure; and no inter-token/cadence measurements, which #152's triage explicitly requested.
  2. No derivation for CALIBRATION_FACTOR_MAX = 4.0, the clamp(sum_w/count, 0, 1) round weight, or the new flat 0.5 prior — the same gap #632 was twice asked to close.
  3. Merge ordering between #644, #632 (same clamp) and #645 (same LaneValue/service_rates/action_lane_value sites, and #645 still prices the old z_ss) is undecided and unresolvable from the PR; no comment from voipmonitor or original-el8 exists.
  4. Whether #644 is intended to supersede #632 or to be an alternative (no cross-reference either way) — not determinable from the PR.
  5. Multi-host / other parallel layouts / GB300-class hardware: asserted, not measured.
  6. No information found on whether a Kani-relevant validator was touched (the file list says no); and the exact scheduler:: test-count discrepancy vs #632 could not be reconciled without running the suites.

https://github.com/NVIDIA/hyperflare-inference/pull/644