Skip to content

Commit

Permalink
fixing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eliebak authored Aug 23, 2024
1 parent e24cce1 commit d5a3650
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nanotron/serialize/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ def parse_ckpt_path(config: Config, parallel_context: ParallelContext) -> Option
rank=0,
)
else:
# elif check_path_is_s3(str(load_from_candidate)):
latest_meta_path = config.checkpoints.resume_checkpoint_path / "latest.txt"
if latest_meta_path.exists():
# if latest.txt exists, we assume that the checkpoint path is a path to a folder containing the checkpoint
Expand Down Expand Up @@ -326,4 +325,4 @@ def parse_ckpt_path(config: Config, parallel_context: ParallelContext) -> Option
return checkpoint_path
# else:
# raise Exception(f"{load_from_candidate} should be either a local link or a s3 link.")
# return None
# return None

0 comments on commit d5a3650

Please sign in to comment.