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
82cd972c
Commit
82cd972c
authored
Jul 01, 2024
by
lintangsutawika
Browse files
request_list edit
parent
1794975e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
lm_eval/api/task.py
lm_eval/api/task.py
+13
-10
No files found.
lm_eval/api/task.py
View file @
82cd972c
...
@@ -1340,17 +1340,20 @@ class ConfigurableTask(Task):
...
@@ -1340,17 +1340,20 @@ class ConfigurableTask(Task):
all_arg_list
=
[
arguments
,
aux_arguments
]
all_arg_list
=
[
arguments
,
aux_arguments
]
else
:
else
:
all_arg_list
=
[
arguments
]
all_arg_list
=
[
arguments
]
request_list
=
[]
for
arg_list
in
all_arg_list
:
for
arg_list
in
all_arg_list
:
request_list
=
[
request_list
.
extend
(
Instance
(
[
request_type
=
"loglikelihood"
,
Instance
(
doc
=
doc
,
request_type
=
"loglikelihood"
,
arguments
=
arg
,
doc
=
doc
,
idx
=
i
,
arguments
=
arg
,
**
kwargs
,
idx
=
i
,
)
**
kwargs
,
for
i
,
arg
in
enumerate
(
arg_list
)
)
]
for
i
,
arg
in
enumerate
(
arg_list
)
]
)
return
request_list
return
request_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