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
a0787a9f
Commit
a0787a9f
authored
Nov 29, 2023
by
baberabb
Browse files
Merge remote-tracking branch 'origin/big-refactor' into big-refactor_dp
parents
6359f083
dc5b3d5d
Changes
199
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
46 additions
and
14 deletions
+46
-14
lm_eval/tasks/triviaqa/default.yaml
lm_eval/tasks/triviaqa/default.yaml
+2
-0
lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml
lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml
+2
-0
lm_eval/tasks/truthfulqa/truthfulqa_mc1.yaml
lm_eval/tasks/truthfulqa/truthfulqa_mc1.yaml
+2
-0
lm_eval/tasks/truthfulqa/truthfulqa_mc2.yaml
lm_eval/tasks/truthfulqa/truthfulqa_mc2.yaml
+2
-0
lm_eval/tasks/unscramble/anagrams1.yaml
lm_eval/tasks/unscramble/anagrams1.yaml
+2
-0
lm_eval/tasks/unscramble/anagrams2.yaml
lm_eval/tasks/unscramble/anagrams2.yaml
+2
-0
lm_eval/tasks/unscramble/cycle_letters.yaml
lm_eval/tasks/unscramble/cycle_letters.yaml
+2
-0
lm_eval/tasks/unscramble/random_insertion.yaml
lm_eval/tasks/unscramble/random_insertion.yaml
+2
-0
lm_eval/tasks/unscramble/reversed_words.yaml
lm_eval/tasks/unscramble/reversed_words.yaml
+2
-0
lm_eval/tasks/webqs/webqs.yaml
lm_eval/tasks/webqs/webqs.yaml
+2
-0
lm_eval/tasks/wikitext/wikitext.yaml
lm_eval/tasks/wikitext/wikitext.yaml
+2
-0
lm_eval/tasks/winogrande/default.yaml
lm_eval/tasks/winogrande/default.yaml
+2
-0
lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml
lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml
+2
-0
lm_eval/tasks/wsc273/default.yaml
lm_eval/tasks/wsc273/default.yaml
+2
-0
lm_eval/tasks/xcopa/default_et.yaml
lm_eval/tasks/xcopa/default_et.yaml
+2
-0
lm_eval/tasks/xnli/xnli_common_yaml
lm_eval/tasks/xnli/xnli_common_yaml
+2
-0
lm_eval/tasks/xstorycloze/default_ar.yaml
lm_eval/tasks/xstorycloze/default_ar.yaml
+2
-0
lm_eval/tasks/xwinograd/xwinograd_common_yaml
lm_eval/tasks/xwinograd/xwinograd_common_yaml
+2
-0
lm_eval/utils.py
lm_eval/utils.py
+10
-14
No files found.
lm_eval/tasks/triviaqa/default.yaml
View file @
a0787a9f
...
...
@@ -27,3 +27,5 @@ metric_list:
higher_is_better
:
true
ignore_case
:
true
ignore_punctuation
:
true
metadata
:
-
version
:
2.0
lm_eval/tasks/truthfulqa/truthfulqa_gen.yaml
View file @
a0787a9f
...
...
@@ -75,3 +75,5 @@ metric_list:
-
metric
:
rougeL_diff
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
2.0
lm_eval/tasks/truthfulqa/truthfulqa_mc1.yaml
View file @
a0787a9f
...
...
@@ -32,3 +32,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
2.0
lm_eval/tasks/truthfulqa/truthfulqa_mc2.yaml
View file @
a0787a9f
...
...
@@ -9,3 +9,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
2.0
lm_eval/tasks/unscramble/anagrams1.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
higher_is_better
:
true
ignore_case
:
false
ignore_punctuation
:
false
metadata
:
-
version
:
1.0
lm_eval/tasks/unscramble/anagrams2.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
higher_is_better
:
true
ignore_case
:
false
ignore_punctuation
:
false
metadata
:
-
version
:
1.0
lm_eval/tasks/unscramble/cycle_letters.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
higher_is_better
:
true
ignore_case
:
false
ignore_punctuation
:
false
metadata
:
-
version
:
1.0
lm_eval/tasks/unscramble/random_insertion.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
higher_is_better
:
true
ignore_case
:
false
ignore_punctuation
:
false
metadata
:
-
version
:
1.0
lm_eval/tasks/unscramble/reversed_words.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
higher_is_better
:
true
ignore_case
:
false
ignore_punctuation
:
false
metadata
:
-
version
:
1.0
lm_eval/tasks/webqs/webqs.yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
-
metric
:
exact_match
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/wikitext/wikitext.yaml
View file @
a0787a9f
...
...
@@ -14,3 +14,5 @@ metric_list:
-
metric
:
word_perplexity
-
metric
:
byte_perplexity
-
metric
:
bits_per_byte
metadata
:
-
version
:
2.0
lm_eval/tasks/winogrande/default.yaml
View file @
a0787a9f
...
...
@@ -13,3 +13,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/wmt2016/ro_en-t5_prompt.yaml
View file @
a0787a9f
...
...
@@ -15,3 +15,5 @@ metric_list:
-
metric
:
!function
metrics.bleu
aggregation
:
!function
metrics.agg_bleu
higher_is_better
:
true
metadata
:
-
version
:
0.0
lm_eval/tasks/wsc273/default.yaml
View file @
a0787a9f
...
...
@@ -13,3 +13,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/xcopa/default_et.yaml
View file @
a0787a9f
...
...
@@ -10,3 +10,5 @@ doc_to_target: label
doc_to_choice
:
!function
utils.doc_to_choice
metric_list
:
-
metric
:
acc
metadata
:
-
version
:
1.0
lm_eval/tasks/xnli/xnli_common_yaml
View file @
a0787a9f
...
...
@@ -15,3 +15,5 @@ metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
metadata:
- version: 1.0
lm_eval/tasks/xstorycloze/default_ar.yaml
View file @
a0787a9f
...
...
@@ -14,3 +14,5 @@ metric_list:
-
metric
:
acc
aggregation
:
mean
higher_is_better
:
true
metadata
:
-
version
:
1.0
lm_eval/tasks/xwinograd/xwinograd_common_yaml
View file @
a0787a9f
...
...
@@ -16,3 +16,5 @@ metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
metadata:
- version: 1.0
lm_eval/utils.py
View file @
a0787a9f
...
...
@@ -339,31 +339,27 @@ def make_table(result_dict, column: str = "results"):
elif
column
==
"groups"
:
column_name
=
"Groups"
md_writer
=
MarkdownTableWriter
()
latex_writer
=
LatexTableWriter
()
md_writer
.
headers
=
[
column_name
,
"Version"
,
"Filter"
,
"Metric"
,
"Value"
,
""
,
"Stderr"
,
]
latex_writer
.
headers
=
[
all_headers
=
[
column_name
,
"Version"
,
"Filter"
,
"n-shot"
,
"Metric"
,
"Value"
,
""
,
"Stderr"
,
]
md_writer
=
MarkdownTableWriter
()
latex_writer
=
LatexTableWriter
()
md_writer
.
headers
=
all_headers
latex_writer
.
headers
=
all_headers
values
=
[]
for
k
,
dic
in
result_dict
[
column
].
items
():
version
=
result_dict
[
"versions"
][
k
]
n
=
str
(
result_dict
[
"n-shot"
][
k
])
if
"alias"
in
dic
:
k
=
dic
.
pop
(
"alias"
)
...
...
@@ -375,9 +371,9 @@ def make_table(result_dict, column: str = "results"):
if
m
+
"_stderr"
+
","
+
f
in
dic
:
se
=
dic
[
m
+
"_stderr"
+
","
+
f
]
values
.
append
([
k
,
version
,
f
,
m
,
"%.4f"
%
v
,
"±"
,
"%.4f"
%
se
])
values
.
append
([
k
,
version
,
f
,
n
,
m
,
"%.4f"
%
v
,
"±"
,
"%.4f"
%
se
])
else
:
values
.
append
([
k
,
version
,
f
,
m
,
"%.4f"
%
v
,
""
,
""
])
values
.
append
([
k
,
version
,
f
,
n
,
m
,
"%.4f"
%
v
,
""
,
""
])
k
=
""
version
=
""
md_writer
.
value_matrix
=
values
...
...
Prev
1
…
6
7
8
9
10
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