Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
  • Loading branch information
woshiyyya committed Nov 2, 2023
1 parent ddc8efe commit 69756f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/ray/train/lightning/_lightning_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def on_train_epoch_end(self, trainer, pl_module) -> None:
checkpoint = Checkpoint.from_directory(tmpdir)
train.report(metrics=metrics, checkpoint=checkpoint)

torch.distributed.barrier()

if self.local_rank == 0:
shutil.rmtree(tmpdir)

Expand Down

0 comments on commit 69756f4

Please sign in to comment.