Skip to content

Commit

Permalink
Remove the codes to remove the checkpoint directory. (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
workingloong committed May 30, 2024
1 parent aa5e6b6 commit 0dfeadc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dlrover/trainer/torch/flash_checkpoint/ddp.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ def save_checkpoint(
raise ValueError(
"path cannot be empty if storage type is disk!"
)
if self._rank == 0:
self.storage.safe_rmtree(os.path.dirname(path))
self._engine.save_to_storage(step, state_dict, paths)
else:
raise ValueError(f"No support storage type {storage_type}")
Expand Down

0 comments on commit 0dfeadc

Please sign in to comment.