[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78J4XC2MBY0A65RMEKM08N9":3,"skill-same:01M78J4XC2MBY0A65RMEKM08N9":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M78J4XC2MBY0A65RMEKM08N9","nemo-mbridge-perf-tp-dp-comm-overlap",null,"Operational guide for enabling TP, DP, and PP communication overlap in Megatron-Bridge, including config knobs, code anchors, pitfalls, and verification.","matheussluzz\u002FZeuZ-Agent","matheussluzz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F209255758?v=4","01M78HKHH1D1ASC9KC9BG583DH","01M78HKHHP6W7XRXQM2SBCAM3R",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nemo-mbridge-perf-tp-dp-comm-overlap\ndescription: Operational guide for enabling TP, DP, and PP communication overlap in Megatron-Bridge, including config knobs, code anchors, pitfalls, and verification.\nlicense: Apache-2.0\nwhen_to_use: Enabling TP\u002FDP\u002FPP comm overlap, or tracing a throughput regression to a comm overlap config change; 'overlap_param_gather', 'overlap_grad_reduce', 'sequence-parallel overlap', 'TP overlap', 'DP overlap', 'comm overlap'.\n---\n\n# TP \u002F DP \u002F PP Communication Overlap Skill\n\nFor stable background and recommendation level, see:\n\n- @docs\u002Ftraining\u002Fcommunication-overlap.md\n\n## Enablement\n\nMinimal Bridge override:\n\n```python\nfrom megatron.bridge.training.comm_overlap import CommOverlapConfig\n\ncfg.model.tensor_model_parallel_size = 4\ncfg.model.sequence_parallel = True\ncfg.model.pipeline_model_parallel_size = 4\ncfg.model.virtual_pipeline_model_parallel_size = 2\n\ncfg.comm_overlap = CommOverlapConfig(\n    tp_comm_overlap=True,\n)\n\ncfg.ddp.use_distributed_optimizer = True\ncfg.ddp.overlap_grad_reduce = True\ncfg.ddp.overlap_param_gather = True\n```\n\nOptional TP preset:\n\n```python\nfrom megatron.bridge.training.comm_overlap import userbuffers_bf16_h100_h12288_tp4_mbs1_seqlen2048\n\ncfg.comm_overlap.tp_comm_overlap_cfg = userbuffers_bf16_h100_h12288_tp4_mbs1_seqlen2048\n```\n\nPrecision knobs belong to mixed precision:\n\n```python\ncfg.mixed_precision.grad_reduce_in_fp32 = False\ncfg.mixed_precision.fp8_param_gather = False\n```\n\n## Code Anchors\n\nBridge overlap gating:\n\n```439:449:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fcomm_overlap.py\nif self.user_comm_overlap_cfg.tp_comm_overlap is True:\n    if model_cfg.tensor_model_parallel_size \u003C 2:\n        ...\n    elif not model_cfg.sequence_parallel:\n        ...\n    elif not HAVE_TE:\n        ...\n```\n\nPP overlap selection:\n\n```451:458:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fcomm_overlap.py\nif model_cfg.pipeline_model_parallel_size > 1:\n    if vp_size > 1:\n        comm_overlap_cfg.overlap_p2p_comm = True\n        comm_overlap_cfg.batch_p2p_comm = False\n    else:\n        comm_overlap_cfg.overlap_p2p_comm = False\n        comm_overlap_cfg.batch_p2p_comm = True\n```\n\nDP overlap defaults:\n\n```572:579:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fcomm_overlap.py\nif self.data_parallel_size > 1:\n    comm_overlap_cfg.bucket_size = 128 * 1024 * 1024\n    comm_overlap_cfg.overlap_grad_reduce = True\n    comm_overlap_cfg.overlap_param_gather = True\n```\n\nLaunch-time env tuning:\n\n```570:609:src\u002Fmegatron\u002Fbridge\u002Frecipes\u002Frun_plugins.py\nexecutor.env_vars[\"CUDA_DEVICE_MAX_CONNECTIONS\"] = str(cuda_device_max_connections)\n...\nexecutor.env_vars[\"NVTE_FWD_LAYERNORM_SM_MARGIN\"] = str(self.layernorm_sm_margin)\nexecutor.env_vars[\"NVTE_BWD_LAYERNORM_SM_MARGIN\"] = str(self.layernorm_sm_margin)\n```\n\n## Pitfalls\n\n1. TP overlap silently disables itself if `sequence_parallel=False` or Transformer Engine is unavailable.\n2. PP overlap is not enabled for all PP cases. Bridge only auto-selects `overlap_p2p_comm=True` when `PP > 1` and `VPP > 1`.\n3. `bucket_size` is a parameter-count knob, not a byte-size knob.\n4. `grad_reduce_in_fp32` and `fp8_param_gather` should be set through mixed precision, not as standalone DDP tuning first.\n5. `CUDA_DEVICE_MAX_CONNECTIONS` and LayerNorm SM margin are launch-time plugin settings, not `CommOverlapConfig` fields.\n\n## Verification\n\nUse the checked-in overlap unit coverage first:\n\n```bash\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Ftest_comm_overlap.py -q\n```\n\nOptional second check if `nemo_run` is available:\n\n```bash\nuv run python -m pytest tests\u002Funit_tests\u002Frecipes\u002Ftest_run_plugins.py -q\n```\n\nSuccess criteria:\n\n- first command reports `26 passed`\n- second command validates plugin-owned env wiring when not skipped\n","# TP \u002F DP \u002F PP Communication Overlap Skill\n\nFor stable background and recommendation level, see:\n\n- @docs\u002Ftraining\u002Fcommunication-overlap.md\n\n## Enablement\n\nMinimal Bridge override:\n\n```python\nfrom megatron.bridge.training.comm_overlap import CommOverlapConfig\n\ncfg.model.tensor_model_parallel_size = 4\ncfg.model.sequence_parallel = True\ncfg.model.pipeline_model_parallel_size = 4\ncfg.model.virtual_pipeline_model_parallel_size = 2\n\ncfg.comm_overlap = CommOverlapConfig(\n    tp_comm_overlap=True,\n)\n\ncfg.ddp.use_distributed_optimizer = True\ncfg.ddp.overlap_grad_reduce = True\ncfg.ddp.overlap_param_gather = True\n```\n\nOptional TP preset:\n\n```python\nfrom megatron.bridge.training.comm_overlap import userbuffers_bf16_h100_h12288_tp4_mbs1_seqlen2048\n\ncfg.comm_overlap.tp_comm_overlap_cfg = userbuffers_bf16_h100_h12288_tp4_mbs1_seqlen2048\n```\n\nPrecision knobs belong to mixed precision:\n\n```python\ncfg.mixed_precision.grad_reduce_in_fp32 = False\ncfg.mixed_precision.fp8_param_gather = False\n```\n\n## Code Anchors\n\nBridge overlap gating:\n\n```439:449:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fcomm_overlap.py\nif self.user_comm_overlap_cfg.tp_comm_overlap is True:\n    if model_cfg.tensor_model_parallel_size \u003C 2:\n        ...\n    elif not model_cfg.sequence_parallel:\n        ...\n    elif not HAVE_TE:\n        ...\n```\n\nPP overlap selection:\n\n```451:458:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fcomm_overlap.py\nif model_cfg.pipeline_model_parallel_size > 1:\n    if vp_size > 1:\n        comm_overlap_cfg.overlap_p2p_comm = True\n        comm_overlap_cfg.batch_p2p_comm = False\n    else:\n        comm_overlap_cfg.overlap_p2p_comm = False\n        comm_overlap_cfg.batch_p2p_comm = True\n```\n\nDP overlap defaults:\n\n```572:579:src\u002Fmegatron\u002Fbridge\u002Ftraining\u002Fcomm_overlap.py\nif self.data_parallel_size > 1:\n    comm_overlap_cfg.bucket_size = 128 * 1024 * 1024\n    comm_overlap_cfg.overlap_grad_reduce = True\n    comm_overlap_cfg.overlap_param_gather = True\n```\n\nLaunch-time env tuning:\n\n```570:609:src\u002Fmegatron\u002Fbridge\u002Frecipes\u002Frun_plugins.py\nexecutor.env_vars[\"CUDA_DEVICE_MAX_CONNECTIONS\"] = str(cuda_device_max_connections)\n...\nexecutor.env_vars[\"NVTE_FWD_LAYERNORM_SM_MARGIN\"] = str(self.layernorm_sm_margin)\nexecutor.env_vars[\"NVTE_BWD_LAYERNORM_SM_MARGIN\"] = str(self.layernorm_sm_margin)\n```\n\n## Pitfalls\n\n1. TP overlap silently disables itself if `sequence_parallel=False` or Transformer Engine is unavailable.\n2. PP overlap is not enabled for all PP cases. Bridge only auto-selects `overlap_p2p_comm=True` when `PP > 1` and `VPP > 1`.\n3. `bucket_size` is a parameter-count knob, not a byte-size knob.\n4. `grad_reduce_in_fp32` and `fp8_param_gather` should be set through mixed precision, not as standalone DDP tuning first.\n5. `CUDA_DEVICE_MAX_CONNECTIONS` and LayerNorm SM margin are launch-time plugin settings, not `CommOverlapConfig` fields.\n\n## Verification\n\nUse the checked-in overlap unit coverage first:\n\n```bash\nuv run python -m pytest tests\u002Funit_tests\u002Ftraining\u002Ftest_comm_overlap.py -q\n```\n\nOptional second check if `nemo_run` is available:\n\n```bash\nuv run python -m pytest tests\u002Funit_tests\u002Frecipes\u002Ftest_run_plugins.py -q\n```\n\nSuccess criteria:\n\n- first command reports `26 passed`\n- second command validates plugin-owned env wiring when not skipped\n",{"name":5,"license":14,"description":7,"when_to_use":23},"Enabling TP\u002FDP\u002FPP comm overlap, or tracing a throughput regression to a comm overlap config change; 'overlap_param_gather', 'overlap_grad_reduce', 'sequence-parallel overlap', 'TP overlap', 'DP overlap', 'comm overlap'.","main","fc4f2c7759ae400c66cd38656db70ead882a0d08","catalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent#readme","https:\u002F\u002Fgithub.com\u002Fmatheussluzz","2026-08-27 05:21:51",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add matheussluzz\u002FZeuZ-Agent --skill nemo-mbridge-perf-tp-dp-comm-overlap",{"tool":37,"command":38},"bunx","bunx skills add matheussluzz\u002FZeuZ-Agent --skill nemo-mbridge-perf-tp-dp-comm-overlap",{"tool":40,"command":41},"pnpm","pnpm dlx skills add matheussluzz\u002FZeuZ-Agent --skill nemo-mbridge-perf-tp-dp-comm-overlap","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FSKILL.md",true,[45,51,55,59,65],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"BENCHMARK.md","REFERENCE","参考文档",4371,"https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FBENCHMARK.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"card.yaml",2103,"https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fcard.yaml",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"skill-card.md",3817,"https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fskill-card.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"skill.oms.sig","OTHER","其他",4833,"https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fskill.oms.sig",{"path":66,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":67,"sourceHtmlUrl":68},"zeuz.manifest.yaml",172,"https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fcatalog\u002Fbundles\u002Fnvidia\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fzeuz.manifest.yaml",[70,78,85,92,99,106],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M78JQ2R0QR8H2Z6662RFX804","gamma","Fixture skill gamma for discovery benchmarks.","MIT","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-registry-mini\u002Fskills\u002Fgamma\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M78JQ1KCVZ15APZG3FFF29K0","beta","Fixture skill beta for discovery benchmarks.","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-registry-mini\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M78JQ0FJTK4Q9JKZMX9SVSEN","alpha","Fixture skill alpha for discovery benchmarks.","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskill-registry-mini\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M78JPYVYPY7R8QS10KADQPWE","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M78JPVYHB88RF5ATZVGX84RR","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M78JPSSWNTZW89DWGJTX7716","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fmatheussluzz\u002FZeuZ-Agent\u002Fblob\u002Fmain\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]