Skip to content

Commit

Permalink
update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Jul 31, 2023
1 parent 9f75dd6 commit 517d4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def main(cfg: TrainConfig) -> None:

if cfg.load_path is not None:
log.info(f"Loading checkpoint from {cfg.load_path}...")
trainer.restore_checkpoint(Path(cfg.load_path))
trainer.restore_checkpoint(cfg.load_path)
log.info("Checkpoint successfully loaded")

if cfg.force_save_unsharded:
Expand Down

0 comments on commit 517d4b0

Please sign in to comment.