What problem does it solve?
PyTorch FSDP training guidance helps you reduce GPU memory usage and scale larger models by correctly applying Fully Sharded Data Parallel (including FSDP2-style per-parameter sharding) without getting stuck on common configuration pitfalls.
Core Features & Use Cases
- FSDP concepts and when to apply them: Explains why sharding helps, how forward/backward all-gather and post-step reduce-scatter work, and how to structure sharding calls bottom-up.
- FSDP2 (fully_shard) behavior: Covers DTensor-based parameter sharding, hook-driven unsharding/resharding, and the expected contract for forward/backward execution.
- Practical distributed training prerequisites: Provides related PyTorch distributed context needed to reason about process groups, communication backends, and uneven input handling via Join (useful when debugging hangs).
Quick Start
Ask the agent to help you configure PyTorch FSDP2 for your model by explaining what you need to change in initialization, forward usage (model(input)), optimizer setup, and how to interpret common memory/communication issues for your world size and mesh.