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
2d6102c4
Commit
2d6102c4
authored
Feb 01, 2021
by
Leo Gao
Browse files
Fix coverage again again again again
parent
2708ae4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+1
-1
lm_eval/tasks/naturalqs.py
lm_eval/tasks/naturalqs.py
+4
-0
lm_eval/tasks/triviaqa.py
lm_eval/tasks/triviaqa.py
+1
-1
No files found.
lm_eval/tasks/__init__.py
View file @
2d6102c4
...
@@ -45,7 +45,7 @@ TASK_REGISTRY = {
...
@@ -45,7 +45,7 @@ TASK_REGISTRY = {
"lambada"
:
lambada
.
LAMBADA
,
"lambada"
:
lambada
.
LAMBADA
,
"piqa"
:
piqa
.
PiQA
,
"piqa"
:
piqa
.
PiQA
,
"triviaqa"
:
triviaqa
.
TriviaQA
,
#
"triviaqa": triviaqa.TriviaQA,
# "arc_easy": arc.ARCEasy, # not implemented yet
# "arc_easy": arc.ARCEasy, # not implemented yet
# "arc_challenge": arc.ARCChallenge, # not implemented yet
# "arc_challenge": arc.ARCChallenge, # not implemented yet
# "quac": quac.QuAC, # not implemented yet
# "quac": quac.QuAC, # not implemented yet
...
...
lm_eval/tasks/naturalqs.py
View file @
2d6102c4
...
@@ -3,6 +3,10 @@ from itertools import islice
...
@@ -3,6 +3,10 @@ from itertools import islice
import
random
import
random
class
NaturalQs
(
HFTask
):
class
NaturalQs
(
HFTask
):
# TODO: naturalqs has a *really* large train set that huggingface just
# automatically downloads even if you dont use it. we should try and only
# download the val set and not even bother with the train set.
DATASET_PATH
=
"natural_questions"
DATASET_PATH
=
"natural_questions"
DATASET_NAME
=
None
DATASET_NAME
=
None
...
...
lm_eval/tasks/triviaqa.py
View file @
2d6102c4
...
@@ -21,7 +21,7 @@ class TriviaQA(Dataset):
...
@@ -21,7 +21,7 @@ class TriviaQA(Dataset):
return
True
return
True
def
has_test_docs
(
self
):
def
has_test_docs
(
self
):
return
Tru
e
return
Fals
e
def
training_docs
(
self
):
def
training_docs
(
self
):
return
json
.
load
(
open
(
'data/triviaqa/triviaqa-unfiltered/unfiltered-web-train.json'
))[
'Data'
]
return
json
.
load
(
open
(
'data/triviaqa/triviaqa-unfiltered/unfiltered-web-train.json'
))[
'Data'
]
...
...
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