dataset_path: mrlbenchmarks/global-piqa-parallel
output_type: generate_until
test_split: test
doc_to_text: "{{prompt}}\n\nOption A: {{solution0}}\n\nOption B: {{solution1}}\n\nOption C: {{solution2}}\n\nOption D: {{solution3}}\n\nYour response should end with \"The best answer is: [answer_letter]\" where [answer_letter] is one of A, B, C, or D."
doc_to_target: "{{['A', 'B', 'C', 'D'][label]}}"
generation_kwargs:
  do_sample: true
  temperature: 0.8
  top_p: 0.95
  max_gen_toks: 2048
  until: [ ]
filter_list:
  - name: strict_match
    filter:
      - function: "regex"
        regex_pattern: '[Tt]he (?:[Bb]est [Aa]nswer|[Ff]inal [Aa]nswer|[Aa]nswer)[^A-D]*([A-D])|[Aa]nswer\s*:[^A-D]*([A-D])|\\boxed\{([A-D])\}'
        group_select: -1
      - function: take_first
metric_list:
  - metric: exact_match
    aggregation: mean
    higher_is_better: true
    ignore_case: true
    ignore_punctuation: true