Skip to content

Commit

Permalink
Fix mmlu bpb bug only scoring answer=A questions
Browse files Browse the repository at this point in the history
  • Loading branch information
OyvindTafjord committed Sep 6, 2024
1 parent ca81901 commit 138cfe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions olmo/eval/downstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,9 @@ def doc_to_continuations(self, doc):
return choices

def doc_to_label(self, doc):
if self.metric_type in ["ce_loss", "bpb"]:
# Only the correct answer is provided for these metrics
return 0
return doc["answer"]

def doc_to_domain_conditional(self, doc):
Expand Down

0 comments on commit 138cfe9

Please sign in to comment.