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
cee785e0
Unverified
Commit
cee785e0
authored
May 05, 2024
by
KonradSzafer
Committed by
GitHub
May 05, 2024
Browse files
limit fix (#1785)
parent
18f4eb57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+4
-1
No files found.
lm_eval/evaluator.py
View file @
cee785e0
...
@@ -592,7 +592,10 @@ def evaluate(
...
@@ -592,7 +592,10 @@ def evaluate(
"n-samples"
:
{
"n-samples"
:
{
task_output
.
task_name
:
{
task_output
.
task_name
:
{
"original"
:
len
(
task_output
.
task
.
eval_docs
),
"original"
:
len
(
task_output
.
task
.
eval_docs
),
"effective"
:
min
(
limit
,
len
(
task_output
.
task
.
eval_docs
)),
"effective"
:
min
(
limit
if
limit
else
len
(
task_output
.
task
.
eval_docs
),
len
(
task_output
.
task
.
eval_docs
),
),
}
}
for
task_output
in
eval_tasks
for
task_output
in
eval_tasks
},
},
...
...
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