Dev & Engineering ✓ NVIDIA · Official megatron-fsdpmegatron-bridgedistributed-trainingdata-parallelismcheckpointingperformance-debugging

Megatron FSDP Configuration and Performance Guide

Enable, troubleshoot, and verify Megatron FSDP in Megatron-Bridge.

FollowSkills review · FSRS-2.0
Not recommended
54/ 100 5-point scale 2.7 / 5
Trust17 / 25 · 3.4/5

The material only guides configuration and distributed-training execution; there is no evidence of malware, credential handling, covert exfiltration, or destructive defaults. Scope and checkpoint behavior are reasonably transparent and a verification command is provided. Points are deducted because user confirmation, permission isolation, sensitive-data handling, rollback/recovery, and safeguards for substantial compute and checkpoint side effects are not specified.

Reliability8 / 20 · 2.0/5

Configuration knobs, incompatibilities, code anchors, pitfalls, and the 2-GPU smoke-test path are broadly consistent, with some limitations documented. Points are deducted for incomplete dependency versions, environment prerequisites, failure diagnosis, and abnormal-input handling. Static review cannot establish reproducibility, so the score remains at or below 10.

Adaptability11 / 15 · 3.7/5

The audience, FSDP enablement use case, OOM/regression diagnosis scenario, and trigger terms are clear, and limitations involving FSDP2, TP/PP/CP, and CPU offload are stated. Points are deducted because non-fit boundaries, input/output contracts, and environment matrices are incomplete, with no Chinese-language support guidance. The core function does not depend entirely on overseas services, so no additional mainland-network deduction is applied.

Convention8 / 15 · 2.7/5

The SKILL.md is readable and includes enablement examples, code anchors, pitfalls, and verification. License, NVIDIA ownership, validation/version information, and follow-up items are available in companion files. Points are deducted for missing recommended Instructions and Examples sections, absent installation/dependency notes, missing author and tags metadata, incomplete changelog information, and no clearly defined skill-level maintenance/update path.

Effectiveness6 / 15 · 2.0/5

The examples directly provide the essential configuration, checkpoint format, performance entry point, and success criteria, covering the core evaluation task. The supplied evaluation report also indicates useful positive-task correctness and effectiveness. Points are deducted because only one task was evaluated, performance benefits are marked doc_only, and compatibility across parallelism combinations still requires user-side validation; therefore the static score does not exceed 7.

Verifiability4 / 10 · 2.0/5

Concrete source paths, configuration anchors, a functional-test path, a card.yaml evidence list, and an evaluation report provide some auditability. Points are deducted because the supplied material lacks independently reviewable test logs or complete CI coverage; the card's live-validation statements are report-level claims, and performance claims are explicitly documentation-only. The score therefore does not exceed 5.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 55f18499943e
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • When checkpoint saving or loading is enabled, confirm fsdp_dtensor and validate the target branch's configuration constraints first.
  • Do not enable Megatron FSDP and Torch FSDP2 together; use_tp_pp_dp_mapping and several TP/PP/CP/EP combinations require separate validation.
  • The smoke-test command depends on two CUDA GPUs, uv, a PyTorch distributed environment, and project test dependencies; this review did not execute it.
  • No independently reproducible performance data is supplied, so actual speedup or memory savings should not be inferred from this skill alone.
See the full review method →

What does this skill do, and when should you use it?

This skill is for developers using Megatron FSDP data parallelism in Megatron-Bridge. It provides the required configuration overrides, code anchors, performance-harness entry point, known pitfalls, and a two-GPU functional verification command. It focuses on checkpoint format requirements, mutual exclusion with FSDP2, and configuration changes that may cause OOMs or regressions. It is most useful when moving from DDP to FSDP or investigating an FSDP-related failure.

It directs users to set use_megatron_fsdp, data_parallel_sharding_strategy, average_in_collective, and fsdp_dtensor-related settings; supplies a recipe fixup and performance-harness command; identifies the source locations for configuration definitions, validation logic, runtime data-parallel wrapper selection, and performance overrides; documents constraints involving CPU offloading, TP/CP, and CUDA_DEVICE_MAX_CONNECTIONS; and provides a two-GPU pytest smoke test with success criteria of one passing test, finite final-iteration loss, and no checkpoint-format assertion.

  1. An engineer needs to switch Megatron-Bridge training from DDP to Megatron FSDP.
  2. A developer is investigating an OOM, regression, or checkpoint failure after enabling FSDP.
  3. A training maintainer needs to confirm that fsdp_dtensor checkpoint settings are correct.
  4. A code reviewer needs anchors for Megatron-Bridge FSDP configuration, validation, or runtime wrapper selection.
  5. An engineer needs to run the basic FSDP training smoke test on two GPUs.

What are this skill's strengths and limitations?

Pros
  • Provides copyable minimal configuration and recipe examples.
  • Covers configuration, runtime selection, performance overrides, pitfalls, and verification.
  • Clearly states that Megatron FSDP requires the fsdp_dtensor checkpoint format.
  • Includes an existing two-GPU functional smoke-test command.
Limitations
  • It focuses on Megatron-Bridge Megatron FSDP rather than serving as a general FSDP tutorial.
  • It does not provide complete setup instructions for Megatron-Bridge, CUDA, or the GPU environment.
  • It does not specify validated GPU models, software versions, or a full platform matrix.
  • FSDP2 may fail before training on the referenced branch because of the pg_collection argument; the skill does not implement a fix.

How do you install this skill?

Install the specific skill through the skills CLI used by the NVIDIA/skills repository:

npx skills add nvidia/skills --skill nemo-mbridge-perf-megatron-fsdp --yes

The README does not document the exact installation directory; the CLI handles the destination. The skill becomes available after the agent reloads its skills.

How do you use this skill?

Ask the agent for a Megatron FSDP task, for example: “Enable Megatron FSDP in Megatron-Bridge and check the checkpoint format and verification test.” The documented trigger terms include use_megatron_fsdp, data_parallel_sharding_strategy, sharded data parallel, and Megatron FSDP. The guide recommends setting cfg.dist.use_megatron_fsdp and cfg.ddp.use_megatron_fsdp to true, using optim_grads_params for data_parallel_sharding_strategy, setting average_in_collective to false, and selecting fsdp_dtensor for checkpoint.ckpt_format. The verification command is:

CUDA_VISIBLE_DEVICES=0,1 uv run python -m torch.distributed.run --nproc_per_node=2 -m pytest tests/functional_tests/training/test_megatron_fsdp.py::TestMegatronFSDP::test_fsdp_pretrain_basic -v -s

How does this skill compare with similar options?

The guide explicitly distinguishes Megatron FSDP from DDP and torch FSDP2: runtime selection chooses different data-parallel wrappers for them. Megatron FSDP and FSDP2 are mutually exclusive, and FSDP2 is currently not working with pipeline parallelism. The source provides no benchmark proving that one option is universally faster than the others.

FAQ

Does this skill require payment?
The source does not mention pricing. The README says NVIDIA skills can be installed through the npx skills CLI.
Can Megatron FSDP use torch_dist checkpoints?
No. The guide states that Megatron FSDP supports the fsdp_dtensor checkpoint format. Public recipes may expose use_megatron_fsdp while still defaulting to torch_dist.
Can Megatron FSDP and FSDP2 be enabled together?
No. Configuration validation rejects enabling use_megatron_fsdp and use_torch_fsdp2 at the same time.
How do I know the basic verification passed?
The two-GPU pytest run should report 1 passed, show finite loss at the final iteration, and finish without a checkpoint-format assertion.

More skills from this repository

All from NVIDIA/skills

Dev & Engineering ✓ NVIDIA · Official

Megatron-Bridge Communication Overlap Guide

Configure and verify TP, DP, and PP communication overlap in Megatron-Bridge training.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Training Resiliency

Configure fault recovery and hang detection for Megatron Bridge distributed training.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge GPU Memory Tuning

Diagnose GPU OOMs in Megatron Bridge training and reduce fragmentation, activation, and PEFT memory usage.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Parallelism Strategy Guide

Choose, combine, and validate Megatron Bridge parallelism configurations.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge MoE Expert-Parallel Overlap

Configure, validate, and troubleshoot MoE expert-parallel communication overlap in Megatron-Bridge.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge CUDA Graphs

Configure, validate, and benchmark CUDA Graph capture in Megatron Bridge to reduce host-driver overhead.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Recipe Recommender

Recommends adjustable Megatron Bridge recipes for your model, GPU budget, and training goal.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Hierarchical Context Parallelism

Enable, troubleshoot, and verify hierarchical context parallelism in Megatron-Bridge.

Dev & Engineering ✓ NVIDIA · Official

Megatron Bridge Activation Recompute

Trade extra compute for lower GPU activation memory in Megatron Bridge training.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge CPU Offload

Configure, validate, and troubleshoot CPU offloading in Megatron Bridge to relieve GPU memory pressure.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge MoE Performance Workflow

Systematically diagnose and improve MoE training throughput in Megatron Bridge.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Training Guide

Run Megatron-LM and Megatron Bridge training and verify whether their loss curves match.

Dev & Engineering ✓ NVIDIA · Official

NeMo AutoModel Recipe Development

Build, modify, and validate NeMo AutoModel training and evaluation recipes.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge MoE VLM Training Guide

Guides FSDP and 3D-parallel choices and tuning for MoE vision-language model training.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Long-Context MoE Training

Practical Megatron Bridge guidance for sizing parallelism, managing memory, and preserving throughput in long-context MoE training.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Sequence Packing

Configure and validate sequence packing and long-context training in Megatron-Bridge.

Dev & Engineering ✓ NVIDIA · Official

NeMo AutoModel Distributed Training

Choose and configure multi-GPU and multi-node training strategies for NeMo AutoModel.

Automation & Ops ✓ NVIDIA · Official

Megatron-LM on SLURM

Launch, monitor, and troubleshoot multi-node Megatron-LM training on SLURM GPU clusters.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge MoE Communication Overlap

Tune expert-parallel communication and computation overlap in Megatron Bridge.

Dev & Engineering ✓ NVIDIA · Official

DALI Dynamic Mode Assistant

Helps agents write, review, and migrate NVIDIA DALI imperative dynamic-mode code.

Related skills