What problem does it solve?
This Skill helps you design, implement, and debug Fully Sharded Data Parallel (FSDP) training in PyTorch so you can scale to larger models while controlling memory usage and runtime stability.
Core Features & Use Cases
- FSDP design guidance: Understand how parameter sharding, all-gather/reshard flows, and gradient reduce-scatter work to prevent stalls and incorrect training behavior.
- Mixed precision & performance tuning: Choose mixed-precision and execution settings that balance throughput and numerical stability.
- FSDP1 vs FSDP2 direction: Get practical pointers for modern FSDP2 (fully_shard) workflows, including DTensor-based sharding and hook-driven unshard/reshard behavior.
- Use Case: You want to train a Transformer on limited GPU memory; use this Skill to structure your model sharding plan (bottom-up), set the correct mesh strategy, and troubleshoot hangs caused by mismatched collectives.
Quick Start
Ask the AI: explain how to apply PyTorch FSDP2 (fully_shard) to a Transformer bottom-up with a 1D or 2D DeviceMesh, and what to check when training hangs during forward or backward.