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
f4b4f486
Commit
f4b4f486
authored
Jul 30, 2025
by
Baber
Browse files
fix
parent
c75c66e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/api/task.py
lm_eval/api/task.py
+2
-1
No files found.
lm_eval/api/task.py
View file @
f4b4f486
...
...
@@ -1488,8 +1488,9 @@ class ConfigurableTask(Task):
# log(P(choice|ctx) / P(choice)) = log(P(choice|ctx)) - log(P(choice))
# in other words normalizing by subtracting the unconditional logprob of each choice.
# TODO: should these be strided? will have to modify the processing in process_results if so
# TODO: Allow setting of custom prompt
aux_arguments
=
[
(
""
,
f
"
{
target_delimiter
}{
choice
}
"
)
for
choice
in
choices
(
"
Answer:
"
,
f
"
{
target_delimiter
}{
choice
}
"
)
for
choice
in
choices
]
arguments
.
extend
(
aux_arguments
)
...
...
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