Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
a1160392
Unverified
Commit
a1160392
authored
Jun 14, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Jun 14, 2023
Browse files
Change triviaqa dataset path
parent
8c419c83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lm_eval/tasks/triviaqa.py
lm_eval/tasks/triviaqa.py
+2
-3
No files found.
lm_eval/tasks/triviaqa.py
View file @
a1160392
...
@@ -10,7 +10,6 @@ high quality distant supervision for answering the questions.
...
@@ -10,7 +10,6 @@ high quality distant supervision for answering the questions.
Homepage: https://nlp.cs.washington.edu/triviaqa/
Homepage: https://nlp.cs.washington.edu/triviaqa/
"""
"""
import
inspect
import
inspect
import
lm_eval.datasets.triviaqa.triviaqa
import
string
import
string
from
lm_eval.base
import
Task
,
rf
from
lm_eval.base
import
Task
,
rf
from
lm_eval.metrics
import
mean
from
lm_eval.metrics
import
mean
...
@@ -30,8 +29,8 @@ _CITATION = """
...
@@ -30,8 +29,8 @@ _CITATION = """
class
TriviaQA
(
Task
):
class
TriviaQA
(
Task
):
VERSION
=
1
VERSION
=
1
DATASET_PATH
=
inspect
.
getfile
(
lm_eval
.
datasets
.
triviaqa
.
triviaqa
)
DATASET_PATH
=
"
trivia
_
qa
"
DATASET_NAME
=
None
DATASET_NAME
=
"rc.nocontext"
def
has_training_docs
(
self
):
def
has_training_docs
(
self
):
return
True
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment