Skip to content

Commit d2ea115

Browse files
authored
Add refs
1 parent 09c4002 commit d2ea115

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bigcode_eval/tasks/humanevalpack.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_prompt(self, prompt_base, instruction, context=None):
213213
elif self.prompt == "octogeex":
214214
prompt = f'Question: {inp.strip()}\n\nAnswer:\n{prompt_base}'
215215
elif self.prompt == "starchat":
216-
# https://huggingface.co/HuggingFaceH4/starchat-beta
216+
# https://hf.co/HuggingFaceH4/starchat-beta
217217
prompt = f'<|system|>\n<|end|>\n<|user|>\n{inp}<|end|>\n<|assistant|>\n{prompt_base}'
218218
elif self.prompt == "starcodercommit":
219219
prompt = f'<commit_before><commit_msg>{inp}<commit_after>{prompt_base}'
@@ -224,12 +224,16 @@ def get_prompt(self, prompt_base, instruction, context=None):
224224
# https://github.com/nlpxucan/WizardLM/blob/main/WizardCoder/src/humaneval_gen.py#L37
225225
prompt = f'Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{inp}\n\n### Response:\n{prompt_base}'
226226
elif self.prompt == "codellama":
227+
# https://huggingface.co/codellama
227228
prompt = f"[INST] {inp.strip()} [/INST] {prompt_base}"
228229
elif self.prompt in ["tulu", "gritlm"]:
230+
# https://huggingface.co/GritLM/GritLM-7B
229231
prompt = f"<|user|>\n{inp}\n<|assistant|>\n{prompt_base}"
230232
elif self.prompt == "zephyr":
233+
# https://hf.co/HuggingFaceH4/zephyr-7b-beta
231234
prompt = f"<|user|>\n{inp}</s>\n<|assistant|>\n{prompt_base}"
232235
elif self.prompt == "yi":
236+
# https://hf.co/01-ai/Yi-34B-Chat
233237
prompt = f"<|im_start|>user\n{inp}<|im_end|>\n<|im_start|>assistant\n{prompt_base}"
234238
else:
235239
raise ValueError(f"The --prompt argument {self.prompt} wasn't provided or isn't supported")

0 commit comments

Comments
 (0)