Skip to content

Commit

Permalink
checkpoint hot fix (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh authored Jan 17, 2025
1 parent 0c096e2 commit 48abe8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/olmo_core/train/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def load(
for path in (f"{dir}/train/rank{get_rank()}.pt", f"{dir}/train/rank0.pt"):
try:
trainer_state = torch.load(cached_path(path, quiet=True), weights_only=False)
break
except FileNotFoundError:
pass

Expand Down

0 comments on commit 48abe8c

Please sign in to comment.