Explore report · NVIDIA/hyperflare-inference #571

Raw Markdown for agents: https://autobot.eidonix.com/p/06878b39-0de1-4c0a-94fe-83650784da71.md

Case file — PR #571 "helios: force a wide round after persistent width-one selection"

Author malventano (CONTRIBUTOR) · base main · head aab9295 · opened and last updated 2026-11-28 · 3 files, +78/−3 · no labels, no reviewers, no CI checks, no comments · Discord malventano. Link: https://github.com/NVIDIA/hyperflare-inference/pull/571

Key findings

  1. The description says it logs Forced wide:; the diff does not log anything. Searching pr/571 for Forced matches only docs/logprobs-design.md:19 (not opened) and docs/model-storage.md:42 (not opened), both unrelated. The quoted log lines in the description come from the instrumented prototype image flare-toolstream:v0.3.2-49-gd17efddc-argdiag-20261128, not from this change. There is therefore no operator-visible signal in the code as proposed. (refresh.rs/policy.rs diff at pr/571; pr_diff.)
  2. An undeclared edit to a shared test helper. completion_records changes offered_drafts from (plan.token_capacity - 1) (policy_tests.rs:206 on main) to (lane.tokens - 1) (policy_tests.rs:239 at pr/571). Completion validation rejects offered >= lane.tokens ("speculative round completion exceeds its frozen lane ceiling", helios/src/scheduler.rs:2539), so the helper only had to change because wide plans whose lanes are frozen at a smaller ceiling now occur inside existing test traces — i.e. evidence the fallback fires beyond the new test. The description never mentions it. (Inference from code; I did not run the suite.)
  3. The author's own live evidence is a cost, not a win. Forced rounds ran 64.9–66.6 ms against about 5.3 ms for normal width-eight plans, and there were 30 forced selections in three seconds — the streak being re-earned immediately, the pathological steady state the description itself warns about under Limits.
  4. The counter is per-scheduler, not per-request, and natural "tail" width-one rounds feed it. width1_streak lives on RefreshState (scheduler.rs:769), and speculative_tokens clamps width to 1 near the end of a request (helios/src/scheduler.rs:2295–2305). Two unrelated requests finishing can therefore arm a forced wide round for whatever cohort ordinary selection was about to serve. Not mentioned in the description.
  5. Nothing in docs, the scheduling simulator, or the formal model was updated, although the repository's own rules ask for it when scheduling policy changes (AGENTS.md:52–60, AGENTS.md:231). docs/scheduling-runtime-design.md:241–282 and :434–490 still describe the pre-change rule and the two funded escape paths; scripts/scheduling_sim has no forced-wide policy.
  6. The author states a merge precondition the PR does not meet: "Do not merge before #540 is resolved." #540 is still open (reviewed 2026-11-28 07:34 with "Merge After Should-Fix", 0 blockers, 4 should-fix) and touches the same struct. The branch point is d17efddc, and main has since merged #569 and #568 into the same files, so the rebase is already due.
  7. Charter tension, stated by the author themself. The charter asks for benchmarked speedups or root-cause fixes ("Bring real evidence… Bug fixes need to address the root cause", charter line per read_charter); this change self-describes as "not a recovery fix", "a bounded fail-safe", with "No A/B against a build without the fallback exists".
  8. The problem is real and measured elsewhere: #306 (measured 17/483/197/70 width-one rounds before the first ordinary drafting round; 37–59 tok/s vs 54–62 tok/s), #414 (52% of single-user rounds at width 2 on GLM-5.3-Flash → 0%), #522 (31.61% → 4.06% plain-W=1 share across a 15-cell matrix), #530 (structured output on DeepSeek-V4.1-Flash-1017: 176 → 55 tok/s because "MTP drops to width one"). This PR cites none of them.

The change

What it does, in plain terms. Two edits to the scheduler:

Precedence verified (policy.rs:1207–1311): discovery early-return (ordinary.rate.duration_ns == 0 → PlanOrigin::Discovery, :1237–1239), then funded refresh (:1240–1275), then acceptance probe (:1276–1280), then the forced block (:1281–1309), then ordinary (:1310). So "funded refresh and acceptance probes win first" is true; the description does not mention that a discovery winner also returns before the fallback can run.

Selection ordering is not the documented rule. The ordinary rule (policy.rs:1217–1235, documented at docs/scheduling-runtime-design.md:241–261 as value-rate maximization with domination pruning, including "Timing estimates cannot make redundant padding preferable") reaches compare only as the fourth tiebreak in the forced path, so among equal-draft shapes the forced path prefers the larger (more padded) packed_token_capacity before any price is consulted. It also scans the entire candidate vector, including the dominated tail that prune_padding keeps only for refresh probes (policy.rs:169–202).

Not hardcoded to width 8 — verified. The filter is draft_tokens > 0 with no width constant; speculative candidates come from speculative_catalog (policy.rs:1092–1099) plus packed-round shapes (rounds.rs:717–880). In the new test the widest shape is drafts 7 / capacity 8 because tests::duration_graphs builds drafts 0..=7.

Lane recomputation — verified. candidate.host_lengths = None (policy.rs:1298) makes materialize (policy.rs:1405–1445) call round_lengths_optimistic, bounded by round_ceilings = speculative_tokens(request, width.min(drafts+1)) (rounds.rs:435–441), so recomputation cannot exceed what speculative_tokens permits.

Counter semantics — verified. Only ordinary Speculative plans with draft_tokens == 0 increment; every other ordinary commit (Decode, Mixed, Prefill, Init, Restore, Snapshot, Resume, Vision, or Speculative with drafts) resets. Probe/refresh commits neither increment nor reset. Neither idle() (refresh.rs:102–105) nor abort() (:107–110) touch it. It is never decayed.

Second-order effects a reader will not get from the description:

Description vs code — what the description claims that the change does not do: (a) the Forced wide: log line (absent); (b) implicitly, that operators can observe the fallback — nothing in the diff does that. What the change does that the description does not say: the shared test-helper change; preferring larger packed capacity before price; running only when the ordinary winner is measured; being inert for PlanOrigin::Mixed or Decode ordinary winners.

The why

The problem it addresses. "A width-one episode can still persist… the current policy has no upper bound on how long ordinary width-one selection lasts." Where that state comes from, from the docs and neighbouring work:

How long and how widely wanted. No earlier item proposes this mechanism. The width-one problem has been worked avoidance-style for weeks: #188 (2026-11-03), #414/#306 (acceptance priors, 2026-11-15/20), #515/#521/#522 (GPU confidence calibration, 2026-11-25), #510 (packed duration zeroing, 2026-11-24), #540 (refresh credit, 2026-11-26). The PR positions itself explicitly as a safety net for what #540 does not cover.

Recent activity

Base main at d17efddc (Martin Vit, #561 io_uring Engram disk lanes). Since then main merged 7cd83f32 (#569, Luke Alonso, retiring boundary captures) and 5deacda9 (#568, Endpoint checkpoint eviction), both touching scheduler files, so the PR head is behind main and the PR's own comparison base is already stale.

Last three weeks in the same files, all relevant to how the fallback will behave:

People

Community

pr_comments for #571 returns "No comments": zero comments, zero reviews, zero inline comments, no reactions, no labels, no CI checks on aab9295. The item is hours old, so this is a fact about age as much as merit. Notably no flare-autobot intake comment or review ran, whereas every recent sibling (#306, #522, #540) got one.

Where engagement came from on siblings, for calibration: #540 has 10 discussion entries including three autobot reviews and a live-GPU verification from voipmonitor across a 9-PR and 12-PR stack; #522 had an A/B table across four hardware cells and still got Changes Requested; #306 has three comments and a CHANGES_REQUESTED review. The bar in this area is live A/B plus disclosed regressions.

Project fit

Claims and evidence

Claim Status
Two committed ordinary width-one plans force the widest available speculative candidate Verified in code (refresh.rs:53–74, policy.rs:1281–1296), with two caveats: a discovery winner returns first (policy.rs:1237–1239), and among equal-draft shapes the larger packed capacity wins before price
Covers width 2 or 4 as well as width 8 Verified — filter is draft_tokens > 0, no width constant
Recompute lane lengths instead of reusing packed lengths Verified — host_lengths = None (policy.rs:1298) → materialize → round_lengths_optimistic
Log the selection as Forced wide: … Not in the diff. grep Forced at pr/571 finds only unrelated docs lines; the quoted log comes from the instrumented prototype build
Funded refresh or acceptance probe still wins first Verified (policy.rs:1240–1280 precede :1281)
Does not change core format, prepared graphs, or speculative decoding semantics Verified for files (no execution/, model/, ignition/ change), but the test-helper change shows wide plans can have lanes narrower than the graph width — a semantics-adjacent consequence left undiscussed
Live log: 4-line excerpt ending at an ordinary width-eight plan The prototype image is a downstream build name, not a repo commit ("argdiag" suggests an instrumented build). The description itself concedes it "does not show that the fallback caused the later ordinary width-eight selection" and gives no control run
30 forced selections in 3 s, forced plans 64.9–66.6 ms vs ~5.3 ms Author-reported from that image. As evidence of the mechanism it is strong; as evidence of benefit it is the opposite — ~12x slower rounds repeated ~10×/s
two_ordinary_width_one_plans_force_a_wide_round, 1 passed Self-reported; not reproducible here. The test sets Speculative/1/1 = 1 ms and Speculative/1/8 = 100 ms, so ordinary selection prefers width one by 100x and the forced round wins on geometry alone — a fair test of the mechanism
Suite comparison: clean d17efddc 1645 passed / 8 failed / 43 ignored vs forced-wide 1646/8/43 Plausible; the eight baseline failures are consistent with #540's independently reported set (five template-fixture, one root-only cache-clear, model::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape, one template-dependent protocol test). Note the pre-existing failure is itself an adjacent width-one/packed-shape test, and the full-suite command is not given
"No A/B against a build without the fallback exists" Stated; it is the central gap

Reach

Process

Open questions / what could not be found