Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve --local_rank arg comment #8409

Merged
merged 4 commits into from
Jun 30, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,14 @@ def parse_opt(known=False):
parser.add_argument('--patience', type=int, default=100, help='EarlyStopping patience (epochs without improvement)')
parser.add_argument('--freeze', nargs='+', type=int, default=[0], help='Freeze layers: backbone=10, first3=0 1 2')
parser.add_argument('--save-period', type=int, default=-1, help='Save checkpoint every x epochs (disabled if < 1)')
parser.add_argument('--local_rank', type=int, default=-1, help='DDP parameter, do not modify')
parser.add_argument('--local_rank',
type=int,
default=-1,
help="""DDP parameter, do not modify.
This parameter is passed automatically when using multi-gpu mode.
This should be -1 when using single-GPU or when using validation and test dataloaders.
Local Rank for each GPU is like the index of GPU. It specifies which GPU we are using.
Pytorch Automatically passes this parameter. """)

# Weights & Biases arguments
parser.add_argument('--entity', default=None, help='W&B: Entity')
Expand Down