math500.yaml 1.14 KB
Newer Older
Baber's avatar
Baber committed
1
task: math500
Baber's avatar
nit  
Baber committed
2
dataset_path: HuggingFaceH4/MATH-500
Baber's avatar
Baber committed
3
4
5
6
7
8
process_docs: !function utils.process_docs
output_type: generate_until
test_split: test
doc_to_text: "Solve the following math problem efficiently and clearly:\n\n- For simple problems (2 steps or fewer):\nProvide a concise solution with minimal explanation.\n\n- For complex problems (3 steps or more):\nUse this step-by-step format:\n\n## Step 1: [Concise description]\n[Brief explanation and calculations]\n\n## Step 2: [Concise description]\n[Brief explanation and calculations]\n\n...\n\nRegardless of the approach, always conclude with:\n\nTherefore, the final answer is: $\\\\boxed{answer}$. I hope it is correct.\n\nWhere [answer] is just the final number or expression that solves the problem.\n\nProblem: {{ problem }}"
process_results: !function utils.process_results
doc_to_target: "{{answer if few_shot is undefined else solution}}"
Baber's avatar
Baber committed
9
repeats: 2
Baber's avatar
Baber committed
10
generation_kwargs:
Baber's avatar
nit  
Baber committed
11
  until: []
Baber's avatar
Baber committed
12
  max_gen_toks: 5120
Baber's avatar
Baber committed
13
14
  do_sample: true
  temperature: 0.6
Baber's avatar
Baber committed
15
16
17
18
19
20
21
22
23
metric_list:
  - metric: exact_match
    aggregation: mean
    higher_is_better: true
num_fewshot: 0
metadata:
  version: 1.0
dataset_kwargs:
  trust_remote_code: true