Repository navigation
feat(rccl): add GPT-OSS-120B on 2 nodes to the madengine gate #13180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4877f44
feat(rccl): drive the scheduled madengine job from a workload matrix
mkuznet1 c3123f1
feat(rccl): add GPT-OSS-120B on 2 nodes to the madengine gate
mkuznet1 4e447c5
ci(rccl): drop the unverified llama-4-scout workload from the madengi…
mkuznet1 8fe3073
ci(rccl): expect BF16 and FP8 from GPT-OSS-120B
mkuznet1 19a9249
fix(rccl): let a workload's env_vars override the socket interfaces too
mkuznet1 0192742
ci(rccl): run the scheduled madengine workloads one at a time
mkuznet1 26a1a66
ci(rccl): run GPT-OSS-120B on the weekly schedule, not every night
mkuznet1 0d2def6
ci(rccl): drop repeated RCCL deprecation warnings from madengine node…
mkuznet1 7f92ff5
docs(rccl): say what the deprecation-warning filter saves, not which …
mkuznet1 d87146d
fix(rccl-ci): honor selected suites in the weekly job, squash logs only
mkuznet1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| """Tests for squash_log_spam() in test_madengine.py. | ||
|
|
||
| Run from projects/rccl/ci/scripts: python3 -m unittest discover -s tests | ||
|
mkuznet1 marked this conversation as resolved.
Resolved
|
||
| """ | ||
|
|
||
| import os | ||
| import sys | ||
| import tempfile | ||
| import unittest | ||
| from pathlib import Path | ||
|
|
||
| sys.path.insert(0, os.fspath(Path(__file__).resolve().parent.parent)) | ||
| import test_madengine as tm | ||
|
|
||
| SPAM = (b"[2026-10-12 21:11:21] node:985:985 [0] api_trace.cc:569 NCCL WARN Please note " | ||
| b"that ncclAllToAllv is deprecated, please use ncclAlltoAllv instead\n") | ||
| SPAM2 = SPAM.replace(b"ncclAllToAllv", b"ncclAllToAll").replace(b"ncclAlltoAllv", b"ncclAlltoAll") | ||
| BANNER = b"RCCL version : 2.32.3-develop:2b88119\n" | ||
| REAL_WARN = b"node:985:985 [0] NCCL WARN NET/IB : Got async event : port error\n" | ||
|
|
||
|
|
||
| class SquashLogSpam(unittest.TestCase): | ||
| def setUp(self): | ||
| self._tmp = tempfile.TemporaryDirectory() | ||
| self.run_dir = Path(self._tmp.name) | ||
| self.logs = self.run_dir / "slurm_output" | ||
| (self.logs / "model" / "node_0").mkdir(parents=True) | ||
|
|
||
| def tearDown(self): | ||
| self._tmp.cleanup() | ||
|
|
||
| def test_keeps_first_and_counts_the_rest(self): | ||
| log = self.logs / "madengine-x_node_0.out" | ||
| log.write_bytes(BANNER + SPAM * 5 + REAL_WARN + SPAM * 3 + b"tok/s 1500\n") | ||
| saved = tm.squash_log_spam(self.run_dir) | ||
| self.assertEqual( | ||
| log.read_bytes(), | ||
| BANNER + SPAM + REAL_WARN + b"tok/s 1500\n" | ||
| + b"[rccl-ci] dropped 7 repeats of 'NCCL WARN Please note that " | ||
| b"ncclAllToAllv is deprecated'\n", | ||
| ) | ||
| self.assertEqual(saved, 7 * len(SPAM) - len(log.read_bytes().splitlines(True)[-1])) | ||
| self.assertEqual(tm.runtime_rccl_versions(self.run_dir), ["2.32.3-develop:2b88119"]) | ||
|
|
||
| def test_each_api_counted_separately(self): | ||
| log = self.logs / "model" / "node_0" / "stdout.out" | ||
| log.write_bytes(SPAM + SPAM2 + SPAM + SPAM2 + SPAM2) | ||
| tm.squash_log_spam(self.run_dir) | ||
| self.assertEqual( | ||
| log.read_bytes(), | ||
| SPAM + SPAM2 | ||
| + b"[rccl-ci] dropped 1 repeats of 'NCCL WARN Please note that " | ||
| b"ncclAllToAllv is deprecated'\n" | ||
| + b"[rccl-ci] dropped 2 repeats of 'NCCL WARN Please note that " | ||
| b"ncclAllToAll is deprecated'\n", | ||
| ) | ||
|
|
||
| def test_file_without_repeats_is_untouched(self): | ||
| log = self.logs / "madengine-x_node_1.out" | ||
| body = BANNER + SPAM + REAL_WARN | ||
| log.write_bytes(body) | ||
| mtime = log.stat().st_mtime_ns | ||
| self.assertEqual(tm.squash_log_spam(self.run_dir), 0) | ||
| self.assertEqual(log.read_bytes(), body) | ||
| self.assertEqual(log.stat().st_mtime_ns, mtime) | ||
| self.assertEqual(sorted(p.name for p in self.logs.iterdir() if p.is_file()), | ||
| ["madengine-x_node_1.out"]) | ||
|
|
||
| def test_missing_slurm_output(self): | ||
| self.assertEqual(tm.squash_log_spam(self.run_dir / "nope"), 0) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| unittest.main() | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.