Skip to content

Commit

Permalink
Do not consider run_name when auto-detecting autoresume (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea authored Oct 5, 2024
1 parent 788c1f5 commit f87c9da
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 @@ -318,8 +318,7 @@ def train(cfg: DictConfig) -> Trainer:

# Enable autoresume from model checkpoints if possible
autoresume_default: bool = False
if logged_cfg.get('run_name', None) is not None \
and train_cfg.save_folder is not None \
if train_cfg.save_folder is not None \
and not train_cfg.save_overwrite \
and not train_cfg.save_weights_only:
autoresume_default = True
Expand Down

0 comments on commit f87c9da

Please sign in to comment.