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
3ab0aa5c
Unverified
Commit
3ab0aa5c
authored
Jul 18, 2023
by
Lintang Sutawika
Committed by
GitHub
Jul 18, 2023
Browse files
Update evaluator.py
parent
7f654439
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 @
3ab0aa5c
...
@@ -190,9 +190,12 @@ def evaluate(
...
@@ -190,9 +190,12 @@ def evaluate(
configs
=
collections
.
defaultdict
(
dict
)
configs
=
collections
.
defaultdict
(
dict
)
samples
=
collections
.
defaultdict
(
list
)
samples
=
collections
.
defaultdict
(
list
)
requests
=
collections
.
defaultdict
(
list
)
requests
=
collections
.
defaultdict
(
list
)
padding_requests
=
collections
.
defaultdict
(
int
)
# Stores group related keys and values for group-aggregation
aggregate
=
collections
.
defaultdict
(
dict
)
aggregate
=
collections
.
defaultdict
(
dict
)
task_groups
=
collections
.
defaultdict
(
dict
)
task_groups
=
collections
.
defaultdict
(
dict
)
padding_requests
=
collections
.
defaultdict
(
int
)
# get lists of each type of request
# get lists of each type of request
for
task_name
,
task
in
task_dict
.
items
():
for
task_name
,
task
in
task_dict
.
items
():
...
...
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