[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7880RQD4MM76RBRAM9AK4YN":3,"skill-same:01M7880RQD4MM76RBRAM9AK4YN":69},{"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":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7880RQD4MM76RBRAM9AK4YN","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.","Solizardking\u002Ftrain2earn","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786KDC5C3NPE4W44C5641EZ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\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","86cc27ffd16af6cb85948f1155578e6f3f61cc4c","skillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 11:52:53",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Solizardking\u002Ftrain2earn --skill nemo-mbridge-perf-moe-long-context",{"tool":39,"command":40},"bunx","bunx skills add Solizardking\u002Ftrain2earn --skill nemo-mbridge-perf-moe-long-context",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Solizardking\u002Ftrain2earn --skill nemo-mbridge-perf-moe-long-context","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context\u002FSKILL.md",true,[47,53,57,61,65],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"BENCHMARK.md","REFERENCE","参考文档",4357,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context\u002FBENCHMARK.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"card.yaml",3531,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context\u002Fcard.yaml",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"metadata.json",448,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context\u002Fmetadata.json",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"skill-card.md",3922,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context\u002Fskill-card.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"verification.json",1601,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fpublic\u002Fapi\u002Fskills\u002Fnvidia\u002Fnemo-mbridge-perf-moe-long-context\u002Fverification.json",[70,78,86,94,101,109],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M78B94RSCAKMH1QS79VE6DG9","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M78B81BKY8RX12HETPG8YKWK","qedgen","Formally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions \"qedgen\", \"lean proof\", \"formal proof\", \"verify my code\", \"prove correctness\", \"formal verification\", or wants mathematical guarantees about their implementation.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-formal-verification\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78B7Q7C5K54E01DN83A60KG","solana-dev","Use when user asks to \"build a Solana dapp\", \"write an Anchor program\", \"create a token\", \"debug Solana errors\", \"set up wallet connection\", \"test my Solana program\", \"deploy to devnet\", or \"explain Solana concepts\" (rent, accounts, PDAs, CPIs, etc.). Also use for quick on-chain lookups via public RPC + curl — \"what's the balance of \u003Cwallet>\", \"look up transaction \u003Csig>\", \"token balance for \u003Caccount>\", \"check this address on mainnet\u002Fdevnet\". End-to-end Solana development playbook covering wallet connection, Anchor\u002FPinocchio programs, Codama client generation, LiteSVM\u002FMollusk\u002FSurfpool testing, security checklists, and JSON-RPC curl lookups against public clusters. Integrates with the Solana MCP server for live documentation search. Prefers framework-kit (@solana\u002Fclient + @solana\u002Freact-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana\u002Fkit for client\u002FRPC code, and @solana\u002Fweb3-compat for legacy boundaries.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-dev\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M78B7HXD6N6GWKSVRQ8F6Q31","solana-common-errors","Diagnose and fix common Solana development errors — GLIBC mismatches, Anchor version conflicts, cargo build-sbf \u002F platform-tools failures, LiteSVM issues, edition2024 crate pins, RPC airdrops, and Anchor 0.29→0.32 migrations. Use when builds fail, Anchor CLI won't install, or CI breaks on Debian\u002FUbuntu.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fsolana-common-errors\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M78B6T7YSYWQ0N4DP40QDXEZ","skill-creator","Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fskill-creator\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":74,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M78B1VFT9X5AND7AE1HZPZGF","phantom-wallet-mcp","Execute wallet operations through the Phantom MCP server. Use when the user wants to interact with their Phantom wallet directly — get addresses, transfer SOL or SPL tokens, buy\u002Fswap tokens, sign transactions, and sign messages across Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom\u002Fmcp-server to be configured as an MCP server.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Ftrain2earn\u002Fblob\u002Fmain\u002Fskillhub\u002Fskills\u002Fphantom-wallet-mcp\u002FSKILL.md",[],[]]