Skip to content

Commit

Permalink
predict loss only in evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Sep 29, 2024
1 parent cfa4f52 commit daf2bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,6 @@ def fit(self,
dataset_format=self.detect_dataset_format(train_ds),
train_dataset=train_ds,
eval_dataset=valid_ds,
compute_metrics=None, # do not compute metrics
loss_kwargs=loss_kwargs,
tokenizer=self.tokenizer,
args=TrainingArguments(
Expand All @@ -1539,6 +1538,7 @@ def fit(self,
logging_steps=logging_steps,
save_strategy=save_strategy,
evaluation_strategy=evaluation_strategy,
prediction_loss_only=True,
eval_steps=eval_steps,
save_steps=save_steps,
output_dir=output_dir,
Expand Down

0 comments on commit daf2bb6

Please sign in to comment.