Skip to content

Commit 094c7cc

Browse files
authored
Merge pull request #208 from bigcode-project/aurora-prompt
Add prompt
2 parents e54f33d + 974c7ed commit 094c7cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigcode_eval/tasks/humanevalpack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def get_prompt(self, prompt_base, instruction, context=None):
239239
prompt = f"<|im_start|>user\n{inp}<|im_end|>\n<|im_start|>assistant\n{prompt_base}"
240240
elif self.prompt == "codellama-70b":
241241
prompt = f"Source: user\n\n {inp.strip()} Source: assistant\nDestination: user \n\n{prompt_base}"
242+
elif self.prompt == "aurora-m":
243+
prompt = f'### Instruction:\n{inp}\n### Response:\n{prompt_base}'
242244
else:
243245
raise ValueError(f"The --prompt argument {self.prompt} wasn't provided or isn't supported")
244246
# Strip off the final \n to make the tokens more natural

0 commit comments

Comments
 (0)