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
e1a7a39c
Unverified
Commit
e1a7a39c
authored
May 22, 2025
by
Baber Abbasi
Committed by
GitHub
May 22, 2025
Browse files
change multimodal check in evaluate (#3013)
changed multimodal check from strict equality
parent
29ea6832
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-1
No files found.
lm_eval/evaluator.py
View file @
e1a7a39c
...
@@ -483,7 +483,7 @@ def evaluate(
...
@@ -483,7 +483,7 @@ def evaluate(
for
task_output
in
eval_tasks
:
for
task_output
in
eval_tasks
:
task
:
Task
=
task_output
.
task
task
:
Task
=
task_output
.
task
if
getattr
(
lm
,
"MULTIMODAL"
,
False
)
!=
getattr
(
task
,
"MULTIMODAL"
,
False
):
if
getattr
(
task
,
"MULTIMODAL"
,
False
)
and
not
getattr
(
lm
,
"MULTIMODAL"
,
False
):
incompatible_tasks
.
append
(
task_output
.
task_name
)
incompatible_tasks
.
append
(
task_output
.
task_name
)
elif
getattr
(
task
,
"UNSAFE_CODE"
,
False
)
and
not
confirm_run_unsafe_code
:
elif
getattr
(
task
,
"UNSAFE_CODE"
,
False
)
and
not
confirm_run_unsafe_code
:
raise
ValueError
(
raise
ValueError
(
...
...
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