Skip to content

Commit

Permalink
add ignore_errors=True flag
Browse files Browse the repository at this point in the history
Signed-off-by: dimapihtar <dpihtar@gmail.com>
  • Loading branch information
dimapihtar committed May 22, 2024
1 parent b836410 commit eea9860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/utils/callbacks/nemo_model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def _maybe_remove_existing_nemo_ckpt(self, trainer):
if self.file_exists(base_path, trainer, check_dist_ckpt=False):
if trainer.is_global_zero:
logging.info(f'removing existing .nemo checkpoint {base_path}')
shutil.rmtree(base_path)
shutil.rmtree(base_path, ignore_errors=True)
trainer.strategy.barrier()

def _format_nemo_checkpoint_name(self, ver: Optional[int] = None) -> str:
Expand Down

0 comments on commit eea9860

Please sign in to comment.