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
08dc67ea
Commit
08dc67ea
authored
Jan 05, 2021
by
Leo Gao
Browse files
Add reminder to rewrite
parent
a9fe09e5
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
41 additions
and
0 deletions
+41
-0
lm_eval/models/dummy.py
lm_eval/models/dummy.py
+2
-0
lm_eval/models/gpt3.py
lm_eval/models/gpt3.py
+2
-0
lm_eval/tasks/anli.py
lm_eval/tasks/anli.py
+2
-0
lm_eval/tasks/arc.py
lm_eval/tasks/arc.py
+2
-0
lm_eval/tasks/coqa.py
lm_eval/tasks/coqa.py
+2
-0
lm_eval/tasks/drop.py
lm_eval/tasks/drop.py
+2
-0
lm_eval/tasks/glue.py
lm_eval/tasks/glue.py
+2
-0
lm_eval/tasks/hellaswag.py
lm_eval/tasks/hellaswag.py
+2
-0
lm_eval/tasks/lambada.py
lm_eval/tasks/lambada.py
+2
-0
lm_eval/tasks/naturalqs.py
lm_eval/tasks/naturalqs.py
+2
-0
lm_eval/tasks/openbookqa.py
lm_eval/tasks/openbookqa.py
+2
-0
lm_eval/tasks/piqa.py
lm_eval/tasks/piqa.py
+2
-0
lm_eval/tasks/quac.py
lm_eval/tasks/quac.py
+2
-0
lm_eval/tasks/race.py
lm_eval/tasks/race.py
+2
-0
lm_eval/tasks/sat.py
lm_eval/tasks/sat.py
+2
-0
lm_eval/tasks/squad.py
lm_eval/tasks/squad.py
+3
-0
lm_eval/tasks/storycloze.py
lm_eval/tasks/storycloze.py
+2
-0
lm_eval/tasks/superglue.py
lm_eval/tasks/superglue.py
+2
-0
lm_eval/tasks/triviaqa.py
lm_eval/tasks/triviaqa.py
+2
-0
lm_eval/tasks/webqs.py
lm_eval/tasks/webqs.py
+2
-0
No files found.
lm_eval/models/dummy.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
lm_eval.base
import
LM
from
.
import
MODEL_REGISTRY
...
...
lm_eval/models/gpt3.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
os
import
transformers
from
lm_eval.base
import
LM
...
...
lm_eval/tasks/anli.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
.
common
import
HFTask
class
ANLIBase
(
HFTask
):
...
...
lm_eval/tasks/arc.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
.
common
import
HFTask
class
ARCEasy
(
HFTask
):
...
...
lm_eval/tasks/coqa.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
json
import
random
from
lm_eval.base
import
Dataset
...
...
lm_eval/tasks/drop.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
numpy
as
np
import
json
from
scipy.stats
import
pearsonr
,
spearmanr
...
...
lm_eval/tasks/glue.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
numpy
as
np
from
scipy.stats
import
pearsonr
,
spearmanr
from
sklearn.metrics
import
f1_score
,
matthews_corrcoef
...
...
lm_eval/tasks/hellaswag.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
numpy
as
np
from
scipy.stats
import
pearsonr
,
spearmanr
from
sklearn.metrics
import
f1_score
,
matthews_corrcoef
...
...
lm_eval/tasks/lambada.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
lm_eval.base
import
Dataset
from
lm_eval.utils
import
sh
import
json
...
...
lm_eval/tasks/naturalqs.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
.
common
import
HFTask
from
itertools
import
islice
...
...
lm_eval/tasks/openbookqa.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
numpy
as
np
from
scipy.stats
import
pearsonr
,
spearmanr
from
sklearn.metrics
import
f1_score
,
matthews_corrcoef
...
...
lm_eval/tasks/piqa.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
json
import
random
from
lm_eval.base
import
Dataset
...
...
lm_eval/tasks/quac.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
json
import
random
import
os
...
...
lm_eval/tasks/race.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
.
common
import
HFTask
from
..utils_stream
import
X
,
each
,
apply
,
join
,
filt
,
one
import
collections
...
...
lm_eval/tasks/sat.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
json
import
random
import
os
...
...
lm_eval/tasks/squad.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
numpy
as
np
from
scipy.stats
import
pearsonr
,
spearmanr
from
sklearn.metrics
import
f1_score
,
matthews_corrcoef
...
...
@@ -26,6 +28,7 @@ class SQuAD(HFTask):
return
self
.
data
[
"validation"
]
def
fewshot_description
(
self
):
# TODO: redo description
return
"Title: The_Title_of_It
\n\n
Background: A text passage as background to answer the question with.
\n\n
Q: Question about the passage.
\n\n
A: Answer."
def
doc_to_text
(
self
,
doc
,
include_target
=
True
):
...
...
lm_eval/tasks/storycloze.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
json
import
random
from
lm_eval.base
import
Dataset
...
...
lm_eval/tasks/superglue.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
numpy
as
np
from
tqdm
import
auto
as
tqdm_lib
from
.
common
import
HFTask
,
simple_accuracy_metric
,
yesno
...
...
lm_eval/tasks/triviaqa.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
import
json
import
random
from
lm_eval.base
import
Dataset
...
...
lm_eval/tasks/webqs.py
View file @
08dc67ea
# REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from
.
common
import
HFTask
class
WebQs
(
HFTask
):
...
...
Prev
1
2
Next
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