perf-megatron-fsdp

Configure and validate Megatron FSDP training in Megatron-Bridge.

852|445|Updated May 21, 2025
One-click install
npx skills add https://github.com/NVIDIA-NeMo/Megatron-Bridge --skill perf-megatron-fsdp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf-megatron-fsdp
Source: https://github.com/NVIDIA-NeMo/Megatron-Bridge/tree/main/skills/perf-megatron-fsdp
Command: npx skills add https://github.com/NVIDIA-NeMo/Megatron-Bridge --skill perf-megatron-fsdp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides guidance and configuration instructions for enabling Megatron's Fully Sharded Data Parallel (FSDP) training mode, improving scalability and memory efficiency in large model training.

Core Features & Use Cases

  • Configuration Guidance: Instructions for setting up Megatron FSDP in Megatron-Bridge, including code snippets and validation steps.
  • Compatibility and Pitfalls: Highlights common issues, constraints, and pitfalls when deploying FSDP, ensuring reliable training.
  • Verification Procedures: Outlines testing and validation steps to confirm correct deployment and performance benefits.

Quick Start

Configure Megatron-Bridge to enable FSDP by setting the appropriate parameters in the configuration file as instructed, then run the provided validation tests to verify setup.

Frequently Asked Questions about perf-megatron-fsdp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Megatron Fully Sharded Data Parallel training mode?

To configure Megatron Fully Sharded Data Parallel (FSDP) training mode, set the appropriate parameters in the Megatron-Bridge configuration file, then run the provided validation tests to verify setup and ensure proper deployment.

What is Fully Sharded Data Parallel used for in large model training?

Fully Sharded Data Parallel (FSDP) is used to improve scalability and memory efficiency in large model training environments by sharding model parameters, gradients, and optimizer states across distributed processes.

Do I need PyTorch FSDP integration experience to use Megatron distributed training?

Yes, configuring Megatron distributed training requires a solid understanding of distributed training frameworks and PyTorch FSDP integration to properly navigate constraints, avoid common pitfalls, and verify performance improvements.

What are common pitfalls when deploying PyTorch FSDP in Megatron-Bridge?

Common pitfalls when deploying PyTorch FSDP in Megatron-Bridge include configuration errors and compatibility constraints; the setup process highlights these issues to ensure reliable large model training and avoid performance degradation.

How do I verify performance improvements after enabling Megatron FSDP?

To verify performance improvements after enabling Megatron FSDP, run the outlined testing and validation procedures to confirm correct deployment, ensure proper configuration, and validate memory efficiency gains in your training environment.