Skip to content

Commit a94973a

Browse files
committed
fix
1 parent ffa43cc commit a94973a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lighteval/tasks/extended/misc/instruct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def prompt(self, line, task_name: str = None):
303303
def mmlu_pro(line, task_name: str = None):
304304
num_choices = len(line["options"])
305305
instruction = f"Given the following question about {line['category']} and answer choices, output the letter corresponding to the correct answer. The last line of your response should be of the following format: 'Answer: $LETTER' (without quotes) where LETTER is one of {' ,'.join(LETTER_INDICES[: num_choices - 1])}, or {LETTER_INDICES[num_choices]}. Think step by step before answering.\n\n"
306-
query = f"{instruction}###\nQuery:\n{line['question']}\n###\nChoices:\n"
306+
query = f"{instruction}###\nQuery:\n{line['question']}\n###\nChoices:"
307307
query += "".join([f"\n{key}) {choice}" for key, choice in zip(LETTER_INDICES, line["options"])])
308308

309309
return Doc(

0 commit comments

Comments
 (0)