How to install torchrun?

This doc encourages to use torchrun. But doesn’t tell how to install it :frowning:
How to install and get started with torchrun?

torchrun is part of PyTorch v1.10. If you are running an older version, python -m command serves the same purpose.

thanks @cbalioglu ! nice to meet you here, long time no see :wink:

@cbalioglu shall I run python -m once for the whole cluster? or once per node? or once per GPU? also asked here How to map processes to GPU in DDP and how to launch the DDP cluster?

It should be once per node IIUC