Menu

#DeepSpeed

2 posts

Feed·
2 of 2 posts
What are DeepSpeed ZeRO stages 1, 2 and 3?
🖼️
0Read More

What are DeepSpeed ZeRO stages 1, 2 and 3?

DEV Community: pytorch·Viswaretas Kotra·5 days ago
#FIPu0MZg
#devtopytorch#devto#dev#zero#stage

ZeRO-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
FSDP vs DeepSpeed: which should you use for LLM training?
🖼️
0Read More

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

DEV Community: pytorch·Viswaretas Kotra·14 days ago
#FyhAcSlV
#devtopytorch#devto#dev#deepspeed#zero

Use 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