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
48344fcb
Commit
48344fcb
authored
Jun 06, 2023
by
lintangsutawika
Browse files
stderr_for_metric imported from lm_eval.metrics now
parent
0a9ad6ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lm_eval/evaluator.py
lm_eval/evaluator.py
+2
-3
No files found.
lm_eval/evaluator.py
View file @
48344fcb
...
...
@@ -7,10 +7,9 @@ import torch
import
numpy
as
np
import
lm_eval.api
import
lm_eval.api.metrics
import
lm_eval.tasks
import
lm_eval.models
import
lm_eval.metrics
from
lm_eval.utils
import
(
positional_deprecated
,
...
...
@@ -281,7 +280,7 @@ def evaluate(
# hotfix: bleu, chrf, ter seem to be really expensive to bootstrap
# so we run them less iterations. still looking for a cleaner way to do this
stderr
=
lm_eval
.
api
.
metrics
.
stderr_for_metric
(
stderr
=
lm_eval
.
metrics
.
stderr_for_metric
(
metric
=
task
.
aggregation
()[
metric
],
bootstrap_iters
=
min
(
bootstrap_iters
,
1000
)
if
metric
in
[
"bleu"
,
"chrf"
,
"ter"
]
...
...
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