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
6b6e6d77
Unverified
Commit
6b6e6d77
authored
Nov 28, 2021
by
Leo Gao
Committed by
GitHub
Nov 28, 2021
Browse files
Update req_type to request_type
parent
3b386db4
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 @
6b6e6d77
...
...
@@ -121,10 +121,10 @@ def evaluate(lm, task_dict, provide_description, num_fewshot, limit, bootstrap_i
if
not
isinstance
(
reqs
,
(
list
,
tuple
)):
reqs
=
[
reqs
]
for
i
,
req
in
enumerate
(
reqs
):
requests
[
req
.
req_type
].
append
(
req
)
requests
[
req
.
req
uest
_type
].
append
(
req
)
# i: index in requests for a single task instance
# doc_id: unique id that we can get back to a doc using `docs`
requests_origin
[
req
.
req_type
].
append
((
i
,
task_name
,
doc
,
doc_id
))
requests_origin
[
req
.
req
uest
_type
].
append
((
i
,
task_name
,
doc
,
doc_id
))
# all responses for each (task, doc)
process_res_queue
=
collections
.
defaultdict
(
list
)
...
...
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