What problem does it solve?
Training large PyTorch models across multiple GPUs or nodes requires complex configuration of parameter sharding, communication backends, and memory optimization to avoid out-of-memory errors and training hangs, which is error-prone even for experienced machine learning engineers.
Core Features & Use Cases
- FSDP1 & FSDP2 Support: Covers both legacy FSDP1 flat-parameter sharding and modern FSDP2 per-parameter sharding, including step-by-step migration guidance between the two versions.
- Distributed Training Configuration: Provides guidance on backend selection (NCCL, Gloo, etc.), process group initialization, uneven input handling, and mixed precision setup for stable multi-node training.
- Use Case: A machine learning engineer training a 70B parameter language model on a 16-GPU cluster can use this skill to correctly configure FSDP2 sharding, enable CPU offloading, and resolve common collective communication errors.
Quick Start
Use the pytorch-fsdp skill to configure FSDP2 with per-parameter sharding and CPU offloading for your 13B parameter transformer model to fit training on 8 GPUs.