Skip to content

For torch.distributed.launch ARG --local_rank should be --local-rank #58

Description

@hassanbabaie

When using -m torch.distributed.launch --nproc_per_node=2 as an example it uses --local-rank and not the expected --local_rank which generate a fatal error.

parser.add_argument("--local_rank", type=int, default=-1,

Setting the arg to local-rank in train.py resolved the issue and it then works as expected

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions