File size: 207 Bytes
847619e
 
 
 
 
1
2
3
4
5
#!/bin/bash
NUM_PROC=$1
shift
# the localhost fixes are from https://github.com/pytorch/pytorch/issues/73320
torchrun  --rdzv_backend c10d --rdzv_endpoint localhost:0 --nproc_per_node=$NUM_PROC train.py "$@"