[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSN5X0CN5JPV3KMDZQZPRD":3,"skill-same:01M7CSN5X0CN5JPV3KMDZQZPRD":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},"01M7CSN5X0CN5JPV3KMDZQZPRD","nemo-mbridge-perf-moe-long-context",null,"Long-context MoE training guidance for Megatron Bridge. Covers CP sizing, selective recompute, dispatcher choices, and practical patterns from DSV3, Qwen3, and Qwen3-Next long-context experiments.","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-moe-long-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nemo-mbridge-perf-moe-long-context\ndescription: Long-context MoE training guidance for Megatron Bridge. Covers CP sizing, selective recompute, dispatcher choices, and practical patterns from DSV3, Qwen3, and Qwen3-Next long-context experiments.\nlicense: Apache-2.0\nwhen_to_use: Training MoE at long sequence lengths, or investigating a commit that caused long-context MoE OOM or degraded throughput; 'long context MoE', '128k tokens', 'CP sizing for long sequences', 'selective recompute long context', 'MoE long-context OOM'.\n---\n\n# MoE Long-Context Training\n\nStable docs: @docs\u002Ftraining\u002Fmoe-optimization.md\nCard: @skills\u002Fnemo-mbridge-perf-moe-long-context\u002Fcard.yaml\n\n## What Changes At Long Context\n\nOnce sequence length moves well past the 4K-class regime, attention memory and\nactivation residency become the dominant constraints. For MoE models, that\nusually means you need some combination of:\n\n- context parallelism\n- selective recompute\n- lower precision\n- CPU offload for optimizer state\n- a dispatcher and PP layout that do not waste the smaller remaining DP budget\n\n## Rounded Scaling Patterns\n\n### DSV3 on H100\n\nThe DSV3 long-context runs show a stable pattern:\n\n- selective recompute works better than full recompute once you move past the\n  shortest contexts\n- throughput stays in a fairly narrow band from mid-length through very long\n  contexts if CP is increased appropriately\n- the trade shifts from \"memory fit\" to \"GPU-count feasibility\" as CP grows\n\nIn other words, long context does not immediately collapse utilization if the\nlayout is chosen well, but it does consume the DP budget very quickly.\n\n### Qwen3-Next on GB200\n\nQwen3-Next behaves more like a memory-sensitive medium-scale model:\n\n- 8K and 32K remain practical with moderate CP\n- 64K is possible, but the throughput drop is noticeable and memory becomes\n  much tighter\n- pipeline layout and grouped-GEMM improvements matter almost as much as CP\n\n### Qwen3 235B on GB200\n\nQwen3 235B shows that long context can still be efficient on NVL72 systems when\nTP, CP, and HybridEP are coordinated. The best 128K-class configurations are\nnot just \"fit-only\" recipes; they can remain highly efficient if routing,\nparallelism, and recompute are balanced.\n\n## CP Sizing Rules Of Thumb\n\n1. **Start from a 4K shard target**: a good first guess is\n   `CP ~= seq_len \u002F 4096`, then round to a practical power-of-two layout.\n\n2. **Keep DP alive if possible**: long-context scaling becomes brittle once CP,\n   EP, TP, and PP together squeeze DP down to the floor.\n\n3. **Prefer selective recompute**: recompute modules such as `up_proj`, `norm`,\n   `moe`, `moe_act`, or `mlp` before reaching for full recompute.\n\n4. **Avoid SDPA-heavy recompute at very long context**: recomputing attention\n   internals can add a lot of work for less memory benefit than recomputing\n   smaller MoE and MLP-side modules.\n\n5. **Use TP as another lever on NVL72 systems**: GB200 and GB300 runs can\n   sometimes trade some CP for TP while still staying efficient.\n\n6. **Assume GBS will need to shrink**: as CP rises and DP falls, you may need\n   to reduce global batch size or accept higher GA.\n\n## Representative Config Families\n\n### DSV3 at 128K on H100\n\n```text\nTP=1  CP=32  EP=32  PP=8  VPP=4\nPrecision: FP8-class\nDispatcher: DeepEP\nRecompute: up_proj, norm, moe, mlp\nExtra memory help: optimizer CPU offload\n```\n\n### DSV3 at 256K on H100\n\n```text\nTP=1  CP=64  EP=32  PP=8  EDP=2  VPP=4\nPrecision: FP8-class\nDispatcher: DeepEP\nRecompute: up_proj, norm, moe, mlp\nExtra memory help: optimizer CPU offload\n```\n\n### Qwen3 235B at 128K on GB200\n\n```text\nTP=4  CP=4  EP=32  PP=4  VPP=12\nPrecision: BF16 or MXFP8\nDispatcher: HybridEP\nRecompute: moe_act, norm\nCUDA Graph: attn + moe_router + moe_preprocess\n```\n\n## Recompute And CUDA Graph Guidance\n\nFor long-context MoE training:\n\n- start with selective recompute\n- add CUDA graphs only after the shapes and routing path are stable\n- keep sequence length and MBS fixed when using CUDA graphs\n- if the run depends on highly dynamic batches, prefer eager execution\n\nUseful references:\n\n- @docs\u002Ftraining\u002Factivation-recomputation.md\n- @skills\u002Fnemo-mbridge-perf-cuda-graphs\u002FSKILL.md\n\n## Pitfalls\n\n1. **CP does not replace EP or PP**: it adds another dimension; it does not make\n   the others disappear.\n\n2. **A good 4K baseline can still be a bad long-context baseline**: routing mode,\n   recompute choice, and offload strategy often need to change.\n\n3. **GPU-count feasibility becomes the real constraint**: very long context can\n   look fine in a single recipe, then become impossible once EP and PP are added\n   honestly across the full model.\n\n4. **CUDA graphs need static shapes**: variable-length batches and opportunistic\n   padding strategies can silently break the path.\n\n5. **Container and kernel support matters more at 128K+**: long-context paths\n   tend to rely on newer kernels and bug fixes than short-context bring-up does.\n","# MoE Long-Context Training\n\nStable docs: @docs\u002Ftraining\u002Fmoe-optimization.md\nCard: @skills\u002Fnemo-mbridge-perf-moe-long-context\u002Fcard.yaml\n\n## What Changes At Long Context\n\nOnce sequence length moves well past the 4K-class regime, attention memory and\nactivation residency become the dominant constraints. For MoE models, that\nusually means you need some combination of:\n\n- context parallelism\n- selective recompute\n- lower precision\n- CPU offload for optimizer state\n- a dispatcher and PP layout that do not waste the smaller remaining DP budget\n\n## Rounded Scaling Patterns\n\n### DSV3 on H100\n\nThe DSV3 long-context runs show a stable pattern:\n\n- selective recompute works better than full recompute once you move past the\n  shortest contexts\n- throughput stays in a fairly narrow band from mid-length through very long\n  contexts if CP is increased appropriately\n- the trade shifts from \"memory fit\" to \"GPU-count feasibility\" as CP grows\n\nIn other words, long context does not immediately collapse utilization if the\nlayout is chosen well, but it does consume the DP budget very quickly.\n\n### Qwen3-Next on GB200\n\nQwen3-Next behaves more like a memory-sensitive medium-scale model:\n\n- 8K and 32K remain practical with moderate CP\n- 64K is possible, but the throughput drop is noticeable and memory becomes\n  much tighter\n- pipeline layout and grouped-GEMM improvements matter almost as much as CP\n\n### Qwen3 235B on GB200\n\nQwen3 235B shows that long context can still be efficient on NVL72 systems when\nTP, CP, and HybridEP are coordinated. The best 128K-class configurations are\nnot just \"fit-only\" recipes; they can remain highly efficient if routing,\nparallelism, and recompute are balanced.\n\n## CP Sizing Rules Of Thumb\n\n1. **Start from a 4K shard target**: a good first guess is\n   `CP ~= seq_len \u002F 4096`, then round to a practical power-of-two layout.\n\n2. **Keep DP alive if possible**: long-context scaling becomes brittle once CP,\n   EP, TP, and PP together squeeze DP down to the floor.\n\n3. **Prefer selective recompute**: recompute modules such as `up_proj`, `norm`,\n   `moe`, `moe_act`, or `mlp` before reaching for full recompute.\n\n4. **Avoid SDPA-heavy recompute at very long context**: recomputing attention\n   internals can add a lot of work for less memory benefit than recomputing\n   smaller MoE and MLP-side modules.\n\n5. **Use TP as another lever on NVL72 systems**: GB200 and GB300 runs can\n   sometimes trade some CP for TP while still staying efficient.\n\n6. **Assume GBS will need to shrink**: as CP rises and DP falls, you may need\n   to reduce global batch size or accept higher GA.\n\n## Representative Config Families\n\n### DSV3 at 128K on H100\n\n```text\nTP=1  CP=32  EP=32  PP=8  VPP=4\nPrecision: FP8-class\nDispatcher: DeepEP\nRecompute: up_proj, norm, moe, mlp\nExtra memory help: optimizer CPU offload\n```\n\n### DSV3 at 256K on H100\n\n```text\nTP=1  CP=64  EP=32  PP=8  EDP=2  VPP=4\nPrecision: FP8-class\nDispatcher: DeepEP\nRecompute: up_proj, norm, moe, mlp\nExtra memory help: optimizer CPU offload\n```\n\n### Qwen3 235B at 128K on GB200\n\n```text\nTP=4  CP=4  EP=32  PP=4  VPP=12\nPrecision: BF16 or MXFP8\nDispatcher: HybridEP\nRecompute: moe_act, norm\nCUDA Graph: attn + moe_router + moe_preprocess\n```\n\n## Recompute And CUDA Graph Guidance\n\nFor long-context MoE training:\n\n- start with selective recompute\n- add CUDA graphs only after the shapes and routing path are stable\n- keep sequence length and MBS fixed when using CUDA graphs\n- if the run depends on highly dynamic batches, prefer eager execution\n\nUseful references:\n\n- @docs\u002Ftraining\u002Factivation-recomputation.md\n- @skills\u002Fnemo-mbridge-perf-cuda-graphs\u002FSKILL.md\n\n## Pitfalls\n\n1. **CP does not replace EP or PP**: it adds another dimension; it does not make\n   the others disappear.\n\n2. **A good 4K baseline can still be a bad long-context baseline**: routing mode,\n   recompute choice, and offload strategy often need to change.\n\n3. **GPU-count feasibility becomes the real constraint**: very long context can\n   look fine in a single recipe, then become impossible once EP and PP are added\n   honestly across the full model.\n\n4. **CUDA graphs need static shapes**: variable-length batches and opportunistic\n   padding strategies can silently break the path.\n\n5. **Container and kernel support matters more at 128K+**: long-context paths\n   tend to rely on newer kernels and bug fixes than short-context bring-up does.\n",{"name":5,"license":15,"description":7,"when_to_use":24},"Training MoE at long sequence lengths, or investigating a commit that caused long-context MoE OOM or degraded throughput; 'long context MoE', '128k tokens', 'CP sizing for long sequences', 'selective recompute long context', 'MoE long-context OOM'.","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context",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-moe-long-context",{"tool":40,"command":41},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill nemo-mbridge-perf-moe-long-context",{"tool":43,"command":44},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill nemo-mbridge-perf-moe-long-context","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context\u002FSKILL.md",true,[48,54,58,62,66],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"BENCHMARK.md","REFERENCE","参考文档",4357,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context\u002FBENCHMARK.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"card.yaml",3531,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context\u002Fcard.yaml",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"evals\u002Fevals.json",1601,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context\u002Fevals\u002Fevals.json",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"skill-card.md",3922,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context\u002Fskill-card.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"skill.oms.sig","OTHER","其他",4829,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fnemo-mbridge-perf-moe-long-context\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",[],[]]