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
6508efaa
Commit
6508efaa
authored
Sep 17, 2024
by
Baber
Browse files
nit
parent
8335e43a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lm_eval/evaluator_utils.py
lm_eval/evaluator_utils.py
+1
-3
No files found.
lm_eval/evaluator_utils.py
View file @
6508efaa
...
@@ -4,8 +4,6 @@ import pathlib
...
@@ -4,8 +4,6 @@ import pathlib
import
sys
import
sys
from
typing
import
List
,
Optional
,
Tuple
,
Union
from
typing
import
List
,
Optional
,
Tuple
,
Union
from
pandas.core.dtypes.inference
import
is_float
from
lm_eval.api.group
import
ConfigurableGroup
from
lm_eval.api.group
import
ConfigurableGroup
from
lm_eval.api.metrics
import
(
from
lm_eval.api.metrics
import
(
aggregate_subtask_metrics
,
aggregate_subtask_metrics
,
...
@@ -206,7 +204,7 @@ def get_sample_size(
...
@@ -206,7 +204,7 @@ def get_sample_size(
task
,
limit
:
Optional
[
int
],
batch_size
:
Optional
[
int
]
task
,
limit
:
Optional
[
int
],
batch_size
:
Optional
[
int
]
)
->
Union
[
int
,
None
]:
)
->
Union
[
int
,
None
]:
if
limit
is
not
None
:
if
limit
is
not
None
:
if
batch_size
is
not
None
and
is
_float
(
limi
t
)
and
limit
==
1.0
:
if
batch_size
is
not
None
and
is
instance
(
limit
,
floa
t
)
and
limit
==
1.0
:
eval_logger
.
warning
(
eval_logger
.
warning
(
"Limit is 1.0, adjusting the sample size to be a multiple of the batch size"
"Limit is 1.0, adjusting the sample size to be a multiple of the batch size"
)
)
...
...
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