Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bigcode_eval/tasks/humaneval.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class GeneralHumanEval(Task):

def __init__(self, strip_prompt, k=[1, 10, 100], num_workers=16, timeout=3.0):
super().__init__(
stop_words=["\nclass", "\ndef", "\n#", "\n@", "\nprint", "\nif", "\n```"],
stop_words=["\nclass", "\ndef", "\n#", "\n@", "\nprint", "\nif", "\n```", "<file_sep>"],
requires_execution=True,
)
self.strip_prompt = strip_prompt
Expand Down
2 changes: 1 addition & 1 deletion bigcode_eval/tasks/multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, language):
GeneralMultiPLE.DATASET_PATH,
self.DATASET_NAME,
revision=self.DATASET_REVISION)
stop_words = self.dataset["test"][0]["stop_tokens"]
stop_words = self.dataset["test"][0]["stop_tokens"] + ["<file_sep>"]
super().__init__(
stop_words=stop_words,
requires_execution=True,
Expand Down