Skip to content

Commit

Permalink
evaluate at end of training
Browse files Browse the repository at this point in the history
  • Loading branch information
philippguevorguian committed Dec 12, 2023
1 parent 0d4224c commit 649fc83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def train(
except KeyboardInterrupt:
with accelerator.main_process_first():
logger.error("KeyboardInterrupt")
if not (max_steps % eval_steps == 0):
trainer.evaluate()


if __name__ == "__main__":
Expand Down

0 comments on commit 649fc83

Please sign in to comment.