Skip to content

Commit

Permalink
Fix syncing points.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgiosSmyrnis committed May 18, 2024
1 parent a6086b3 commit 959d8f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open_lm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,6 @@ def main(args):
train_data_string_per_source = download_data_to_local(
train_data_string_per_source, args.temp_local_data_dir, only_rename=not download_rank
)
dist.barrier()

# In the distributed case, make sure that all nodes receive the same string
if args.distributed:
Expand Down Expand Up @@ -932,7 +931,8 @@ def main(args):
cleanup_rank = is_master(args) if args.local_dir_shared_across_nodes else is_local_master(args)
if cleanup_rank:
shutil.rmtree(args.temp_local_data_dir)
dist.barrier()
if args.distributed:
dist.barrier()

if done_training:
if is_master(args):
Expand Down

0 comments on commit 959d8f1

Please sign in to comment.