LabscoMCP early access ↗
Orchestra-Research avatar✓ Official

pytorch-fsdp2

Local tool required★ 13k on GitHub
part of orchestra-research/ai-research-skillsby orchestra-research

When a model is too big to fit on one graphics card, its parts have to be cut up and spread across several — this is how to make that split correctly in PyTorch, including the order of steps it has to be done in.

WHEN TO USE

SCOPE

USE FOR

  • Split a model's parameters, gradients, and optimizer state across GPUs when it no longer fits on one.
  • Retrofit FSDP2 sharding into an existing single-GPU training script.
  • Save and load a distributed model checkpoint safely across many ranks.
  • Combine data-parallel sharding with tensor parallelism using a device mesh for very large models.

NOT FOR

  • Skip this if you need checkpoints that stay compatible across different PyTorch versions.
  • Skip this on older PyTorch versions that don't include the FSDP2 stack.
  • Use plain DistributedDataParallel instead for standard training that doesn't need sharding.