Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jul 4, 2024
1 parent 9699f23 commit 4d8a766
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def compute_metrics(eval_predictions):
outputs = evaluation_loop(
model=model,
dataset=eval_dataset,
label_names=["labels"],
label_names=["label"],
compute_metrics=compute_metrics,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ def compute_metrics(p: EvalPrediction):
outputs = evaluation_loop(
model=model,
dataset=predict_dataset,
compute_metrics=compute_metrics,
label_names=["start_positions", "end_positions"],
)
predictions = post_processing_function(predict_examples, predict_dataset, outputs.predictions)
Expand Down

0 comments on commit 4d8a766

Please sign in to comment.