[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSNYMBG3SKAFZYQK0RGX3N":3,"skill-same:01M7CSNYMBG3SKAFZYQK0RGX3N":72},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CSNYMBG3SKAFZYQK0RGX3N","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.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\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":15,"description":7,"when_to_use":24},"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","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill nemo-mbridge-perf-tp-dp-comm-overlap",{"tool":40,"command":41},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill nemo-mbridge-perf-tp-dp-comm-overlap",{"tool":43,"command":44},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill nemo-mbridge-perf-tp-dp-comm-overlap","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FSKILL.md",true,[48,54,58,62,66],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"BENCHMARK.md","REFERENCE","参考文档",4371,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002FBENCHMARK.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"card.yaml",2103,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fcard.yaml",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"evals\u002Fevals.json",1439,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fevals\u002Fevals.json",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"skill-card.md",3817,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fskill-card.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"skill.oms.sig","OTHER","其他",4833,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-tp-dp-comm-overlap\u002Fskill.oms.sig",[73,81,88,95,102,109],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]