[docs] feat: document min GPU count for combined dense + MoE parallelism - #3509
Merged
Conversation
Adds a "Minimum GPU Count" section clarifying that the dense (TP*CP) and
MoE (EP*ETP) meshes share the same GPUs within each PP stage, so:
min_gpus = PP * max(TP * CP, EP * ETP)
not the naive product PP * TP * CP * EP * ETP that frequently appears
in READMEs and slurm sizing. Also extends the implicit DP formula to
include EDP for the MoE path, adds an example table, explains how
adding GPUs scales DP / EDP above the minimum, and references Pangu
Ultra MoE (arXiv:2504.14960) where the decoupling is described.
Signed-off-by: Chen Cui <chcui@nvidia.com>
suiyoubi
approved these changes
Apr 27, 2026
vasunvidia
pushed a commit
to vasunvidia/Megatron-Bridge
that referenced
this pull request
Jun 10, 2026
…ism (NVIDIA-NeMo#3509) Signed-off-by: Chen Cui <chcui@nvidia.com> Signed-off-by: Vasudevan Rengasamy <vrengasamy@nvidia.com>
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
Updates
skills/perf-techniques/parallelism-strategies/SKILL.mdwith a new Minimum GPU Count section.The dense path uses a
TP*CP-mesh and the MoE path uses anEP*ETP-mesh; within each PP stage these two meshes share the same GPUs rather than multiplying. The correct minimum is therefore:```
min_gpus = PP * max(TP * CP, EP * ETP)
```
not the common (and incorrect)
PP * TP * CP * EP * ETPthat shows up in READMEs and slurm sizing tables.Changes
expert_data_parallel_size = world_size / (PP * EP * ETP)for the MoE path.DP/EDP.Test plan