Wrap your model in DistributedDataParallel (DDP) if it fits on one GPU, or shard it with FSDP if it doesn't, and start one process per GPU with torchrun . On Nodus, nodus run --gpu H100:8 -- torchrun train.py runs that script on all eight GPUs of one machine with no launcher flags, and --nodes 2 --launcher torchrun spreads it across two machines. Fill one machine before you add a second: the second machine buys wall-clock time, not a cheaper run.
This post walks through the three decisions in order: which wrapper, how to launch it, and when more than one machine is worth paying for. The code follows the PyTorch tutorials and the Nodus docs; the memory and cost figures are our own arithmetic, shown in full so you can redo it for your model.
Should you use DataParallel, DDP or FSDP?
Use DDP by default and skip nn.DataParallel .…