Skip to content

Commit 47adf38

Browse files
author
Raymond Li
committed
add filename to stop tokens
1 parent 996fb14 commit 47adf38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lm_eval/tasks/humaneval.py

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

5252
def __init__(self, strip_prompt):
5353
super().__init__(
54-
stop_words=["\nclass", "\ndef", "\n#", "\n@", "\nprint", "\nif", "\n```"],
54+
stop_words=["\nclass", "\ndef", "\n#", "\n@", "\nprint", "\nif", "\n```", "<filename>"],
5555
requires_execution=True,
5656
)
5757
self.strip_prompt = strip_prompt

0 commit comments

Comments
 (0)