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
b2598de8
Commit
b2598de8
authored
Aug 01, 2023
by
lintangsutawika
Browse files
process int label to string for greedy_until
parent
8da6033f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lm_eval/api/task.py
lm_eval/api/task.py
+3
-0
No files found.
lm_eval/api/task.py
View file @
b2598de8
...
...
@@ -978,6 +978,9 @@ class ConfigurableTask(Task):
elif
self
.
OUTPUT_TYPE
==
"greedy_until"
:
gold
=
self
.
doc_to_target
(
doc
)
if
type
(
gold
)
==
int
:
choices
=
self
.
doc_to_choice
(
doc
)
gold
=
choices
[
gold
]
for
key
,
result
in
zip
(
self
.
_metric_fn_list
.
keys
(),
results
):
if
self
.
multiple_target
:
...
...
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