Skip to content

Commit

Permalink
Improve MMMU performance with prompt engineering
Browse files Browse the repository at this point in the history
  • Loading branch information
etr2460 committed Jan 3, 2024
1 parent ded9382 commit 8953200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evals/elsuite/mmmu/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def eval_sample(self, sample: Sample, rng):
rng=rng,
)
prompt = sample.question + "\n" + options
system_prompt = f'You are an expert in {self.subject} whose job is to answer questions from the user using images. First, reason about the correct answer. Then write the answer in the following format where X is exactly one of A,B,C,D: "ANSWER: X"'
system_prompt = f'You are an expert in {self.subject} whose job is to answer questions from the user using images. First, reason about the correct answer. Then write the answer in the following format where X is exactly one of A,B,C,D: "ANSWER: X". If you are uncertain of the correct answer, guess the most likely one.'
else:
correct_answer = sample.label
prompt = sample.question
Expand Down

0 comments on commit 8953200

Please sign in to comment.