Skip to content

A teeny bug on Multi-GPU training #18

@EricZhang1412

Description

@EricZhang1412

There are a small bug in train.py. When I apply the proposed model for multi-gpu training, it got unrecognized error: --local-rank. It seems that the linux system defaultly transmit the config "local-rank" instead of "local_rank" (see the different between '-' and '_'). As soon as i add
parser.add_argument("--local_rank", "--local-rank", default=0, type=int) to parser the two arguments into one.
it went well.

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