From 69e8034cae8612da72e9e94c93b1c219f629b039 Mon Sep 17 00:00:00 2001 From: Irene Dea Date: Wed, 23 Oct 2024 11:55:30 -0700 Subject: [PATCH] Update llmfoundry/command_utils/train.py Co-authored-by: Mihir Patel --- llmfoundry/command_utils/train.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llmfoundry/command_utils/train.py b/llmfoundry/command_utils/train.py index dbfe89618a..2a5e95c6a1 100644 --- a/llmfoundry/command_utils/train.py +++ b/llmfoundry/command_utils/train.py @@ -323,9 +323,8 @@ def train(cfg: DictConfig) -> Trainer: save_filename: str = train_cfg.save_filename if train_cfg.save_filename else 'ep{epoch}-ba{batch}-rank{rank}.pt' # Enable autoresume from model checkpoints if possible - is_user_set_run_name: bool = train_cfg.run_name is not None or run_name is not None autoresume_default: bool = False - if is_user_set_run_name and \ + if run_name is not None and \ train_cfg.save_folder is not None \ and not train_cfg.save_overwrite \ and not train_cfg.save_weights_only: