sbelharbi:

python -m torch.distributed.launch \
       --nnodes=1 \
       --node_rank=0 \
       --nproc_per_node=2 \
       multi_g2.py \
       --local_world_size=2



this is the config i used and instead of launch i used run.
any idea how to setup these variables in this case? i can try them.
my env has 2 gpus located in the same machine.
thanks