How do you run multi-node training across GPU machines?
Run one torchrun per machine against a shared rendezvous, check the network math first, and debug hangs with the right flags. Tested commands inside.
Run one torchrun per machine against a shared rendezvous, check the network math first, and debug hangs with the right flags. Tested commands inside.
Slurm vs Kubernetes for GPUs: gang scheduling, fair-share, preemption, MPI, inference serving and ops burden, with a decision rule and idle-GPU math.
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.
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.
One GPU for most fine-tunes, 8 or more for full training of large models and pretraining. Size it with two floors: memory to fit and GPU-hours to finish.
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.