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
56373978
Commit
56373978
authored
May 07, 2024
by
lintangsutawika
Browse files
reversed task list
parent
2a817535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+1
-2
No files found.
lm_eval/tasks/__init__.py
View file @
56373978
...
@@ -164,7 +164,6 @@ class TaskManager:
...
@@ -164,7 +164,6 @@ class TaskManager:
if
subtask_list
==
-
1
:
if
subtask_list
==
-
1
:
group_config
=
self
.
_get_config
(
name_or_config
)
group_config
=
self
.
_get_config
(
name_or_config
)
subtask_list
=
group_config
[
"task"
]
subtask_list
=
group_config
[
"task"
]
group_name
=
ConfigurableGroup
(
config
=
group_config
)
group_name
=
ConfigurableGroup
(
config
=
group_config
)
if
isinstance
(
name_or_config
,
dict
):
if
isinstance
(
name_or_config
,
dict
):
...
@@ -229,7 +228,7 @@ class TaskManager:
...
@@ -229,7 +228,7 @@ class TaskManager:
update_config
=
update_config
,
update_config
=
update_config
,
yaml_path
=
yaml_path
,
yaml_path
=
yaml_path
,
)
)
return
{
group_name
:
dict
(
collections
.
ChainMap
(
*
map
(
fn
,
subtask_list
)))}
return
{
group_name
:
dict
(
collections
.
ChainMap
(
*
map
(
fn
,
reversed
(
subtask_list
)))
)
}
def
load_task_or_group
(
self
,
task_list
:
Optional
[
Union
[
str
,
list
]]
=
None
)
->
dict
:
def
load_task_or_group
(
self
,
task_list
:
Optional
[
Union
[
str
,
list
]]
=
None
)
->
dict
:
"""Loads a dictionary of task objects from a list
"""Loads a dictionary of task objects from a 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