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
569f9e6e
Commit
569f9e6e
authored
Sep 17, 2024
by
Baber
Browse files
nit
parent
6508efaa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lm_eval/evaluator_utils.py
lm_eval/evaluator_utils.py
+6
-4
No files found.
lm_eval/evaluator_utils.py
View file @
569f9e6e
...
@@ -209,9 +209,11 @@ def get_sample_size(
...
@@ -209,9 +209,11 @@ def get_sample_size(
"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"
)
)
return
(
len
(
task
.
eval_docs
)
//
batch_size
)
*
batch_size
return
(
len
(
task
.
eval_docs
)
//
batch_size
)
*
batch_size
elif
limit
is
not
Non
e
:
els
e
:
limit
=
(
limit
=
(
int
(
math
.
ceil
(
len
(
task
.
eval_docs
)
*
limit
))
if
limit
<
1.0
else
int
(
limit
)
int
(
math
.
ceil
(
len
(
task
.
eval_docs
)
*
limit
))
if
limit
<
1.0
else
int
(
limit
)
)
)
return
limit
return
limit
...
...
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