Skip to content

Commit

Permalink
Update llmfoundry/command_utils/train.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mihir Patel <[email protected]>
  • Loading branch information
irenedea and mvpatel2000 authored Oct 23, 2024
1 parent 34541f1 commit 69e8034
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llmfoundry/command_utils/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 69e8034

Please sign in to comment.