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
c314246d
Commit
c314246d
authored
Dec 14, 2023
by
momotori
Browse files
fix: _generate_configs.py
parent
a7707c76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/tasks/bbh/_generate_configs.py
lm_eval/tasks/bbh/_generate_configs.py
+1
-2
No files found.
lm_eval/tasks/bbh/_generate_configs.py
View file @
c314246d
...
...
@@ -47,10 +47,9 @@ if __name__ == "__main__":
prefix_doc_to_text
=
""
if
args
.
fewshot
:
if
args
.
cot
:
prefix_doc_to_text
=
"
"
.
join
(
few_shot
)
prefix_doc_to_text
=
"
\n\n
"
.
join
(
few_shot
)
+
"
\n\n
"
else
:
for
shot
in
few_shot
:
shot
=
"Q:"
+
shot
try
:
answer
=
answer_regex
.
search
(
shot
)[
0
]
except
Exception
:
...
...
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