🖼️00Read later0Read MoreWhat are DeepSpeed ZeRO stages 1, 2 and 3?DEV Community: pytorch·Viswaretas Kotra·5 days ago#FIPu0MZg#devtopytorch#devto#dev#zero#stage+8 more🧰Tag tools✨Add tagZeRO-1 splits optimizer state, ZeRO-2 adds gradients, ZeRO-3 adds weights. Per-GPU memory math for 7B and 70B, configs and a rule for picking one.15s
🖼️00Read later0Read MoreFSDP vs DeepSpeed: which should you use for LLM training?DEV Community: pytorch·Viswaretas Kotra·14 days ago#FyhAcSlV#devtopytorch#devto#dev#deepspeed#zero+8 more🧰Tag tools✨Add tagUse FSDP by default. Use DeepSpeed ZeRO-3 when only CPU optimizer offload makes the model fit. Memory math for 8B and 70B, configs and a decision rule.15s