nemo-mbridge-perf-moe-optimization-workflow
Evidence-gated workflow for MoE performance optimization in Megatron Bridge.
Skill by NVIDIA
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nvidia-nemo-mbridge-perf-moe-optimization-workflow
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nemo-mbridge-perf-moe-optimization-workflow
What's inside
- Skill name
nemo-mbridge-perf-moe-optimization-workflow- Description
- Evidence-gated workflow for MoE performance optimization in Megatron Bridge. Covers measurement contracts, the Three Walls framework, parallel folding, profiling, matched A/B tuning, and final validation.
- License
- Apache-2.0
- Instructions
- 285 lines in SKILL.md · view on GitHub
Files (6)
- BENCHMARK.md
- SKILL.md
- card.yaml
- evals.json · evals/
- skill-card.md
- skill.oms.sig
SKILL.md (first lines)
# MoE Training Optimization Workflow Stable docs: @docs/training/moe-optimization.md Card: @skills/nemo-mbridge-perf-moe-optimization-workflow/card.yaml Source: [Scalable Training of MoE Models with Megatron Core](https://arxiv.org/abs/2603.07685) ## Quick Reference Start with the paper's Three Walls: - memory wall - communication wall - compute-efficiency wall For operational diagnosis, split the compute-efficiency wall into **compute** and **host/launch** bottlenecks. They need different evidence and different fixes. MoE tuning is iterative, so use this order: ```text freeze the measurement contract -> fit -> scale -> profile -> retune -> validate ``` ## First Answer Checklist For MoE optimization workflow prompts, present the response in this order: 1. **Freeze the measurement contract**: record the exact model and task, hardware and topology, container and commits, data and routing semantics, precision, sequence and batch shape, parallelism, graph scopes, and the steady-state metric window. Label each candidate as training-equivalent or benchmark-only. 2. **Fit**: make the model memory-feasible first. Use the smallest model parallelism that fits, prefer selective recompute before full recompute, add offloading only after recompute and parallelism are insufficient, and use `--fake-init-process-group` to sanity-check large layouts. 3. **Scale**: maximize DP after the model fits, keep hot communication inside the fastest interconnect, use PP plus VPP for multi-node scaling, prefer EP over extra TP for expert layers, and add CP when long context makes attention memory dominant. 4. **Profile**: identify the dominant wall: memory, communication, host overhead, or compute. 5. **Retune**: change one variable at a time based on the profiled bottleneck. Dispatcher, overlap, lower precision, CUDA graphs, and recompute are candidates, not hardware defaults. 6. **Validate**: use short matched screens to reject candidates, then run the winner for at least 50 steps. Verify the requested backend or graph replay actually ran, time a declared post-warmup window, and report loss health, skipped/NaN iterations, memory, step time, and model TFLOPS/GPU. 7. Include the exact Parallel Folding meshes: `Attention: TP x CP x DP x PP` and `MoE: ETP x EP x EDP x PP`. 8. Use `alltoall` for safe bring-up, then A/B `flex` + `deepep` and `flex` + `hybridep` when their packages and target topology support them. Start from BF16 and eager execution; introduce lower precision or the narrowest useful CUDA-graph scope only after profiling justifies it. ## Phase 0: Freeze The Measurement Contract A comparison is valid only when the following stay fixed unless they are the single variable under test: - Bridge, MCore, Transformer Engine, container, CUDA, and NCCL versions - GPU count, SKU, node topology, and launcher/environment settings - model, task, data path, sequence length, MBS, GBS, and optimizer settings - TP, PP, VPP, CP, EP, ETP, and DP layout - routing semantics, precision, recompute, dispatcher, overlap, and graph scope - warmup and steady-state timing windows Separate two acceptance classes: - **Training-equivalent** changes preserve the intended routing, loss, data, optimizer, and checkpoint/resume behavior. - **Benchmark-only** changes such as forced load balancing are useful for controlled kernel studies, but cannot establish production-training correctness or convergence. ## Phase 1: Make The Run Memory-Feasible Start with a configuration that fits reliably before chasing throughput. Recommended order: 1. Use the smallest amount of model parallelism that still fits. 2. Turn on selective recompute before falling back to full recompute. 3. Add offloading only when recompute and parallelism are still insufficient. 4. Use `--fake-init-process-group` to sanity-check large parallel layouts on a single GPU before burning cluster time. ### Recompute guidance Prefer selective recompute for MoE runs: - good first choices: `layernorm`, `core_attn`, `moe_act`, `mlp`, or model-specific modules (`shared_experts`, `mla_up_proj`) - use full recompute only when the run still does not fit - revisit recompute after enabling CUDA graphs, because some graph scopes and full recompute paths do not mix well As a rule of thumb, fine-grained recompute often recovers most of the needed memory while keeping throughput much closer to the non-recompute baseline than full-layer recompute does. ## Phase 2: Choose Parallelism For Scale Priority order: 1. Maximize DP once the model fits. 2. Keep the hot communication path inside the fast interconnect when possible. 3. Use PP, plus VPP if needed, for multi-node scaling. 4. Prefer EP over extra TP for expert layers. 5. Add CP for long context once sequence length makes attention memory dominant. ### Parallel Folding Parallel Folding decouples attention and MoE parallelism so you do not have to pick a single compromise layout: ```text Attention: TP × CP × DP × PP MoE: ETP × EP × EDP × PP
From NVIDIA/skills, Apache-2.0.
More from NVIDIA/skills
- 0.846score
nemo-fabric-integrate
NVIDIA Corporation and Affiliates
Use this skill when integrating NVIDIA NeMo Fabric into a consumer application, service, evaluation harness, or platform through the typed Python SDK —…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-pipeline
Vinit Bansal <vinitkumarb@nvidia.com>
Use when planning, executing, and independently validating Jetson Video Codec SDK or PyNvVideoCodec encode/decode, transcode, segmentation, container decode…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-convert-pytorch
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Convert existing plain or manual PyTorch training code into an NVFLARE federated job using Client API model exchange, local validation, and job export; use…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nemo-relay-get-started
NVIDIA Corporation and Affiliates
Use this skill when first-time NeMo Relay users want help selecting and following an appropriate quick-start guide or verifying their first working integration.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-recipe
Vinit Bansal <vinitkumarb@nvidia.com>
Use when turning a Jetson encoder use case into one surface-neutral recipe with native Video Codec SDK and PyNvVideoCodec projections.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvidia-broadcast
NVIDIA Broadcast Team <broadcast-skills-dev@nvidia.com>
Use when controlling NVIDIA Broadcast through MCP to apply effects, process local media, select devices, or change camera resolution, or when Broadcast is…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-setup
Vinit Bansal <vinitkumarb@nvidia.com>
Use when installing, repairing, reusing, inspecting, or verifying readiness of the native NVIDIA Video Codec SDK or PyNvVideoCodec on Jetson, including the…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-diagnose-job
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Use when the user asks why a reported NVFLARE job failure signal occurred: the job failed, stalled, timed out, lost clients, ended with EXECUTION_EXCEPTION…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-convert-lightning
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Convert existing PyTorch Lightning training code into an NVFLARE federated job using the Lightning Client API patch, local validation, and job export; use…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nemo-relay-install
NVIDIA Corporation and Affiliates
Use this skill when choosing or running NeMo Relay installation for an agent runtime, application language, framework integration, or plugin bundle, or…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-fed-stats
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Compute federated statistics over tabular data (count, sum, mean, stddev, var, histogram, quantile, noise-protected min/max) and image data (count…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-capability
Vinit Bansal <vinitkumarb@nvidia.com>
Use when Jetson codec, profile, chroma, bit-depth, dimension, engine-count, or operational support must be reconciled from live APIs, authenticated NVIDIA…
SkillAFreshness: A★ 3.7KClaude Code +9
Signals
- Stars
- 3,718
- Forks
- 457
- Open issues
- 8
- Last commit (this folder)
- Aug 11, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/NVIDIA/skills
- Website
- docs.nvidia.com/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NVIDIA
- 0.745score
cdf-video-data-augmentation
NVIDIA
Run the CDF Video Data Augmentation Airflow workflow on Kubernetes or OSMO to create Cosmos video-to-video variants and auto-label both source and generated…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.745score
nvidia-skill-finder
NVIDIA
Use for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.745score
cdf-image-attribute-augmentation
NVIDIA
Run the CDF Orchestration Image Attribute Augmentation DAG on Kubernetes - person-crop clothing augmentation, attribute search, and augmented dataset…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.745score
cdf-orchestration-preflight
NVIDIA
Set up missing Linux prerequisites and audit whether a Cosmos Data Factory (CDF) Orchestration checkout and its Kubernetes or OSMO environment are ready to…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.745score
ethos-write
NVIDIA
Writes an AI agent's ethos.md — a durable snapshot of its purpose, intended behavior, boundaries, and success criteria — from the answers gathered by…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.745score
cdf-autonomous-vehicle-dataset-generation
NVIDIA
Prepare payloads, run and monitor the Autonomous Vehicle Dataset Generation Airflow workflow, and inspect results for driving-clip retrieval and Cosmos3-Nano…
SkillAFreshness: A★ 3.7KClaude Code +9
Cite this page
nemo-mbridge-perf-moe-optimization-workflow skill. Agent Mart. https://agentmart.dev/skills/nvidia-nemo-mbridge-perf-moe-optimization-workflow (last updated 2026-10-24)