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
2bd45fd9
Commit
2bd45fd9
authored
Jul 18, 2023
by
haileyschoelkopf
Browse files
remove winograd_schema task type fully
parent
80358e5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
lm_eval/api/registry.py
lm_eval/api/registry.py
+0
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-4
No files found.
lm_eval/api/registry.py
View file @
2bd45fd9
...
...
@@ -80,7 +80,6 @@ DEFAULT_METRIC_REGISTRY = {
],
"loglikelihood_rolling"
:
[
"word_perplexity"
,
"byte_perplexity"
,
"bits_per_byte"
],
"multiple_choice"
:
[
"acc"
,
"acc_norm"
],
"winograd_schema"
:
[
"acc"
],
"greedy_until"
:
[
"exact_match"
],
}
...
...
lm_eval/evaluator.py
View file @
2bd45fd9
...
...
@@ -223,10 +223,7 @@ def evaluate(
# aggregate Instances by LM method requested to get output.
reqtype
=
(
"loglikelihood"
if
(
task
.
OUTPUT_TYPE
==
"multiple_choice"
or
task
.
OUTPUT_TYPE
==
"winograd_schema"
)
if
task
.
OUTPUT_TYPE
==
"multiple_choice"
else
task
.
OUTPUT_TYPE
)
# TODO: this is hacky, fix in task.py
requests
[
reqtype
].
extend
(
task
.
instances
)
...
...
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