In case that wasn’t clear this will do everything automatically:
python -m torch.distributed.launch --nproc_per_node 2 ~/src/main_debug.py
In case that wasn’t clear this will do everything automatically:
python -m torch.distributed.launch --nproc_per_node 2 ~/src/main_debug.py