Skip to content

Commit

Permalink
save tokenizer to best checkpoint folder
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Jun 29, 2024
1 parent e44442c commit db997f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@ def fit(self,
best_ckpt_dir = None
if output_dir is not None:
best_ckpt_dir = os.path.join(output_dir, 'best-checkpoint')
self.tokenizer.save_pretrained(best_ckpt_dir)
evaluate_callback = EvaluateCallback(self.backbone, valid_ds,
partial(self.evaluate, batch_size=batch_size, device=self.device),
save_dir=best_ckpt_dir)
Expand Down

0 comments on commit db997f2

Please sign in to comment.