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
00b7a61c
Unverified
Commit
00b7a61c
authored
May 21, 2024
by
Zafir Stojanovski
Committed by
GitHub
May 21, 2024
Browse files
fixed incorrect check for task type (replace `~` with `not`) (#1865)
parent
86319a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+3
-1
No files found.
lm_eval/tasks/__init__.py
View file @
00b7a61c
...
...
@@ -413,7 +413,9 @@ def get_task_dict(
)
string_task_name_list
=
[
task
for
task
in
task_name_list
if
isinstance
(
task
,
str
)]
others_task_name_list
=
[
task
for
task
in
task_name_list
if
~
isinstance
(
task
,
str
)]
others_task_name_list
=
[
task
for
task
in
task_name_list
if
not
isinstance
(
task
,
str
)
]
if
len
(
string_task_name_list
)
>
0
:
if
task_manager
is
None
:
task_manager
=
TaskManager
()
...
...
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