Menu

1 / 2

FSDP vs DeepSpeed: which should you use for LLM training?

DEV Community: pytorch·Viswaretas Kotra·14 days ago
#FyhAcSlV
#devtopytorch#devto#dev#deepspeed#zero
Long article (2252 words) — no AI summary yet.
Reading 0:00
15s threshold

PyTorch FSDP should be your default for LLM training, and DeepSpeed ZeRO earns its place when the model only fits if you move the optimizer, and nothing else, into CPU memory or onto NVMe, which FSDP cannot do. Nodus runs either one on a single machine with the same nodus run command, while its managed TrainingJobs reject DeepSpeed ZeRO sharding and its multi-machine recovery expects PyTorch Distributed Checkpoint. In our worked math, DeepSpeed's optimizer-only offload is what puts a full 70B fine-tune on one 8 x NVIDIA H100 machine instead of 8 x B200.

Both tools implement the same idea from the ZeRO paper : split the weights, gradients and Adam state across GPUs instead of copying them to each one.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.