Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix triviaqa task #525

Merged
merged 4 commits into from
Jun 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change triviaqa dataset path
  • Loading branch information
haileyschoelkopf committed Jun 14, 2023
commit a1160392bd5913f7843f6d77c48bb2d2170e2eac
5 changes: 2 additions & 3 deletions lm_eval/tasks/triviaqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Homepage: https://nlp.cs.washington.edu/triviaqa/
"""
import inspect
import lm_eval.datasets.triviaqa.triviaqa
import string
from lm_eval.base import Task, rf
from lm_eval.metrics import mean
Expand All @@ -30,8 +29,8 @@

class TriviaQA(Task):
VERSION = 1
DATASET_PATH = inspect.getfile(lm_eval.datasets.triviaqa.triviaqa)
DATASET_NAME = None
DATASET_PATH = "trivia_qa"
DATASET_NAME = "rc.nocontext"

def has_training_docs(self):
return True
Expand Down