Repository navigation
ci: Cluster GPU Tests shard 2 asks Darkbloom (bound the paged bench's MLX buffer cache) - #1987
Merged
Merged
Conversation
… buffer cache GPU shard 2 peaked at 40.99 GiB used (run 42917194201), 34.26 GiB of it in the one process of paged-verify-bench. That bench holds 0.5 GiB of K/V, but MLX's freed-buffer cache (default limit: MLX's memory limit) kept every prompt chunk's attention temporaries, which grow with the history and so are never reused. The bench now bounds the cache to a ready Qwen tensor-parallel rank's freed-buffer cache (1 GiB) and prints its peak active memory and cache size per run. With that, shard 2 fits 4x24 like shards 1 and 3, so it gets a lane of its own (test-cluster-gpu-2) and the literal Blacksmith runner goes. A full run asks for 15 macOS jobs. The lane routes once the operator adds it to the approval's lanes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
added a commit
that referenced
this pull request
Nov 11, 2026
…1981, #1986, #1987, #1988, #1990); supersedes #1960 (#2000) * ci: port #1951 to master (route the build lanes while job sizes are off) Cherry-pick of dev's merge 2474f3d (-m 1). changelog.d/ci-macos-job-sizes.md was consumed into CHANGELOG.md on master by #1938, so this commit adds changelog.d/ci-build-lanes-routed.md instead, as #1960 did. The tree of this commit equals #1960's head 429d1bf; this PR supersedes #1960. (cherry picked from commit 2474f3d) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1955 to master (GPU shards ask Darkbloom first) Cherry-pick of dev's merge 086dd06 (-m 1). (cherry picked from commit 086dd06) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1986 to master (route desktop-package) Cherry-pick of dev's merge 2588e7f (-m 1). (cherry picked from commit 2588e7f) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1981 to master (no GitHub Actions cache on a Darkbloom runner without the Darkbloom cache) Cherry-pick of dev's merge 723ce1d (-m 1). docs/operations/provider-release.md conflicted only on its "Last updated" line; it takes 2026-11-10. This PR supersedes #1982. (cherry picked from commit 723ce1d) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1990 to master (gate desktop-package's npm cache) Cherry-pick of dev's merge 844b76d (-m 1). (cherry picked from commit 844b76d) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1987 to master (GPU shard 2 memory) Cherry-pick of dev's merge 732904f (-m 1). docs/developer/test.md conflicted only on its "Last updated" line; it takes 2026-11-10. (cherry picked from commit 732904f) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: port #1988 to master (right-size jobs; BoundedBufferCache) Cherry-pick of dev's merge 420a512 (-m 1). (cherry picked from commit 420a512) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com>
This branch was successfully 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.
Summary
Cluster GPU Tests shard 2 ran on Blacksmith without asking the route, because it peaked at 41 GiB used. Its largest process,
paged-verify-bench, did not need that memory. The memory was MLX's freed-buffer cache.CBv2PagedVerifyBench.verifyAndPrefillAttentionattends random K/V of 4 layers at 30,720 tokens. That is 0.5 GiB of K/V. MLX's default cache limit is its memory limit (45.6 GiB on a 48 GiB Mac), and MLX reuses a freed buffer only for a request of about the same size. A prompt chunk's attention temporaries grow with the history, so the cache reuses none of them and keeps them all. The process reached 34.26 GiB.QwenTensorParallelLaunch.freedBufferCacheBytes, 1 GiB) and restores the previous limit after the test. Each run now printspeak_active_gibandcache_gib. The test is unchanged otherwise. It asserted nothing before and asserts nothing now.test-cluster-gpu-2, and the literal Blacksmith runner is removed. A full run asks for 15 macOS jobs. The approval already namestest-cluster-gpu-2, so shard 2 ran on a Darkbloom Sandbox in this PR's first run.Shard 2 memory, by selection
Used = app + wired + compressed, from
scripts/ci-resource-sampler.py. Process = the largestswiftpm-testing-helperlifetime footprint during the selection. Before: run 42917194201 (Blacksmith, 12 vCPU / 48 GiB, 6.15 GiB used before the tests). After: run 42924487818 (Darkbloom, 12 vCPU / 32 GiB, 6.50 GiB used before the tests).qwen-tp-mtp-gpu-wide-kernelqwen-tp-aqv-gpu-fused-kernelsqwen-tp-batch-gpu-paged-transientglm53-depth-invariance-widthsglm53-window-width-censuspaged-verify-benchqwen-tp-aqv-benchqwen-tp-wide-benchprefix-record-encode-benchThe first two rows share one 5-second sample window in the after run, so their used figures are the same sample. The bench's own lines in the after run:
peak_active_gib2.78 (paged) and 2.43 (contiguous),cache_gib1.02 to 1.05. Its prefill (6.4 to 6.7 s) and window (8.1 to 8.3 ms paged, 3.7 ms contiguous) timings are in the same range as before, on a different Mac.Shard 2 peak: 40.99 GiB before, 17.42 GiB after. 1.25 × 17.42 = 21.8 GiB, which fits 4x24. The shard took 427 s against 396 and 439 s in two earlier Blacksmith runs, and is still the shortest of the 3 GPU shards (shard 1: 562 s, shard 3: 504 s), so the GPU job's wall time does not change.
Each selection runs in a process of its own, one at a time (
scripts/cluster-test-plan.py: no group,--no-parallel). So the peak is one process, not tests that overlap. The same 6 selections fail before and after (qwen-tp-mtp-gpu-wide-kernel,qwen-tp-aqv-gpu-fused-kernels,qwen-tp-batch-gpu-paged-transient, both GLM-5.3 selections,qwen-tp-wide-bench). They are the switched tests that these runners cannot pass. The step continues on error, as before.Run 42901986173 gave the same figures (41.36 and 34.26 for the bench). The selections run one at a time (
scripts/cluster-test-plan.py: no group,--no-parallel), so the peak is one process, not tests that overlap.After the bound, the largest selection is
glm53-depth-invariance-widths. That test builds the synthetic GLM-5.3 stage at real widths (5 layers, hidden 4096, 16 experts) to prove width-invariant decode. The widths are what it proves, so it is not shrunk.Shard 3's fallback
The plane answers
lane_not_enabledfortest-cluster-gpu-3in every run that asked: 8 of 8 pull-request runs on 2026-11-10 (42917194201, 42917346660, 42917455362, 42918120853, 42918933020, 42919883851, 42920581124, 42921144106). The approval'slanesliststest-cluster-gpu-1but nottest-cluster-gpu-3. In the same runs,test-cluster-gpu-1was granted 5 times and gotno_capacity3 times. Dispatched runs getevent_not_admittedfor both. This is plane-side: d-inference cannot change it.Operator step
Add
test-cluster-gpu-3to the Layr-Labs/d-inference approval'slanes. Until then shard 3 keepsblacksmith-12vcpu-macos-27.test-cluster-gpu-2is already listed. No new signed size is needed.Validation
darkbloom-16b0e686-…(14.45 GiB used), shard 2 ondarkbloom-d2795cba-…(17.42 GiB used), shard 3 onblacksmith-12vcpu-macos-27-3hg3wty3m64khntf(lane_not_enabled; 13.86 GiB used).darkbloom-183c5779-…(32 GiB Mac), 16.93 GiB used,paged-verify-benchprocess 3.73 GiB; shard 1 ondarkbloom-7f6f99ff-…; shard 3 onblacksmith-12vcpu-macos-27-fv2xf6rvemlezd6v(lane_not_enabled).Hooked up
provider-plan.ymllane table:test-cluster-gpu-2 ... 4x24, between shards 1 and 3, so theDARKBLOOM_MACOS_LANEScap drops the GPU lanes last-first.provider-tests.ymltest-cluster-gpu: every shard readsfromJSON(inputs.routes)[format('test-cluster-gpu-{0}', matrix.shard)].scripts/test-darkbloom-route.py:PLAN_LANES,UNSIZED_PLAN_REQUEST, the cap cases and the 15-job count;LITERAL_SHARDremoved.scripts/test-cluster-test-plan.py: every GPU shard has a route lane.docs/developer/build.md(CI runner routing, Build Once, Job sizes),docs/developer/test.md. Changelog:changelog.d/ci-gpu-shards-darkbloom.md, updated in place.Diagrams
No Mermaid diagrams, on David's instruction for this PR.
Refactor pass
A separate subagent reviewed the diff. It found one stale doc line (the routed-jobs table in
build.mdstill said shard 2 was not routed), one comment that repeated the lane rule inprovider-plan.yml, and two doc lines that left out the GPU shards. All four are fixed in 1c61e3b. It found no behavior change, no weakened assertion, and no remainingLITERAL_SHARDuse.🤖 Generated with Claude Code