Menu

#Fsdp

4 posts

Feed·
4 of 4 posts
FSDP vs Megatron-LM: which scales LLM training better?
🖼️
0Read More

FSDP vs Megatron-LM: which scales LLM training better?

DEV Community: pytorch·Viswaretas Kotra·8 days ago
#vUljqdQ2
#devtopytorch#devto#dev#fsdp#megatron

FSDP is simpler and enough while a model fits on one 8-GPU machine. Megatron-LM's tensor and pipeline split wins across machines on slow links.

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
FSDP vs DDP: when do you need sharded data parallel?
🖼️
0Read More

FSDP vs DDP: when do you need sharded data parallel?

DEV Community: pytorch·Viswaretas Kotra·16 days ago
#STdokIgL
#devtopytorch#devto#dev#model#fsdp

Use DDP until params, grads and AdamW state stop fitting on one GPU, about 3.75B params on an 80 GB H100. Then shard with FSDP. The memory math, worked.

15s
How do you train a PyTorch model on multiple GPUs?
📰
0Read More

How do you train a PyTorch model on multiple GPUs?

DEV Community: pytorch·Viswaretas Kotra·about 1 month ago
#M1Wg5sKE
#devtopytorch#devto#dev#machine#model

Use DDP when the model fits on one GPU, FSDP when it doesn't, and launch with torchrun. Code, memory math and a cost check for going multi-node.

15s