This commit is contained in:
Georgi Gerganov 2026-02-16 10:56:58 +02:00
parent f762a71d56
commit c6315655b7
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
1 changed files with 5 additions and 6 deletions

View File

@ -32,17 +32,17 @@ GRADER_PATTERNS = {
SAMPLE_ANSWERS = {
"aime": [
"42",
"123",
"-123",
"999"
],
"gsm8k": [
"42",
"123",
"-123",
"999"
],
"gpqa": [
"A",
"B",
"D",
"C"
],
}
@ -331,9 +331,8 @@ class Grader:
f"Example {i+1}: {ans}" for i, ans in enumerate(sample_answers)
])
prompt = f"""Extract the answer from this response:
prompt = f"""Extract the answer from the following response. Here are some extracted answers to demonstrate what you are supposed to output:
Here are some example answers:
{sample_examples}
===
@ -342,7 +341,7 @@ Response: {pred}
===
Please provide only the extracted answer, nothing else. If there is no clear answer in the response, reply with 'no answer'."""
Please provide only the extracted answer, nothing else. If there is no clear answer that can be extracted from the response, reply with 'no answer'."""
url = f"{self.judge_server_url}/v1/chat/completions"
headers = {"Content-Type": "application/json"}
data = {