Skip to content

Commit

Permalink
set evaluation_strategy no when valid_ds is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Sep 30, 2024
1 parent a9cc91e commit cb885d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,7 @@ def fit(self,
logging_steps=logging_steps,
save_steps=save_steps,
save_strategy=save_strategy,
do_eval=valid_ds is not None,
evaluation_strategy=evaluation_strategy,
evaluation_strategy=evaluation_strategy if valid_ds is not None else 'no',
eval_steps=eval_steps,
output_dir=output_dir,
save_total_limit=save_total_limit,
Expand Down

0 comments on commit cb885d3

Please sign in to comment.