Repository navigation
Backend CI: run tensor and pipeline parallel gloo suites in separate shards - #16634
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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
Repo tests (CPU, gloo-tp-pp)is at its 2100 s cap. On #16618, which only touches the Studio MLX worker, it was interrupted with the suite almost done:The other recent runs of that job, across the last 20 PRs, took 30.5 to 36.2 minutes end to end, setup included, so a slightly slower runner is enough to tip it over. When this shard was created (#15951 split, #16447 comment) tensor plus pipeline parallel were about 1397 s. Pipeline parallel has grown a lot since then: every
torch.distributed.pipeliningschedule (#15655), per-stage sharded loading (#15656), no graph break on a non-last stage (#16167), and explicit-unscale overflow agreement (#16417). Nothing is wrong with those tests. The shard just outgrew its slot, the same waygloodid in #15951 and #16447.Change
.github/workflows/studio-backend-ci.yml:gloo-tp-ppbecomes two shards with the same settings (-n 4, the 2100 s cap, the marker filter):gloo-tp:tests/test_tp_n*gloo*.py(2 files);gloo-pp:tests/test_pp*gloo*.py(8 files).tests/studio/test_backend_ci_parallel_isolation.py:test_the_command_scan_sees_the_parallel_run_and_the_serial_stepspins the number of parallel pytest runs. It asks to be told when a shard is added, so its counts go from 12 to 13 parallel runs and from 9 to 10 repo-root shards.The selections are the old one split in two, so every file still runs exactly once.
Testing
tests/test_ci_repo_cpu_shards.py: 15 passed. Withtest_pp*gloo*narrowed totest_pp_[!n]*gloo*as a sabotage,test_no_file_is_dropped_or_run_twicefails, so a dropped file is still caught.tests/studio/test_backend_ci_parallel_isolation.py,tests/test_ci_repo_cpu_shards.pyand the workflow and cache-budget guards undertests/studio: 164 passed.