Repository navigation
fix(cluster): share probe budget bounds the timed rounds, not setup - #1810
Merged
Merged
Conversation
The share probe measured its 1.5 s budget from before admission, so the prefill, the warm-up rounds and first-use kernel compile in the worker process counted against the timed rounds. A cold first probe then gave fewer than three timed rounds and skipped=budget, in CI and on a real load alike, and a skipped probe leaves no share evidence for the fastest-only tensor-parallel families. Each phase's timed rounds now run for the budget from their first timed round. A separate 8 s limit, inside the 10 s deadline margin, bounds the whole probe including prefill and warm-up (skipped=limit). The Qwen and Gemma 4 probes share the round loop (QwenTensorParallelShareProbe.rounds), tested on the CPU with a constructed clock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Review pass on the share probe budget fix. The round loop returns its timed rounds and whether the limit stopped them, so the skip reason (budget or limit) is the loop's own and not a clock read afterwards. The check before the one-chunk prefill could not fire in production and is removed with LimitReached. The GPU budget case steps the clock by just over half the budget, so it stops on the budget again and not on the limit. The docs say what the limit does: no round starts after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 5, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
QwenTensorParallelShareProbeTests.eachRankTimesItsShareAloneAndReleasesItsRequest()fails intermittently in CI withdarkbloom-share-probe-v1 rank=0 skipped=budget(run 41973436945, Cluster Runtime Tests shard 2, PR #1787; also in the runs of PR #1745).Cause
QwenTensorParallelShareProbe.measurereadsstartedbefore admission. The 1.5 s budget (budgetNanoseconds) is measured fromstarted, so it also counts these steps:The probe is the first forward of the loaded model in its worker process, so the kernels compile on first use inside the same 1.5 s. If the setup is slow, fewer than 3 timed rounds run and the probe skips with
skipped=budget. The window (verify) phase gets only the part of the 1.5 s that the plain phase leaves.Gemma4TensorParallelShareProbehas the same loop.Production effect
Production has the same problem. The test is not the only path that can skip:
QwenTensorParallelResidentRuntime.loadthroughatLoad, and the Gemma 4 load). The probe uses the same constants as the test.ClusterShareProbeHistoryrecords nothing..fastestfamilies. They choose tensor parallel only on measured share steps (predictedFasterOnPriorOnlyotherwise), so a skipped probe can keep tensor parallel from being chosen.This comes from reading the code. It was not measured on a Mac.
Change
QwenTensorParallelShareProbe.roundsis a new round loop that both probes share. It runs the warm-up rounds and then the timed rounds. Each phase's timed rounds stopbudgetNanoseconds(1.5 s) after the first timed round of that phase, so the setup and warm-up time does not count against the budget.limitNanoseconds(8 s) is a new hard limit on the whole probe, measured fromstarted. It includes admission, prefill, warm-up and timed rounds. The limit is less than the 10 s deadline margin (deadlineMarginNanoseconds), so a probe that starts ends before the load deadline that it read at its start. The deadline margin did not change, because the lease TTL is 30 s.roundsreturns its timed rounds and whether the limit stopped them, so the skip reason (skipped=budgetorskipped=limit) comes from the loop itself. A probe that reaches the limit after 3 plain timed rounds keeps its plain figure and gives no window figure.Tests
timedRoundsKeepTheirBudgetAfterASlowWarmUp, which runs in every CI run. It uses a constructed clock through the existingclockseam. Cases:QWEN_TP_SHARE_PROBE_GPU=1):CI note
On dev, the routing from #1803 sends macOS lanes to Darkbloom sandbox runners (
darkbloom-*). Their image has Xcode 27.2, and dev accepts only SDK 27.0 until the 27.2 port. A job that lands on a sandbox runner fails before any test runs, at "Provider release requires preinstalled SDK 27 / Swift 6.4". This also happens on dev push run 41973762728. Every job that ran on Blacksmith passed. #1787 limits macOS lanes to Blacksmith. If a re-run lands on sandbox runners again, this branch takes dev after #1787 merges and runs CI again.Review
An independent refactor pass found nothing blocking. Its suggestions are in the second commit: the loop reports its own stop cause, the check before the one-chunk prefill (which could not fire in production) is removed, the GPU budget case is fixed, and the limit is described exactly.
Hooked up
QwenTensorParallelShareProbe.measure: called byatLoadfromQwenTensorParallelResidentRuntime.load.Gemma4TensorParallelShareProbe.measure: called fromGemma4TensorParallelResidentRuntimeload.docs/architecture/inference.md(Tensor-parallel share probes) anddocs/developer/test.md.🤖 Generated with Claude Code