FSDP (Fully Sharded Data Parallel) is a data-parallel method built into PyTorch that shards all of a model's weights, gradients, and optimizer states across GPUs, and gathers only the weights of the part needed right before computing it. The computation stays the same as in data parallelism, yet it can train large models that do not fit on a single GPU.
In PyTorch's DDP (DistributedDataParallel), every GPU holds all of the model's weights, gradients, and optimizer states. According to the paper, on 40GB GPUs, trying to train a model with more than 1 billion parameters with DDP tends to run out of memory.
In a 2023 paper (PVLDB), Zhao et al. described the design and implementation of PyTorch FSDP. FSDP takes DeepSpeed's ZeRO as its starting point and redesigns it to fit with the rest of PyTorch. The PyTorch documentation also explains that it was inspired by ZeRO Stage 3 ( in the ZeRO paper, the stage that shards the weights as well).
The idea is like taking a large cookbook apart page by page and splitting the pages among several cooks in a kitchen. Everyone copies only the pages for the dish being cooked right now, and throws the copies away when the dish is done. Since each cook keeps only their own pages, each person's load is much lighter.

