-
Notifications
You must be signed in to change notification settings - Fork 52
Add UCC/NCCL alltoallv, deepEP v1/v2 and moe benchmark #891
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
16 commits
Select commit
Hold shift + click to select a range
e912a9c
add tuning option
ybenvidia aee7ebb
Merge branch 'NVIDIA:main' into dp-benchmark
ybenvidia ed01ea8
Merge branch 'NVIDIA:main' into dp-benchmark
ybenvidia 8b029c9
Merge branch 'NVIDIA:main' into dp-benchmark
ybenvidia 1b85a6e
add ucc/nccl all2allv
ybenvidia 12f6742
Merge branch 'NVIDIA:main' into dp-benchmark
ybenvidia 3a743d3
Merge branch 'NVIDIA:main' into main
ybenvidia 72a6f84
add deepep v1/v2 and first version of the moe-benchmark
ybenvidia f81856e
fix pytest
ybenvidia 98ec0bc
Merge branch 'NVIDIA:main' into main
ybenvidia f81792e
fix CI reviews
ybenvidia 20176bd
Merge branch 'main' of https://github.com/ybenvidia/cloudai
ybenvidia b8ef623
update pytest
ybenvidia 7600e59
pytest
ybenvidia cd81035
fix CI
ybenvidia bd5be75
Merge branch 'main' into main
ybenvidia 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,6 +87,7 @@ ehthumbs.db | |
| Thumbs.db | ||
|
|
||
| *.log | ||
| slurm-* | ||
| install/ | ||
| results/ | ||
| .* | ||
|
|
||
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,39 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "deepep_test_ep_v2" | ||
| description = "Official DeepEP V2 elastic test_ep" | ||
| test_template_name = "DeepEP" | ||
|
|
||
| [cmd_args] | ||
| docker_image_url = "/your/path/to/the/container" | ||
| subtest_name = "test_ep" | ||
| elastic_tests_root = "/path/in/the/container/to/the/tests/folder" | ||
| num_processes = 8 | ||
| num_sms = 0 | ||
| num_qps = 0 | ||
| num_allocated_qps = 0 | ||
| num_tokens = 4096 | ||
| hidden = 7168 | ||
| num_topk = 8 | ||
| num_experts = 256 | ||
| do_cpu_sync = 1 | ||
| allow_hybrid_mode = 1 | ||
| allow_multiple_reduction = 1 | ||
| prefer_overlap_with_compute = 0 | ||
| seed = 0 | ||
| skip_check = false | ||
| skip_perf_test = false |
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,31 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "deepep_test_internode" | ||
| description = "Official DeepEP V1 legacy test_internode" | ||
| test_template_name = "DeepEP" | ||
|
|
||
| [cmd_args] | ||
| docker_image_url = "/your/path/to/the/container" | ||
| subtest_name = "test_internode" | ||
| legacy_tests_root = "/path/in/the/container/to/the/tests/folder" | ||
| num_processes = 8 | ||
| num_tokens = 4096 | ||
| hidden = 7168 | ||
| num_topk = 8 | ||
| num_experts = 256 | ||
| pressure_test_mode = 0 | ||
| test_ll_compatibility = false |
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,30 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "deepep_test_intranode" | ||
| description = "Official DeepEP V1 legacy test_intranode" | ||
| test_template_name = "DeepEP" | ||
|
|
||
| [cmd_args] | ||
| docker_image_url = "/your/path/to/the/container" | ||
| subtest_name = "test_intranode" | ||
| legacy_tests_root = "/path/in/the/container/to/the/tests/folder" | ||
| num_processes = 8 | ||
| num_tokens = 4096 | ||
| hidden = 7168 | ||
| num_topk = 8 | ||
| num_experts = 256 | ||
| allow_mnnvl = false |
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,34 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "deepep_test_low_latency" | ||
| description = "Official DeepEP V1 legacy test_low_latency" | ||
| test_template_name = "DeepEP" | ||
|
|
||
| [cmd_args] | ||
| docker_image_url = "/your/path/to/the/container" | ||
| subtest_name = "test_low_latency" | ||
| legacy_tests_root = "/path/in/the/container/to/the/tests/folder" | ||
| num_processes = 8 | ||
| num_tokens = 128 | ||
| hidden = 7168 | ||
| num_topk = 8 | ||
| num_experts = 288 | ||
| allow_mnnvl = false | ||
| disable_nvlink = false | ||
| use_logfmt = false | ||
| pressure_test = false | ||
| shrink_test = false |
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,37 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "nccl_test_alltoallv" | ||
| description = "NCCL AlltoAllv" | ||
| test_template_name = "NcclTest" | ||
|
|
||
| [cmd_args] | ||
| docker_image_url = "/your/path/to/the/container" | ||
| subtest_name = "alltoallv_perf_mpi" | ||
| nthreads = 1 | ||
| ngpus = 1 | ||
| minbytes = "512M" | ||
| maxbytes = "512M" | ||
| stepfactor = 2 | ||
| iters = 10 | ||
| warmup_iters = 1 | ||
| check = 1 | ||
| blocking = 0 | ||
| use_deepep_matrix = true | ||
|
|
||
| [extra_env_vars] | ||
| NCCL_P2P_DISABLE = "1" | ||
| NCCL_SHM_DISABLE = "1" |
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,40 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "ucc_alltoallv_deepep" | ||
| description = "UCC AlltoAllv" | ||
| test_template_name = "UCCTest" | ||
|
|
||
| [cmd_args] | ||
| docker_image_url = "/your/path/to/the/container" | ||
| collective = "alltoallv" | ||
| b = 1 | ||
| e = "8M" | ||
| use_deepep_matrix = true | ||
|
|
||
| [extra_env_vars] | ||
| UCX_IB_GID_INDEX = "auto" | ||
| UCX_TLS = "cuda_copy,rc" | ||
| UCX_RNDV_THRESH = "0" | ||
| UCX_RNDV_SCHEME = "get_zcopy" | ||
| MELLANOX_VISIBLE_DEVICES = "0,3,4,5,6,9,10,11" | ||
| CUDA_VISIBLE_DEVICES = "0,1,2,3,4,5,6,7" | ||
| UCC_CL_HIER_FULL_SBGP_TLS = "ucp" | ||
| UCC_CL_HIER_NODE_SBGP_TLS = "cuda" | ||
| UCC_TLS = "ucp,cuda" | ||
| UCC_CL_HIER_TUNE = "alltoallv:0-inf:@node_split" | ||
| UCC_TL_UCP_ALLTOALLV_PAIRWISE_NUM_POSTS = "8" | ||
| UCC_CLS = "basic,hier" |
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,41 @@ | ||
| # SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name = "moe-benchmark" | ||
|
|
||
| [[Tests]] | ||
| id = "Tests.moe_benchmark" | ||
| test_name = "moe_benchmark_standard" | ||
| num_nodes = 2 | ||
| time_limit = "00:30:00" | ||
|
|
||
| [[Tests]] | ||
| id = "Tests.ucc_alltoallv" | ||
| test_name = "ucc_alltoallv_deepep" | ||
| num_nodes = 2 | ||
| time_limit = "00:30:00" | ||
| [[Tests.dependencies]] | ||
| type = "start_post_comp" | ||
| id = "Tests.moe_benchmark" | ||
|
|
||
| [[Tests]] | ||
| id = "Tests.nccl_alltoallv" | ||
| test_name = "nccl_test_alltoallv" | ||
| num_nodes = 2 | ||
| time_limit = "00:30:00" | ||
| [[Tests.dependencies]] | ||
| type = "start_post_comp" | ||
| id = "Tests.ucc_alltoallv" | ||
Oops, something went wrong.
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.