For example: (ignore the export NGPUS)
python -m torch.distributed.launch --nproc_per_node=$NGPUS run1.py
python -m torch.distributed.launch --nproc_per_node=$NGPUS run2.py

After try. just using the form like “env://tmp” can work. thank you.