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
9169899b
Unverified
Commit
9169899b
authored
Nov 29, 2024
by
Baber Abbasi
Committed by
GitHub
Nov 29, 2024
Browse files
skip casting if predict_only (#2524)
parent
5680a2e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lm_eval/api/task.py
lm_eval/api/task.py
+4
-1
No files found.
lm_eval/api/task.py
View file @
9169899b
...
...
@@ -1503,7 +1503,10 @@ class ConfigurableTask(Task):
# we expect multiple_targets to be a list.
elif
self
.
multiple_target
:
gold
=
list
(
gold
)
elif
type
(
gold
)
is
not
type
(
result
):
elif
(
type
(
gold
)
is
not
type
(
result
)
and
"bypass"
not
in
self
.
_metric_fn_list
.
keys
()
):
# cast gold to the same type as result
gold
=
type
(
result
)(
gold
)
...
...
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