Skip to content

Commit

Permalink
Backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Dec 16, 2023
1 parent 4935c0f commit 933cce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olmo/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def load_trainer_state_dict(self, state_dict: Dict[str, Any]) -> None:
]
self.ephemeral_checkpoints = [
path
for path in state_dict["ephemeral_checkpoints"]
for path in state_dict.get("ephemeral_checkpoints", [])
if path.is_dir() and path.resolve().parent == Path(self.cfg.save_folder).resolve()
]

Expand Down

0 comments on commit 933cce4

Please sign in to comment.