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
b21c8f3d
Unverified
Commit
b21c8f3d
authored
Jun 08, 2023
by
Stella Biderman
Committed by
GitHub
Jun 08, 2023
Browse files
Merge pull request #568 from EleutherAI/revert-537-mmlu
Revert "Add MultipleChoiceExactTask"
parents
38c74278
21970120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
lm_eval/base.py
lm_eval/base.py
+0
-14
No files found.
lm_eval/base.py
View file @
b21c8f3d
...
@@ -743,20 +743,6 @@ class MultipleChoiceTask(Task):
...
@@ -743,20 +743,6 @@ class MultipleChoiceTask(Task):
}
}
class
MultipleChoiceExactTask
(
MultipleChoiceTask
):
def
construct_requests
(
self
,
doc
,
ctx
):
return
rf
.
loglikelihood
(
ctx
,
self
.
doc_to_target
(
doc
))[
1
]
def
process_results
(
self
,
doc
,
results
):
return
{
"acc"
:
1.0
if
results
[
0
]
else
0.0
}
def
higher_is_better
(
self
):
return
{
"acc"
:
True
}
def
aggregation
(
self
):
return
{
"acc"
:
mean
}
class
PerplexityTask
(
Task
,
abc
.
ABC
):
class
PerplexityTask
(
Task
,
abc
.
ABC
):
def
should_decontaminate
(
self
):
def
should_decontaminate
(
self
):
"""Whether this task supports decontamination against model training set."""
"""Whether this task supports decontamination against model training set."""
...
...
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