Skip to content

Commit e13b0af

Browse files
committed
disable resume_from_checkpoint logic in exp_manager
Signed-off-by: Maanu Grover <[email protected]>
1 parent bc29d42 commit e13b0af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nemo/utils/exp_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,9 @@ def exp_manager(trainer: 'pytorch_lightning.Trainer', cfg: Optional[Union[DictCo
346346
else:
347347
check_resume(trainer, log_dir, cfg.resume_past_end, cfg.resume_ignore_no_checkpoint)
348348

349-
if cfg.resume_from_checkpoint is not None:
350-
trainer.ckpt_path = cfg.resume_from_checkpoint
349+
# TODO: this behavior is undesirable, need ckpts in exp_dir to take priority if present over resume_from_checkpoint
350+
# if cfg.resume_from_checkpoint is not None:
351+
# trainer.ckpt_path = cfg.resume_from_checkpoint
351352

352353
logging.info(f'Resuming training from checkpoint: {trainer.ckpt_path}')
353354

0 commit comments

Comments
 (0)