Skip to content

Commit 1d3f446

Browse files
authored
Update humaneval.py
1 parent 69fbc99 commit 1d3f446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigcode_eval/tasks/humaneval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class GeneralHumanEval(Task):
4949

5050
def __init__(self, strip_prompt, k=[1, 10, 100], num_workers=16, timeout=3.0):
5151
super().__init__(
52-
stop_words=["\nclass", "\ndef", "\n#", "\n@", "\nprint", "\nif", "\n```"],
52+
stop_words=["\nclass", "\ndef", "\n#", "\n@", "\nprint", "\nif", "\n```", "<file_sep>"],
5353
requires_execution=True,
5454
)
5555
self.strip_prompt = strip_prompt

0 commit comments

Comments
 (0)