Merge pull request #693 from SamuelGabriel/patch-1

Let only the _globally_ 0th rank write checkpoints in `train.py`
This commit is contained in:
Ross Wightman 2021-06-09 14:30:05 -07:00 committed by GitHub
commit b79dfd4fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -561,7 +561,7 @@ def main():
best_epoch = None
saver = None
output_dir = None
if args.local_rank == 0:
if args.rank == 0:
if args.experiment:
exp_name = args.experiment
else: