You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most examples now read local rank from a CLI argument --local_rank. This ensures for it to work when using the torch launch utility torch.distributed.launch. However, since recent torch versions, launch is deprecated. The new suggested way to run distributed code from CLI is with torch.distributed.run. The difference from before is that instead of automatically passing CLI arguments, it sets the rank as an environment variable. The examples therefore need to be updated to read the ENV variable instead of the CLI argument.