Case file: PR #632 — helios/scheduler: scale GPU prefix calibration ceiling per step across depth
Open, ready for review, opened 2026-11-30 08:24 by original-el8 (COLLABORATOR), branch fix/gpu-calibration-depth-ceiling → main, head 64c7198, 4 files, +216/−33. CI on the head commit is failed. No comments, reviews, labels or Autobot review.
Key findings
-
The change is smaller than the description reads and mechanical. +15/−10 in
helios/src/scheduler/rounds.rs: one new helpercalibration_factor_max(depth)returning2.0^(depth+1)with the exponent capped at 30 (rounds.rs:15-18), plus threadingdepth: usizethrough six functions that previously had no depth argument. Everything else is tests (+165) and docs. The[0.0, 1.0]probability clamp and the running-min monotone bound (rounds.rs:412-424) are untouched, so the description's safety claims hold. -
At depth ≥ 4 the ceiling stops binding at all — it is effectively removed, not merely widened. The population prior at depth
dis0.5^(d+1)(rounds.rs:309-311) and the new ceiling is2^(d+1). Their product is exactly 1.0 at every depth, so from the population prior any observed ratio ≥ 1.0 now reaches the top of the[0,1]clamp. Concretely: depth 0 → 2.0 (unchanged), depth 3 → 16.0, depth 4 → 32.0, depth 6 → 128.0. Fordraft_tokens = 5..7cores (the PR's own measured per-depth survival is 7 values long) the calibration estimator is unbounded in practice. The description presents this as "keepsCALIBRATION_FACTOR_MAX = 2.0as the per-step ratio bound"; it does, but the cumulative effect is saturation-equivalent, which is a different estimator behaviour and is not stated. -
Three behaviour changes are not declared. (a)
RequestCalibration::observe's first-observation seedself.realized = (anchor * global.factor(depth)).clamp(0.0, 1.0)(rounds.rs:99) now saturates: withanchorfloored at0.05(rounds.rs:22, 97) and a depth-4 factor up to 32, a brand-new request seedsrealized = 1.0, and the seed weight (REQUEST_CALIBRATION_PRIOR_WEIGHT * decay= 2, then +1 → 3, rounds.rs:100-104) means one weak observation only drags it to ~0.93 — new requests are priced optimistically at depth until enough data ages it. (b) The depth-scaled factors feed bothhost_predandactual_calinobserve_packed_forecasts(rounds.rs:586-624), which are the inputs to theSurplusHistorycross-lane surplus estimator from #515/#522, so packed-shape pricing atB ≥ 2shifts too. (c)calibration_information/ the Hoeffding exploration bonus (rounds.rs:288-290, 415-421) is unchanged while the calibrated mean can now be far larger, so the exploration/exploitation balance moves at deep depths. -
The core premise is not verifiable inside this repository. The PR's justification is that the GPU sidecar at depth
dholds the Rényi-2 collision productprod_{j=0..d} sum_i q_{j,i}^2. No producer ofproposal_confidencein this repo computes that: the docs only say the sidecar is FP32[2, request_slots, draft_capacity]with "Rank zero's confidence drives host decisions" (docs/scheduling-runtime-design.md:81-86) and that allocation "selects the highest immediate-frontier survival probability, multiplying FP32 confidence values in FP64" (helios/model-contract.md:218-225). The strings "Rényi" / "collision survival" appear only in the lines this PR adds (docs/scheduling-runtime-design.md:118, helios/README.md:451). The confidence producer lives in an out-of-tree exporter. A reviewer cannot confirm thec^(d+1)compounding argument from this repo. -
All serving evidence is combined-stack and the headline comparison is not a clean A/B. The PR self-labels: "isolated single-PR TP4 serving A/B was not run separately." The quoted
87.74 → 118.23 tok/spair differs indraft_tokensas well as ceiling (draft_tokens = 5/W=6baseline vsdraft_tokens = 7adaptive), so it does not isolate this change. The identical benchmark block, with the identical scope note, appears in the author's unrelated sibling PR #633 (RoCE thread pinning, same day). The only isolated evidence is CPU scheduler simulation inpolicy_tests.rs— and the onlymain-comparable artifact is absent. -
The PR itself reports a cost. Inside the benchmark block: at
alpha = 0.75,max_verification_token_budget = 256, the looser calibration offers~2.8–2.9drafts/lane on low-acceptance prose with accept rate falling to49.4%–51.8%from a59.7%–62.2%baseline, "increasing packed verification rows." This is honest but sits outside the claimed-benefit summary, and it is the expected downside of the change for low-acceptance workloads. -
Process gaps. CI is red and the description never says so (it lists only local
cargo test"399 passed, 0 failed, 4 ignored" and a cleancargo checkfor flare-cli). Single commit, no revision cycle, no labels, no reviewer — and no Autobot review, unlike #515/#522/#521 which each got one within ~90 minutes. -
This is the author's third attempt in the same subsystem. #521 (their per-request calibration PR) was superseded by voipmonitor's #522 within about two hours and closed by the author; #306 (their acceptance-prior PR) is still open with
CHANGES_REQUESTEDfrom yatesdr and an Autobot "already fixed another way". #632 is the first of the three that is not duplicating someone else's work. The author is a charter-named priority contributor.
The change
Verified diff (pr_diff on rounds.rs, read at head):
helios/src/scheduler/rounds.rs:13keepsconst CALIBRATION_FACTOR_MAX: f64 = 2.0;unchanged; a newcalibration_factor_max(depth)at rounds.rs:15-18 computesCALIBRATION_FACTOR_MAX.powi((depth+1).min(30))with a saturating/try_fromfallback. It is inserted between theCALIBRATION_FACTOR_MAXandREQUEST_CALIBRATION_PRIOR_WEIGHTconstants.- Two clamp sites switch from the constant to the helper:
DepthCalibration::factor(rounds.rs:47-53) andRequestCalibration::factor(rounds.rs:83-91). Both keepif predicted > 1e-6 … else 1.0. RequestCalibration::observegainsdepthand uses it only at the seeding line rounds.rs:99 (anchor * global.factor(depth)); the EWMA body rounds.rs:104-107 is unchanged.- Plumbing only:
Forecast::calibration_factorrounds.rs:283-286,Forecast::observe_calibrationrounds.rs:292-296,Forecasts::calibration_factorrounds.rs:334-336 (the last is#[cfg(test)]). - Every caller is updated; no call site is missed (
search_codefor the six names shows only these).
Not changed, contrary to nothing in the description but worth pinning: speculative_curve's running-min monotone bound and [0,1] clamp (rounds.rs:412-424); the once-per-round population update (rounds.rs:640-650); SurplusHistory internals; CALIBRATION_PRIOR_WEIGHT, POPULATION_CALIBRATION_MAX_WEIGHT, REQUEST_CALIBRATION_* and SURPLUS_FACTOR_MAX = 2.0 (rounds.rs:11-25) — note SURPLUS_FACTOR_MAX is a separate flat 2.0 that this PR deliberately leaves alone.
Tests (helios/src/scheduler/policy_tests.rs):
gpu_confidence_calibration_ceiling_scales_per_step_across_depth(:6433-6447) drivesForecasts::new(6)with 256observe_calibrationcalls and asserts 2.0 at depth 0, 16.0 at depth 3, 15.0 at depth 4 (.abs() < 1e-6,< 0.25,< 0.25). Arithmetic matches the helper; the depth-0 case (0.99/0.10 = 9.9 → 2.0) still discriminates.gpu_confidence_multi_step_calibration_escapes_packed_three_trap_and_respects_low_depth_two_survival(:6541-6596) is the real behavioural test: a hand-built single-laneB=1,W=6engine with per-step confidence 0.55. High realized[0.95, 0.90, 0.85, 0.80, 0.75]→ assertsrequest_calibration_factor(handle, 4) > 8.0(:6564, unreachable under the old flat 2.0, so it genuinely separates old from new), curve within 0.05 of realized at all five depths, and ordinary selection movespacked_token_capacity3 → 6 (:6552, :6580). Low realized[0.95, 0.90, 0.05, 0.0, 0.0]stays at 3 (:6595).- Helpers at :6449-6538 (
single_lane_packed_calibration_engine,observe_single_lane_packed_round) hand-build a packed-shape catalogue with capacities 2..6 andestimated_duration_ns29.5/31.2/35.0/37.0/38.8 ms, then drive realcommit/complete_packed_round_with_survivalcycles. This is ~90 lines of shape plumbing re-implemented locally — the same duplication #522's review already flagged across four tests.
Docs. docs/scheduling-runtime-design.md:113-145 is reflowed (+32/−22) — roughly five genuinely new sentences (the Rényi-2 paragraph and the hoisted "Both calibration levels clamp realized / predicted to [0.0, calibration_factor_max(depth)]" sentence), the rest re-wrapping. helios/README.md:447-453 replaces "clamped to [0, 2]" with "clamped to [0, 2^(depth + 1)]", adding the cap-at-30 and the prod_{j=0..depth} sum_i q_{j,i}^2 formula. Neither doc mentions seed saturation or the surplus-input consequence. docs/mtp-design.md:173-180 ("calibrated per depth against observed verification outcomes") stays accurate and is not touched.
Description vs code: no misstatement found. The description's Compatibility line ("No model core format, Protobuf schema, or execution contract changes") is accurate — no .proto, manifest or execution-contract file is in the diff. What it omits is the depth ≥ 4 saturation effect, the seeding change and the surplus-input reach (Key findings 2-3).
The why
The stated pathology: a flat 2.0 cap on a quantity that is a product over d+1 steps truncates deeper ratios, so calibrated survival at d ≥ 2 is pulled below realized acceptance and packed selection is stuck at narrow widths. The stated baseline: 4x DGX Spark (GB10/SM121), DeepSeek-V4.1-Flash TP4, draft_tokens = 5 (W=6), temperature = 1.0, 50,311 completion tokens → 36,726 offered drafts / 18,345 rounds = 2.002 drafts/round, acceptance [0.917, 0.824, 0.001, 0.0, 0.0], 2.74 mean tokens/step, 87.74 tok/s. That is a coherent and specific symptom report.
No issue is referenced or closed by this PR. The motivating evidence is the author's own benchmarking. Adjacent demand in the tracker, not linked by the PR:
- #503 (open, shadownetX, filed 2026-11-24, updated 2026-11-30, labels area:scheduling / performance / triage:investigate): Qwen3.8 on GB10 v0.3.2 increasingly selects
B8 W1(no drafts) as concurrency rises — 0% → 36.3% → 66% across reps, 99.8 vs 137.4 tok/s. Same symptom family (scheduler collapsing to narrow rounds), six days before #632. But #503 is Qwen/DFlash2 withalpha = 0.5, does not involve GPU-confidence calibration, says "The cause remains unknown" and lists three unrelated hypotheses (balanced-policy utility, unmeasured graph costs from #494, a historical #288 comparison). Any link between #503 and #632 is an inference the issue does not make. - #530 (open, devinkuhn, 2026-11-25, updated 2026-11-30, area:scheduling / bug / performance / triage:investigate): structured-output decodes ~2-3x slower because MTP drops to width one. It references #515/#522 — the PRs that created the code #632 modifies — not #632. Also not the ceiling.
So: a real, recurring, user-visible complaint class exists in this area, but this PR's specific fix is not tied to any of the filed reports.
Related work
Lineage of the exact code #632 edits — this is the most important cross-PR context:
- #515 "Calibrate GPU confidence forecasts and model packed allocation surplus" (voipmonitor, merged 2026-11-25 14:23, +565/−39; commit 1e78f080) introduced
DepthCalibrationandSurplusHistoryin rounds.rs with the flatclamp(realized/predicted, 0.0, 2.0), and its Theorem 2 statesf_d = clamp(r̄_d/p̄_d, 0.0, 2.0)explicitly. Built on original-el8's #495. - #522 "Scope GPU confidence calibration per request and refine packed surplus history" (voipmonitor, merged 2026-11-25 18:31, +583/−76; commit e30d55db) folded in original-el8's #521 and created the hierarchical
RequestCalibration+ once-per-roundDepthCalibration(population weight 64) + dual 256-entrySurplusHistory. Its Autobot review raised thatRequestCalibration::factorprices from an unaged realized/predicted ratio, and that the128.0half-life and20.0f64.ln()Hoeffding constants are duplicated against speculation.rs:72/:78 — both still present in the code #632 touches (rounds.rs:21, 71, 418). - #521 "Scope GPU confidence calibration per request and prevent surplus depth starvation" (original-el8, closed 2026-11-25 18:43, superseded by #522 within ~2h; Autobot halted its review with "Another open pull request already covers this change, or more of it").
- #495 (closed) the original forecast-calibration attempt the whole chain descends from.
Significance: CALIBRATION_FACTOR_MAX = 2.0 is five days old and was written as a flat per-depth bound, directly asserted in #515's Theorem 2. #632 is the first PR to change its semantics rather than the estimator structure around it. There is no competing or overlapping open PR proposing a depth-scaled ceiling, and nothing is superseded or undone by #632 — the only reversal is of the literal flat 2.0.
Other PRs sharing files (none conflicting):
- #555 (merged 2026-11-27, commit c9693765) intermediate batch capacities 6/12/24 — two days before #632; touches packed-shape catalogues, not calibration.
- #620 (merged 2026-11-29, Luke Alonso, c146d7be) remove copy/history drafts — the immediate predecessor commit on rounds.rs; #632 rebases over it cleanly.
- #540 (merged, FujitsuPolycom) bounded timing-refresh and acceptance credit across idle; #510 (merged, Luke Alonso) unmeasured packed shapes zeroing measured round durations; #414 (merged, yatesdr) seed host acceptance estimate from earlier requests — the non-GPU-confidence prior path (
speculation.rs:100-107), which #632 leaves untouched; #542 (closed) the earlier bundled attempt whose capacity work landed as #555; #568, #619, #410, #408, #357 — 2-3 file doc/test overlaps only. - #306 (open, original-el8, since 2026-11-15) "Start acceptance estimates from the acceptance of earlier requests" — touches
Forecasts::populationand speculation.rs population constants, withCHANGES_REQUESTEDfrom yatesdr (2026-11-18) and an Autobot "Review Stopped: already fixed another way" (2026-11-26). Same file, different mechanism; not in conflict with #632, but it is the author's other live claim on rounds.rs and both would change the same priors.
Recent activity
Commits on helios/src/scheduler/rounds.rs immediately before #632 (newest first): c146d7be 2026-11-29 Luke Alonso (#620), c9693765 2026-11-27 Martin Vit (#555), e30d55db 2026-11-25 Martin Vit (#522), 1e78f080 2026-11-25 Martin Vit (#515), fd6c0f3b 2026-11-24 Luke Alonso (#510), bc88d7e4 2026-11-20 yatesdr (#414), plus Luke Alonso's completion-capacity sizing commits. Nothing in the interim commits touches DepthCalibration / RequestCalibration, so #632 sits five days downstream of #522 and two days downstream of #620/#555 with no semantic conflict. Note the squash-merge authors (Martin Vit) differ from PR authorship (voipmonitor/voipmonitor) — do not mis-attribute the calibration subsystem.
Broader area activity (orientation packet, 60 days): helios/src — Luke Alonso (229 commits), Martin Vit (52), yatesdr (47). Recent merged work in the same module is about speculation breadth and host-stop handling (#619 multi-token speculation, #626 grammar-constrained reasoning, #620 legacy core loading), i.e. the same "speculate deeper" direction, which is consistent with #632's intent.
People
Author: original-el8, COLLABORATOR, charter-named priority contributor ("@voipmonitor, @original-el8, @lukealonso carry extra weight—we never close their PRs out of hand"). 180-day record: 24 merged, 27 closed, 7 open, concentrated in docs (14), helios/src (13), helios (5), ignition/preparation (5), ignition/recipes (4). Their signature is large hardware-validation PRs (#410 "DeepSeek V4.1 on One GB300: 1M Context, 78K Prefill, 2K+ C32 Decode", #408 "Parallax: 2x Decode & 79K tok/s Prefill"), so #632 is unusually small in code and unusually large in narrative for them.
This subsystem's owners: voipmonitor authored #495/#515/#522 (the calibration estimator and the 2.0 ceiling); original-el8 co-contributed (#495, #521). Neither voipmonitor nor yatesdr nor Luke Alonso has reviewed #632.
Author's history in this exact area: #521 closed as superseded by #522 within ~2h (author closed it himself); #306 still open, halted as "already fixed another way". #632 is the third attempt and the first that does not duplicate another open PR.
Community
Nothing. pr_comments → "No comments."; no reviews, no inline comments, no reactions, no labels, no Autobot case file. The sibling #633, opened the same day by the same author, is likewise undiscussed. By contrast #515 drew an Autobot "Changes Requested", several comments, and an independent SM103 counter-benchmark from original-el8 that contradicted a claim; #522 drew four comments plus an Autobot review with five should-fix items and ten nits, including the missing-Discord-line blocker. #632 carries the required Discord: el8 line, pre-empting that specific gate, but has not entered the review loop at all.
Project fit
From the charter (read in full):
- Lines up: "Keep the runtime small and model-agnostic… shouldn't accumulate per-model branches" — #632 adds no model branch, flag or special case; it is a depth-indexed numeric bound in shared scheduler code. "PR descriptions: expect four parts: why, what changed, claimed result, evidence" — #632 has all four, extensively, plus the required Discord line.
- Tension: "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." #632's own scope note says the isolated single-PR serving A/B was not run; the served numbers are a combined stack, and even the quoted flat-ceiling baseline (87.74 tok/s) is part of that stack rather thanmain. The isolated evidence is a CPU scheduler test. - Compatibility rule: "Check state and CUDA-graph transitions, and verify that existing data, artifacts, and exported cores still load." #632 changes no core format or ABI, so this is satisfied trivially; but the compliant claim is about the format, and the changed pricing behaviour silently alters selection for every existing GPU-confidence deployment on upgrade.
Claims and evidence
| Claim | Status |
|---|---|
calibration_factor_max(depth) = 2.0^(depth+1), exponent capped at 30 |
Verified rounds.rs:15-18 |
depth threaded through all six named functions |
Verified rounds.rs:47, 83, 93, 283, 292, 334; no missed call site |
[0,1] clamp and non-increasing survival preserved |
Verified rounds.rs:412-424 (bound = bound.min(value.clamp(0.0,1.0))) |
| Test factors 2.0 / 16.0 / 15.0 at depths 0 / 3 / 4 | Verified policy_tests.rs:6444-6446 |
| Behavioural test discriminates old from new | Verified — the > 8.0 assertion at policy_tests.rs:6564 is unreachable under flat 2.0 |
| "No core format / Protobuf / execution contract changes" | Verified — no .proto, manifest or contract file in the diff |
| Rényi-2 product is what the sidecar contains | Not verifiable in-repo — out-of-tree producer; the term appears only in this PR's own doc lines |
"399 passed, 0 failed, 4 ignored" for scheduler:: |
Not reproducible here; contradicted in spirit by red CI on the head commit, which the description does not disclose |
| CPU simulation: capacity 3 → 6 at high survival, stays 3 at low | Test-backed (policy_tests.rs:6541-6596) but is a synthesized engine, not a served workload |
| All tok/s figures (118.23 long-form, 126.61 geomean, Coding Peak 109.0 median, prefill numbers) | Combined-stack only, self-labelled; identical block reused in #633 |
| "87.74 → 118.23 tok/s" as the headline gain | Not a clean A/B — differs in draft_tokens (5/W=6 vs 7 adaptive) as well as ceiling |
Low-acceptance regression (49.4%–51.8% vs 59.7%–62.2%, more verification rows) |
Reported honestly but buried; it is a real cost of the change |
Reach
- Only GPU-confidence cores.
RequestScheduler::gpu_confidence()(rounds.rs:431-433) is true iff some speculative allocation isPrefixAllocation::Gpu. Cores without it takerequest.acceptance.curve(rounds.rs:425-427) and never touchDepthCalibration/RequestCalibration— per #515, "non-GPU-confidence MTP cores such as GLM-5.3-Flash do not execute these paths." DeepSeek-V4.1-Flash and Qwen3.8-Flash-Next (DFlash2) are the affected families. - No knobs. No config key, default, CLI flag, env var, manifest, ABI or Protobuf change. Operators cannot tune or disable this; it changes selection silently on upgrade. The only observable is the chosen
B/W/Pmix inflare_speculative_*counters (docs/scheduling-runtime-design.md:188-189). - Indirect reach beyond the per-request curve: the same depth-scaled factors feed
host_pred/actual_cal(rounds.rs:586-624) and thenceobserve_surplus(rounds.rs:623) — soB ≥ 2packed-shape pricing moves too. #515's invariance-to-level-shifts argument would cancel a uniform factor, but a per-depth-varying ceiling does not cancel exactly. - Docs: the two touched docs are updated consistently; docs/mtp-design.md:173-180 remains accurate.
- No user-facing API, no dependency, no deployment change.
Process
Open, "ready for review", one commit (64c7198), no revision cycle, opened and last updated the same day (2026-11-30). CI failed on the head commit — the relevant workflows for helios/** are .github/workflows/native-serving.yml (not opened) (release build of flare-cli plus cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server on Linux and Windows) and .github/workflows/helios-lifecycle.yml (not opened) (TLA+ lifecycle conformance + kani). No fmt/clippy workflow exists, so a formatting-only cause is unlikely but not excluded. The cause of the failure is not recorded anywhere readable, and the PR does not mention it. No labels (not even area:scheduling), no requested reviewers, no Autobot review.
Open questions / could not determine
- What failed in CI, and whether it is this diff or the known unrelated
FLARE_TEST_TEMPLATE_DIR-unset frontend-template fixture failures that #521/#522/#633 all report. The PR is silent. - Whether depth ≥ 4 saturation-to-1.0 is intended. The arithmetic (prior
0.5^(d+1)× ceiling2^(d+1)= 1.0 exactly) makes the new ceiling precisely the value that un-clamps the population prior at every depth. If the intent were "2× per step but still bounded", a multiplicative ceiling on the prior is not that; the description does not address it. - Whether the seed-saturation optimism (new requests starting at
realized = 1.0at depth ≥ 4) was observed or measured. No test covers request birth at depth ≥ 4. - Whether the
alpha = 0.75low-acceptance regression (extra verification rows, accept rate59.7→49.4%) matters for the default configuration shipped to operators — no default is specified or changed. - No issue link: whether #503 or #530 is considered fixed/related by the author is not stated anywhere.
- No isolated
mainbenchmark exists, so the charter's evidence rule is not met by the material in the PR as written; whether the CPU-only evidence is accepted for this class of change is a maintainer call.