Repository navigation
Run the real-geometry rows check in two halves on separate GPU shards - #1872
Merged
Merged
Conversation
Cluster GPU Tests shard 1 ran one test, rowsEqualTheirSoloStepsAndWindowPositionsAtRealWidths, for 18 to 19 min, after the gate, so it set every run's wall time. QwenTensorParallelRowsCheck.run takes the halves to run (parts, default both, in the same order as before). The rows half keeps P1 on one- and eight-lane hosts, PB8 with joins and leaves, PB2, PB4, the observed cohort and the verify windows; the segments half keeps the long rows across KV segments. Each half compares only against its own solo runs and keeps its refusals. The test suite runs each half as a test; the plan runs them alone on Cluster GPU Tests shards 1 and 3 (new); shard 2 is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Keeps dev's 5 Cluster Runtime Tests shards, their shared lanes and the Check the CI plans job (#1868), and this branch's Cluster GPU Tests shard 3 (the segments half of the real-geometry rows check) with the rows half alone on shard 1. A cluster change now runs 12 Macs; the routed asks stay 12 with sizes on and 9 with them off, since the GPU shards are not routed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QwenTensorParallelRowsCheck.run says why the rows half's verify windows come after the segments half: each half's steps keep their place, so the default runs the whole check's steps in the same order. Each real-geometry test now checks that its half compared every digest of the half on both ranks (200 rows, 136 segments, 336 a rank in total), so a dropped case fails instead of passing on compared > 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
Cluster GPU Tests shard 1 (non-blocking) runs one test,
rowsEqualTheirSoloStepsAndWindowPositionsAtRealWidths(QWEN_TP_REAL_GEOMETRY_GPU). The test took 1,098 s in run 42268059756, and the job took 18.4 to 20.8 min (median 19.1) in the 14 full CI (dev) runs of 2026-11-06. The job ends at 21 to 24 min of every run, after theProvider Testsgate, so it sets the run's wall time. The source is the measurement of PR 1868.All of the time is in
QwenTensorParallelRowsCheck.run. The check has two halves that share no reference:soloOne)longSolo)The resource sampler shows the process at about 1.6 busy vCPUs for the whole test. The prefill and the cross-rank sums both scale with the prompt tokens, so each half takes about half of the time.
What changes
QwenTensorParallelRowsCheck.runtakesparts(Part.rows,Part.segments; the default is both). With both parts the check runs the same steps in the same order as before: the rows plain steps, then the segments, then the windows.darkbloom-cluster-tp-check qwen-rows runcalls it with the default, so the tool runs the whole check as before.rowsEqualTheirSoloStepsAndWindowPositionsAtRealWidthsruns the rows half. The newrowsAcrossKVSegmentsEqualTheirSoloStepsAtRealWidthsruns the segments half. Each assembles the two ranks, checks the decode census (aqv=24 partial=8 mlx=0) and asserts that both reports pass, as the one test did.scripts/cluster-test-plan.py,provider-tests.yml). Shard 1 runs the rows half alone. The new shard 3 runs the segments half alone (qwen-tp-real-geometry-gpu-segments). Shard 2 does not change. All three shards run onblacksmith-12vcpu-macos-27and are not routed, so the route request and theDARKBLOOM_MACOS_LANEScap do not change.test-cluster-test-plan.pychecks that each half is its own non-blocking selection, alone on a shard, on two different shards. The existing matrix check makes the workflow run every planned GPU shard. The audit needs no change: it already requires each gated test in exactly one selection, so it covers the new test.docs/developer/test.md,docs/developer/build.md,docs/architecture/inference.md, andchangelog.d/ci-split-qwen-tp-rows-gpu.md.Every row, width, step and window position checked before is still checked, with the same assertions. Nothing is sampled.
Before and after
Before: the 14 full CI (dev) runs of 2026-11-06 (42201769655 … 42281198827), medians. After: this PR's runs (below).
The digests compared are the same: 200 (rows) + 136 (segments) = 336 a rank, as the one test reported. No digest differs, and both halves passed their refusals (
reserved=71106560, more than one KV segment).The run's wall time is now set by the blocking path, not by a GPU job. In this run Provider Unit Tests shard 1 ended at 20.1 min and the
Provider Testsgate at 21.5 min (1.3 min of plan checks). PR 1868 moves those plan checks out of the gate and splits Cluster Runtime Tests shard 2 (19.0 min here). With both PRs, the run ends when the gate does (about 18.7 min in PR 1868's runs).Flow
Before:
run: rows plain steps → segments → windows (18 to 19 min).After:
run(parts: [.rows]): rows plain steps → windows.run(parts: [.segments]): segments.Validation
No builds or tests ran on the laptop. Run 42307447087 (head 887e3c3): every job succeeded. CI ran the plan self-tests and the audit, and both halves of the check passed on the GPU shards.
Run 42318853015 (head 1435b6c, after the merge of
devand the refactor pass): every job succeeded. The run took 23.5 min, and theProvider Testsgate finished 23.4 min into the run. The slowest GPU job was Cluster GPU Tests shard 3 at 10.1 min (shard 1 9.5, shard 2 8.2). The slowest blocking job was Provider Unit Tests shard 1 at 19.0 min (00:36:49 to 00:55:50); it started 4.3 min into the run and set the wall time. The slowest Cluster Runtime Tests shard took 13.4 min (shard 1). Both halves passed: rowscompared=200 differing=0(528 s), segmentscompared=136 reserved=71106560 differing=0(562 s), on both ranks.Non-green checks, none caused by this change:
qwen-tp-mtp-gpu-wide-kernel,qwen-tp-aqv-gpu-fused-kernels,qwen-tp-batch-gpu-paged-transient,glm53-depth-invariance-widths,glm53-window-width-censusandqwen-tp-wide-benchfail on the Blacksmith GPU, as they do ondev(the reason this lane is non-blocking). This PR does not change shard 2.d-inferenceandd-inference-console-ui-dev: the deployments also fail on PRs 1862, 1868 and 1869.Limitations:
provider-tests.yml, so its runs also select the MiMo audio gate (as PR 1868's did). That can make Provider Unit Tests shard 2 slower in this PR's runs than in an ordinary run.dev(b796cc3), not by the session that wrote the change; no separate reviewer agent checked it): two behavior-preserving changes.QwenTensorParallelRowsCheck.runnow says why the rows half's verify windows come after the segments half (each half's steps keep their place, so the default runs the same steps in the same order). Each real-geometry test now also checks its half's digest count on both ranks (200 rows, 136 segments, 336 a rank in total), so a dropped case fails instead of passing oncompared > 0. No other change was warranted:partsdefaults to both halves, each half keeps its refusals, and both tests keep the census and per-rank pass checks.AGENTS.mdasks for Mermaid diagrams; this PR uses the text flow above instead, as requested for this change.🤖 Generated with Claude Code