Skip to content

Commit

Permalink
Merge pull request #718 from allenai/ot-fix-mmlu-bpb
Browse files Browse the repository at this point in the history
Fix mmlu bpb bug only scoring answer=A questions
  • Loading branch information
OyvindTafjord authored Sep 6, 2024
2 parents ca81901 + 138cfe9 commit 0b92077
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 0b92077

Please sign in to comment.