Skip to content

Commit

Permalink
comment clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasPlt committed Nov 14, 2024
1 parent e1191ee commit a37e006
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions fairseq/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,7 @@ def __init__(
kwargs = locals()
del kwargs["self"]

<<<<<<< HEAD
# save start checkpoint and rename to checkpoint_latest
=======
# check for start checkpoint
#if (
# fairseq_hydra_config.data.get("checkpoint", {}).get("restore_file", None) is not None
# and fairseq_hydra_config.data["checkpoint"]["restore_file"] != "checkpoint_last.pt"
# and os.path.exists(os.path.join(self.output_path("checkpoints", directory=True), "checkpoint_last.pt"))
#):
# # start_checkpoint provided but checkpoint_last.pt exists: start_checkpoint will be ignored
# print(
# "Warning: start_checkpoint will be ignored as checkpoint_last.pt exists in output directory"
# )
# fairseq_hydra_config.data["checkpoint"]["restore_file"] = "checkpoint_last.pt"


>>>>>>> c5d0a9f (fix when using restore_file)
self.start_checkpoint = None
if fairseq_hydra_config.data.get("checkpoint", {}).get("restore_file") is not None:
self.start_checkpoint = fairseq_hydra_config.data["checkpoint"]["restore_file"]
Expand Down

0 comments on commit a37e006

Please sign in to comment.