gsm8k.yaml 945 Bytes
Newer Older
Lintang Sutawika's avatar
Lintang Sutawika committed
1
tag:
2
  - math_word_problems
3
task: gsm8k
4
5
dataset_path: gsm8k
dataset_name: main
6
output_type: generate_until
7
8
9
10
11
12
13
14
15
16
17
18
19
20
training_split: train
fewshot_split: train
test_split: test
doc_to_text: "Question: {{question}}\nAnswer:"
doc_to_target: "{{answer}}" #" {{answer.split('### ')[-1].rstrip()}}"
metric_list:
  - metric: exact_match
    aggregation: mean
    higher_is_better: true
    ignore_case: true
    ignore_punctuation: false
    regexes_to_ignore:
      - ","
      - "\\$"
haileyschoelkopf's avatar
haileyschoelkopf committed
21
      - "(?s).*#### "
22
      - "\\.$"
23
24
25
generation_kwargs:
  until:
    - "Question:"
26
27
    - "</s>"
    - "<|im_end|>"
28
  do_sample: false
29
  temperature: 0.0
30
repeats: 3
31
num_fewshot: 5
haileyschoelkopf's avatar
haileyschoelkopf committed
32
filter_list:
33
  - name: "strict-match"
haileyschoelkopf's avatar
haileyschoelkopf committed
34
35
36
    filter:
      - function: "regex"
        regex_pattern: "#### (\\-?[0-9\\.\\,]+)"
37
38
39
40
41
  - name: "flexible-extract"
    filter:
      - function: "regex"
        group_select: -1
        regex_pattern: "(-?[$0-9.,]{2,})|(-?[0-9]+)"
lintangsutawika's avatar
lintangsutawika committed
42
metadata:
43
  version: 3.0