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