What problem does it solve? Training large models often exceeds single-GPU memory, and configuring PyTorch FSDP correctly (wrapping policies, sharding strategies, mixed precision, checkpointing) is error-prone without authoritative reference material. ## Core Features & Use Cases - FSDP Pattern Catalog: Provides roughly 157k characters of runnable FSDP snippets covering wrapping, sharding strategies, checkpointing, and mixed precision in references/common-patterns.md. - Official Documentation References: Includes extracted PyTorch docs on FSDP2 (fully_shard), DistributedDataParallel internals, torch.distributed backends, and the Join context manager for uneven inputs. - Use Case: When migrating a training script from DDP to FSDP2, load the reference files to apply fully_shard bottom-up per layer, configure a DeviceMesh, and set up sharded state dict checkpointing correctly. ## Quick Start Ask the agent to help convert your PyTorch training script to use FSDP2 fully_shard with mixed precision and sharded checkpointing.