[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BK049JH6ZQRDFJD5TR9CQQ":3,"skill-same:01M7BK049JH6ZQRDFJD5TR9CQQ":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7BK049JH6ZQRDFJD5TR9CQQ","nemo-mbridge-perf-parallelism-strategies",null,"Operational guide for choosing and combining parallelism strategies in Megatron Bridge, including sizing rules, hardware topology mapping, and combined parallelism configuration.","YYC-Cube\u002FYYC3-AI-Agent-Archive","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79K9J2WD44BBY4662XKNZRB",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nemo-mbridge-perf-parallelism-strategies\ndescription: Operational guide for choosing and combining parallelism strategies in Megatron Bridge, including sizing rules, hardware topology mapping, and combined parallelism configuration.\ncategory: development-code\nversion: 1.0.0\nlicense: Apache-2.0\nwhen_to_use: Choosing or sizing TP\u002FDP\u002FPP\u002FCP\u002FEP degrees, or tracing an OOM or regression to a parallelism config change; 'how to parallelize', 'tensor parallel', 'pipeline parallel', 'parallelism config', 'which parallelism for X GPUs'.\n---\n\n# Parallelism Strategy Selection Skill\n\nFor stable background on each parallelism type, see:\n\n- @docs\u002Fparallelisms.md\n- @skills\u002Fnemo-mbridge-perf-parallelism-strategies\u002Fcard.yaml\n\n## Decision by Model Size\n\n### Dense models\n\n| Model size | GPUs | Recommended starting point |\n|---|---|---|\n| \u003C 1B | 1-8 | DP only |\n| 1-10B | 8-16 | TP=2-4 + DP |\n| 10-70B | 16-64 | TP=4-8 + PP=2-4 + DP |\n| 70-175B | 64-256 | TP=8 + PP=4-8 + DP |\n| 175-500B | 256-1024 | TP=8 + PP=8-16 + CP=2 + DP |\n\n### MoE models\n\nMoE parallelism differs from dense models. Because only a fraction of\nparameters are active per token, TP can often stay at 1 or 2 — the active\nparameter shard already fits on a single GPU. EP is the primary scaling\ndimension, with PP handling cross-node layer distribution.\n\n| Model (total \u002F active) | TP | PP | EP | Notes |\n|---|---|---|---|---|\n| OLMoE 7B \u002F 1B | 1 | 1 | 8 | EP only, fits single node |\n| Moonlight 16B \u002F 3B | 2 | 1 | 8 | small TP for shared layers |\n| DeepSeek-V2 236B \u002F 21B | 1 | 4 | 32 | no TP at all |\n| GLM-4.5 Air 106B \u002F 12B | 1 | 4 | 8 | no TP at all |\n| Qwen3 30B-A3B | 4 | 2 | 4 | |\n| GLM-4.5 355B \u002F 32B | 2 | 8 | 16 | |\n| Qwen3 235B-A22B | 4 | 16 | 8 | CP=2 for pretrain |\n| DeepSeek-V3 671B \u002F 37B | 2 | 16 | 64 | TP=2, not 8 |\n| Kimi-K2 1T | 2 | 16 | 32 | |\n\nKey patterns:\n\n- TP is sized by **active** params, not total params. A 671B MoE with\n  37B active needs far less TP than a 70B dense model.\n- EP scales with expert count. Common: EP = num_experts or\n  num_experts \u002F experts_per_gpu.\n- PP handles depth. Large MoE models use PP=8-16 across nodes.\n- ETP (expert tensor parallelism) is rarely used. Llama 4 is an\n  exception (ETP=4).\n\nThese are starting points, not hard rules. Always profile the first\niteration to verify memory and communication.\n\n## Decision by Hardware Topology\n\nSingle node with NVLink:\n\n```python\ncfg.model.tensor_model_parallel_size = 8\n```\n\nMultiple nodes with InfiniBand:\n\n```python\ncfg.model.tensor_model_parallel_size = 8\ncfg.model.pipeline_model_parallel_size = N\n```\n\nLimited network (Ethernet):\n\n```python\ncfg.model.tensor_model_parallel_size = 4\ncfg.model.pipeline_model_parallel_size = M\n```\n\nThe stable rule is: keep TP within a single NVLink domain. Use PP or DP\nfor cross-node scaling. TP across nodes is almost always a performance\nloss.\n\n## Decision by Sequence Length\n\n| Sequence length | Recommendation |\n|---|---|\n| \u003C 2K | standard TP + PP + DP |\n| 2K-8K | add SP (`sequence_parallel=True`) |\n| 8K-32K | add CP=2 |\n| 32K+ | add CP=4-8, consider `a2a+p2p` for large CP |\n\n## Combined Parallelism Enablement\n\n3D parallelism (TP + PP + DP):\n\n```python\ncfg.model.tensor_model_parallel_size = 4\ncfg.model.pipeline_model_parallel_size = 4\ncfg.model.sequence_parallel = True\n```\n\n4D parallelism (TP + PP + CP + DP):\n\n```python\ncfg.model.tensor_model_parallel_size = 8\ncfg.model.pipeline_model_parallel_size = 8\ncfg.model.context_parallel_size = 2\ncfg.model.sequence_parallel = True\n```\n\nMoE with EP + PP (e.g. DeepSeek-V2 236B on 128 GPUs):\n\n```python\ncfg.model.tensor_model_parallel_size = 1\ncfg.model.pipeline_model_parallel_size = 4\ncfg.model.expert_model_parallel_size = 32\ncfg.model.sequence_parallel = False\n```\n\nMoE with small TP + PP + EP (e.g. DeepSeek-V3 671B on 256 GPUs):\n\n```python\ncfg.model.tensor_model_parallel_size = 2\ncfg.model.pipeline_model_parallel_size = 16\ncfg.model.expert_model_parallel_size = 64\ncfg.model.sequence_parallel = True\n```\n\nDP size is always implicit:\n\n```\ndata_parallel_size = world_size \u002F (TP * PP * CP)        # dense path\nexpert_data_parallel_size = world_size \u002F (PP * EP * ETP) # MoE path\n```\n\n## Minimum GPU Count\n\nThe **minimum** GPUs needed to run a config (i.e. with `DP=1`, `EDP=1`)\nis **not** the product of all parallelism dimensions. The dense path uses\na `TP*CP`-mesh and the MoE path uses an `EP*ETP`-mesh, and within each PP\nstage these two meshes share the same set of GPUs — they overlap, they\ndon't multiply. Only PP stages multiply (they're disjoint slices of the\nmodel). So:\n\n```\nmin_gpus = PP * max(TP * CP, EP * ETP)\n```\n\n**Common simplification (WRONG):** `PP * TP * CP * EP * ETP`. This\nover-allocates GPUs and shows up in many READMEs and slurm sizing tables.\nDon't propagate it.\n\nThe decoupling of attention and MoE parallelism (different mesh shapes\nfor the dense and expert paths sharing the same PP-stage GPUs) is\ndetailed in\n[Pangu Ultra MoE (arXiv:2504.14960)](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2504.14960).\n\n### Examples\n\n| Config | Wrong (PP·TP·CP·EP·ETP) | Correct (PP·max(TP·CP, EP·ETP)) |\n|---|---|---|\n| PP=1, TP=2, CP=1, EP=8, ETP=1 | 16 | **8** (1 node) |\n| PP=1, TP=4, CP=1, EP=8, ETP=1 | 32 | **8** (max(4, 8)) |\n| PP=1, TP=2, CP=2, EP=8, ETP=1 | 32 | **8** (max(4, 8)) |\n| PP=1, TP=2, CP=4, EP=8, ETP=1 | 64 | **8** (max(8, 8)) |\n| PP=2, TP=2, CP=1, EP=8, ETP=1 | 32 | **16** (2 · max(2, 8)) |\n| PP=1, TP=2, CP=1, EP=4, ETP=2 | 16 | **8** (max(2, 8)) |\n\n### Scaling above the minimum\n\nAdding GPUs scales `DP` and\u002For `EDP` (the `world_size` must satisfy\nboth equations simultaneously). At `min_gpus` the larger-mesh side has\nDP (or EDP) = 1 and the smaller side absorbs the slack.\n\nExample — TP=2, CP=1, EP=8, ETP=1, PP=1:\n\n- **8 GPUs** (`min_gpus`): dense `DP = 8\u002F2 = 4`, MoE `EDP = 8\u002F8 = 1`\n- **16 GPUs**: dense `DP = 8`, MoE `EDP = 2` → 2× global batch\n- **32 GPUs**: dense `DP = 16`, MoE `EDP = 4` → 4× global batch\n\nWhen sizing slurm scripts, compute `--nodes` from `min_gpus` (or a\nmultiple of it for higher throughput via DP\u002FEDP).\n\nWhen answering MoE sizing prompts, include this checklist:\n\n- compute `min_gpus = PP * max(TP * CP, EP * ETP)` with the requested values\n- explicitly reject the wrong `PP * TP * CP * EP * ETP` full product\n- give both DP formulas: dense `world_size \u002F (TP * PP * CP)` and MoE\n  `world_size \u002F (PP * EP * ETP)`\n- mention TP topology, SP, CP divisibility, and long-sequence CP guidance\n\n## Memory Estimation\n\nWithout parallelism (70B model, FP16):\n\n```\nparameters:       140 GB\ngradients:        140 GB\noptimizer states: 280 GB (Adam)\nactivations:       48 GB (batch=1, seq=4K)\ntotal:            608 GB\n```\n\nWith TP=4, PP=4, DP=4 (64 GPUs):\n\n```\nparameters:        8.75 GB per GPU\ngradients:         8.75 GB per GPU\noptimizer states: 17.50 GB per GPU\nactivations:       3.00 GB per GPU\ntotal:           ~38    GB per GPU\n```\n\n## Code Anchors\n\nParallelism dimensions set in model provider:\n\n```66:81:docs\u002Fparallelisms.md\nmodel_config = GPTModelProvider(\n    tensor_model_parallel_size=2,\n    # ... other model parameters\n)\n```\n\nDP size calculation:\n\n```424:436:docs\u002Fparallelisms.md\ndata_parallel_size = world_size \u002F (tensor_model_parallel_size × pipeline_model_parallel_size × context_parallel_size)\n```\n\nBridge initialization wires parallelism into process groups:\n\n```618:628:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Finitialize.py\nparallel_state.initialize_model_parallel(\n    tensor_model_parallel_size=model_config.tensor_model_parallel_size,\n    pipeline_model_parallel_size=model_config.pipeline_model_parallel_size,\n    ...\n    context_parallel_size=model_config.context_parallel_size,\n    hierarchical_context_parallel_sizes=model_config.hierarchical_context_parallel_sizes,\n    expert_model_parallel_size=model_config.expert_model_parallel_size,\n    ...\n)\n```\n\n## Pitfalls\n\n1. TP across nodes destroys throughput. Always keep TP within a single\n   NVLink domain.\n\n2. PP without interleaving has large pipeline bubbles. Use\n   `virtual_pipeline_model_parallel_size` when possible.\n\n3. SP requires `tensor_model_parallel_size > 1`. Enabling SP alone\n   without TP is a config error.\n\n4. CP requires `seq_length % (2 * context_parallel_size) == 0`.\n\n5. EP is only for MoE models. Setting `expert_model_parallel_size` on a\n   dense model is a no-op or error.\n\n6. The model-size-to-parallelism table above is a starting heuristic.\n   Always profile the first iteration to check memory and communication.\n\n7. `CUDA_DEVICE_MAX_CONNECTIONS` and related env vars interact with\n   overlap settings. See @skills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FSKILL.md.\n\n8. The minimum GPU count for an MoE config is `PP * max(TP*CP, EP*ETP)`,\n   not the product of all dimensions. The dense `TP*CP`-mesh and MoE\n   `EP*ETP`-mesh share the same GPUs in each PP stage. See\n   \"Minimum GPU Count\" section above.\n\n## Verification\n\nQuick sanity check that combined parallelism initializes correctly using\nthe smallest available recipe with overridden parallelism:\n\n```bash\nCUDA_VISIBLE_DEVICES=0,1,2,3 uv run python -m torch.distributed.run --nproc_per_node=4 \\\n  scripts\u002Ftraining\u002Frun_recipe.py \\\n  --recipe llama32_1b_pretrain_config \\\n  model.tensor_model_parallel_size=2 \\\n  model.pipeline_model_parallel_size=2 \\\n  model.sequence_parallel=True \\\n  train.train_iters=3 train.global_batch_size=8 train.micro_batch_size=1 \\\n  scheduler.lr_warmup_iters=0 \\\n  validation.eval_iters=0 validation.eval_interval=0 \\\n  checkpoint.save_interval=0 \\\n  logger.log_interval=1\n```\n\nSuccess criteria:\n\n- exit code 0\n- finite loss at iteration 3 (e.g. `lm loss: 1.003808E+01`)\n- log shows TP=2 PP=2 DP=1 layout with 4 ranks\n","# Parallelism Strategy Selection Skill\n\nFor stable background on each parallelism type, see:\n\n- @docs\u002Fparallelisms.md\n- @skills\u002Fnemo-mbridge-perf-parallelism-strategies\u002Fcard.yaml\n\n## Decision by Model Size\n\n### Dense models\n\n| Model size | GPUs | Recommended starting point |\n|---|---|---|\n| \u003C 1B | 1-8 | DP only |\n| 1-10B | 8-16 | TP=2-4 + DP |\n| 10-70B | 16-64 | TP=4-8 + PP=2-4 + DP |\n| 70-175B | 64-256 | TP=8 + PP=4-8 + DP |\n| 175-500B | 256-1024 | TP=8 + PP=8-16 + CP=2 + DP |\n\n### MoE models\n\nMoE parallelism differs from dense models. Because only a fraction of\nparameters are active per token, TP can often stay at 1 or 2 — the active\nparameter shard already fits on a single GPU. EP is the primary scaling\ndimension, with PP handling cross-node layer distribution.\n\n| Model (total \u002F active) | TP | PP | EP | Notes |\n|---|---|---|---|---|\n| OLMoE 7B \u002F 1B | 1 | 1 | 8 | EP only, fits single node |\n| Moonlight 16B \u002F 3B | 2 | 1 | 8 | small TP for shared layers |\n| DeepSeek-V2 236B \u002F 21B | 1 | 4 | 32 | no TP at all |\n| GLM-4.5 Air 106B \u002F 12B | 1 | 4 | 8 | no TP at all |\n| Qwen3 30B-A3B | 4 | 2 | 4 | |\n| GLM-4.5 355B \u002F 32B | 2 | 8 | 16 | |\n| Qwen3 235B-A22B | 4 | 16 | 8 | CP=2 for pretrain |\n| DeepSeek-V3 671B \u002F 37B | 2 | 16 | 64 | TP=2, not 8 |\n| Kimi-K2 1T | 2 | 16 | 32 | |\n\nKey patterns:\n\n- TP is sized by **active** params, not total params. A 671B MoE with\n  37B active needs far less TP than a 70B dense model.\n- EP scales with expert count. Common: EP = num_experts or\n  num_experts \u002F experts_per_gpu.\n- PP handles depth. Large MoE models use PP=8-16 across nodes.\n- ETP (expert tensor parallelism) is rarely used. Llama 4 is an\n  exception (ETP=4).\n\nThese are starting points, not hard rules. Always profile the first\niteration to verify memory and communication.\n\n## Decision by Hardware Topology\n\nSingle node with NVLink:\n\n```python\ncfg.model.tensor_model_parallel_size = 8\n```\n\nMultiple nodes with InfiniBand:\n\n```python\ncfg.model.tensor_model_parallel_size = 8\ncfg.model.pipeline_model_parallel_size = N\n```\n\nLimited network (Ethernet):\n\n```python\ncfg.model.tensor_model_parallel_size = 4\ncfg.model.pipeline_model_parallel_size = M\n```\n\nThe stable rule is: keep TP within a single NVLink domain. Use PP or DP\nfor cross-node scaling. TP across nodes is almost always a performance\nloss.\n\n## Decision by Sequence Length\n\n| Sequence length | Recommendation |\n|---|---|\n| \u003C 2K | standard TP + PP + DP |\n| 2K-8K | add SP (`sequence_parallel=True`) |\n| 8K-32K | add CP=2 |\n| 32K+ | add CP=4-8, consider `a2a+p2p` for large CP |\n\n## Combined Parallelism Enablement\n\n3D parallelism (TP + PP + DP):\n\n```python\ncfg.model.tensor_model_parallel_size = 4\ncfg.model.pipeline_model_parallel_size = 4\ncfg.model.sequence_parallel = True\n```\n\n4D parallelism (TP + PP + CP + DP):\n\n```python\ncfg.model.tensor_model_parallel_size = 8\ncfg.model.pipeline_model_parallel_size = 8\ncfg.model.context_parallel_size = 2\ncfg.model.sequence_parallel = True\n```\n\nMoE with EP + PP (e.g. DeepSeek-V2 236B on 128 GPUs):\n\n```python\ncfg.model.tensor_model_parallel_size = 1\ncfg.model.pipeline_model_parallel_size = 4\ncfg.model.expert_model_parallel_size = 32\ncfg.model.sequence_parallel = False\n```\n\nMoE with small TP + PP + EP (e.g. DeepSeek-V3 671B on 256 GPUs):\n\n```python\ncfg.model.tensor_model_parallel_size = 2\ncfg.model.pipeline_model_parallel_size = 16\ncfg.model.expert_model_parallel_size = 64\ncfg.model.sequence_parallel = True\n```\n\nDP size is always implicit:\n\n```\ndata_parallel_size = world_size \u002F (TP * PP * CP)        # dense path\nexpert_data_parallel_size = world_size \u002F (PP * EP * ETP) # MoE path\n```\n\n## Minimum GPU Count\n\nThe **minimum** GPUs needed to run a config (i.e. with `DP=1`, `EDP=1`)\nis **not** the product of all parallelism dimensions. The dense path uses\na `TP*CP`-mesh and the MoE path uses an `EP*ETP`-mesh, and within each PP\nstage these two meshes share the same set of GPUs — they overlap, they\ndon't multiply. Only PP stages multiply (they're disjoint slices of the\nmodel). So:\n\n```\nmin_gpus = PP * max(TP * CP, EP * ETP)\n```\n\n**Common simplification (WRONG):** `PP * TP * CP * EP * ETP`. This\nover-allocates GPUs and shows up in many READMEs and slurm sizing tables.\nDon't propagate it.\n\nThe decoupling of attention and MoE parallelism (different mesh shapes\nfor the dense and expert paths sharing the same PP-stage GPUs) is\ndetailed in\n[Pangu Ultra MoE (arXiv:2504.14960)](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2504.14960).\n\n### Examples\n\n| Config | Wrong (PP·TP·CP·EP·ETP) | Correct (PP·max(TP·CP, EP·ETP)) |\n|---|---|---|\n| PP=1, TP=2, CP=1, EP=8, ETP=1 | 16 | **8** (1 node) |\n| PP=1, TP=4, CP=1, EP=8, ETP=1 | 32 | **8** (max(4, 8)) |\n| PP=1, TP=2, CP=2, EP=8, ETP=1 | 32 | **8** (max(4, 8)) |\n| PP=1, TP=2, CP=4, EP=8, ETP=1 | 64 | **8** (max(8, 8)) |\n| PP=2, TP=2, CP=1, EP=8, ETP=1 | 32 | **16** (2 · max(2, 8)) |\n| PP=1, TP=2, CP=1, EP=4, ETP=2 | 16 | **8** (max(2, 8)) |\n\n### Scaling above the minimum\n\nAdding GPUs scales `DP` and\u002For `EDP` (the `world_size` must satisfy\nboth equations simultaneously). At `min_gpus` the larger-mesh side has\nDP (or EDP) = 1 and the smaller side absorbs the slack.\n\nExample — TP=2, CP=1, EP=8, ETP=1, PP=1:\n\n- **8 GPUs** (`min_gpus`): dense `DP = 8\u002F2 = 4`, MoE `EDP = 8\u002F8 = 1`\n- **16 GPUs**: dense `DP = 8`, MoE `EDP = 2` → 2× global batch\n- **32 GPUs**: dense `DP = 16`, MoE `EDP = 4` → 4× global batch\n\nWhen sizing slurm scripts, compute `--nodes` from `min_gpus` (or a\nmultiple of it for higher throughput via DP\u002FEDP).\n\nWhen answering MoE sizing prompts, include this checklist:\n\n- compute `min_gpus = PP * max(TP * CP, EP * ETP)` with the requested values\n- explicitly reject the wrong `PP * TP * CP * EP * ETP` full product\n- give both DP formulas: dense `world_size \u002F (TP * PP * CP)` and MoE\n  `world_size \u002F (PP * EP * ETP)`\n- mention TP topology, SP, CP divisibility, and long-sequence CP guidance\n\n## Memory Estimation\n\nWithout parallelism (70B model, FP16):\n\n```\nparameters:       140 GB\ngradients:        140 GB\noptimizer states: 280 GB (Adam)\nactivations:       48 GB (batch=1, seq=4K)\ntotal:            608 GB\n```\n\nWith TP=4, PP=4, DP=4 (64 GPUs):\n\n```\nparameters:        8.75 GB per GPU\ngradients:         8.75 GB per GPU\noptimizer states: 17.50 GB per GPU\nactivations:       3.00 GB per GPU\ntotal:           ~38    GB per GPU\n```\n\n## Code Anchors\n\nParallelism dimensions set in model provider:\n\n```66:81:docs\u002Fparallelisms.md\nmodel_config = GPTModelProvider(\n    tensor_model_parallel_size=2,\n    # ... other model parameters\n)\n```\n\nDP size calculation:\n\n```424:436:docs\u002Fparallelisms.md\ndata_parallel_size = world_size \u002F (tensor_model_parallel_size × pipeline_model_parallel_size × context_parallel_size)\n```\n\nBridge initialization wires parallelism into process groups:\n\n```618:628:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Finitialize.py\nparallel_state.initialize_model_parallel(\n    tensor_model_parallel_size=model_config.tensor_model_parallel_size,\n    pipeline_model_parallel_size=model_config.pipeline_model_parallel_size,\n    ...\n    context_parallel_size=model_config.context_parallel_size,\n    hierarchical_context_parallel_sizes=model_config.hierarchical_context_parallel_sizes,\n    expert_model_parallel_size=model_config.expert_model_parallel_size,\n    ...\n)\n```\n\n## Pitfalls\n\n1. TP across nodes destroys throughput. Always keep TP within a single\n   NVLink domain.\n\n2. PP without interleaving has large pipeline bubbles. Use\n   `virtual_pipeline_model_parallel_size` when possible.\n\n3. SP requires `tensor_model_parallel_size > 1`. Enabling SP alone\n   without TP is a config error.\n\n4. CP requires `seq_length % (2 * context_parallel_size) == 0`.\n\n5. EP is only for MoE models. Setting `expert_model_parallel_size` on a\n   dense model is a no-op or error.\n\n6. The model-size-to-parallelism table above is a starting heuristic.\n   Always profile the first iteration to check memory and communication.\n\n7. `CUDA_DEVICE_MAX_CONNECTIONS` and related env vars interact with\n   overlap settings. See @skills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FSKILL.md.\n\n8. The minimum GPU count for an MoE config is `PP * max(TP*CP, EP*ETP)`,\n   not the product of all dimensions. The dense `TP*CP`-mesh and MoE\n   `EP*ETP`-mesh share the same GPUs in each PP stage. See\n   \"Minimum GPU Count\" section above.\n\n## Verification\n\nQuick sanity check that combined parallelism initializes correctly using\nthe smallest available recipe with overridden parallelism:\n\n```bash\nCUDA_VISIBLE_DEVICES=0,1,2,3 uv run python -m torch.distributed.run --nproc_per_node=4 \\\n  scripts\u002Ftraining\u002Frun_recipe.py \\\n  --recipe llama32_1b_pretrain_config \\\n  model.tensor_model_parallel_size=2 \\\n  model.pipeline_model_parallel_size=2 \\\n  model.sequence_parallel=True \\\n  train.train_iters=3 train.global_batch_size=8 train.micro_batch_size=1 \\\n  scheduler.lr_warmup_iters=0 \\\n  validation.eval_iters=0 validation.eval_interval=0 \\\n  checkpoint.save_interval=0 \\\n  logger.log_interval=1\n```\n\nSuccess criteria:\n\n- exit code 0\n- finite loss at iteration 3 (e.g. `lm loss: 1.003808E+01`)\n- log shows TP=2 PP=2 DP=1 layout with 4 ranks\n",{"name":5,"license":15,"version":24,"category":25,"description":7,"when_to_use":26},"1.0.0","development-code","Choosing or sizing TP\u002FDP\u002FPP\u002FCP\u002FEP degrees, or tracing an OOM or regression to a parallelism config change; 'how to parallelize', 'tensor parallel', 'pipeline parallel', 'parallelism config', 'which parallelism for X GPUs'.","main","d591030ef9fb1bbcebed3454aa5c2dcb8d608f69","skills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive","https:\u002F\u002Fai-agent.yyc3.vip\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-13 22:26:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add YYC-Cube\u002FYYC3-AI-Agent-Archive --skill nemo-mbridge-perf-parallelism-strategies",{"tool":41,"command":42},"bunx","bunx skills add YYC-Cube\u002FYYC3-AI-Agent-Archive --skill nemo-mbridge-perf-parallelism-strategies",{"tool":44,"command":45},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-AI-Agent-Archive --skill nemo-mbridge-perf-parallelism-strategies","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002FSKILL.md",true,[49,55,59,63,67],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"BENCHMARK.md","REFERENCE","参考文档",4380,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002FBENCHMARK.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"card.yaml",2948,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002Fcard.yaml",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fevals.json",1552,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002Fevals\u002Fevals.json",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"skill-card.md",3749,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002Fskill-card.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"skill.oms.sig","OTHER","其他",4837,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Fskills-hub\u002Fai-ml\u002Fnvidia-skills\u002Fskills\u002Fnemo-mbridge-perf-parallelism-strategies\u002Fskill.oms.sig",[74,82,89,96,103,111],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7BTB92RE8MT5YE706QBNDTQ","yingmi-skill","当用户需要查询基金、策略、公告、财经资讯，做资产配置、组合诊断、风险回测、现金流分析，或生成图表、PDF 时，优先使用本 Skill 获取真实数据与可执行能力。","MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Fyingmi-skill\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7BT7ZYR091HPJYEFNWVTEJJ","web-access","所有联网操作必须通过此 skill 处理，包括：搜索、网页抓取、登录后操作、网络交互等。","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Fweb-access\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7BT4NKS0DNP8A53M1BGGZR2","tencentmap-map-assistant","腾讯位置服务·地图助手 Skill，一句自然语言调用腾讯地图全套能力，无需开发者账号、开箱即用。提供 AI 旅游攻略、地点搜索（含评分\u002F人均\u002F营业时间）、关键词提示、路线规划（驾车\u002F步行\u002F公交\u002F骑行）、地址解析与逆解析、行政区划、IP 定位、距离计算、天气查询，并可将行程或多 POI 渲染成网页地图。涉及找地点、规划路线、旅游行程、查天气、坐标转换等出行场景时使用。","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Ftencentmap-map-assistant\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7BSWKV1T5XYYRGV4W4JP88C","skill-scanner","Scan any agent skill for security risks before you install or use it. Powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard). 100% local static analysis — no file contents or credentials leave your device. Compatible with CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw and more. Triggers on: 这个 skill 安全吗, skill 安全扫描, 检查 skill 安全, audit skill, scan skill, check skill safety, analyze skill, inspect skill, verify skill, skill security, skill supply chain. Do NOT trigger for general agent usage, full system health checks, project debugging, or normal development.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Fskill-scanner\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7BSWGTCFW7F123S4BM4XY6W","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends agent capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7BSVV4DH8JK2ZMQSCW25VCD","shader-dev","Comprehensive GLSL shader techniques for creating stunning visual effects — ray marching, SDF modeling, fluid simulation, particle systems, procedural generation, lighting, post-processing, and more.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-AI-Agent-Archive\u002Fblob\u002Fmain\u002Ftools-hub\u002Fcode-ide\u002Fskills-marketplace\u002Fskills\u002Fshader-dev\u002FSKILL.md",[],[]]