cot_yaml 993 Bytes
Newer Older
Israel Abebe Azime's avatar
Israel Abebe Azime committed
1
# This file will be included in the generated language-specific task configs.
JessicaOjo's avatar
JessicaOjo committed
2
3
4
5
6
# It doesn't have a yaml file extension as it is not meant to be imported directly by the harness.
group:
    - mgsm
    - afrimgsm
    - afrimgsm_en_cot
Israel Abebe Azime's avatar
Israel Abebe Azime committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dataset_path: masakhane/afrimgsm
dataset_name: null  # Overridden by language-specific config.
output_type: generate_until
training_split: train
test_split: test
generation_kwargs:
  until:
    - "\n\n"
    - "\n"
  do_sample: false
  temperature: 0.0
target_delimiter: " "
metric_list:
  - metric: exact_match
    aggregation: mean
    higher_is_better: true
    ignore_case: true
    ignore_punctuation: true
filter_list:
  - name: "strict-match"
    filter:
      - function: "regex"
        regex_pattern: "The answer is (\\-?[0-9\\.\\,]+)"
      - function: "take_first"
  - filter:
    - function: regex
      group_select: -1
      regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
    - function: take_first
    name: flexible-extract
metadata:
  version: 2.0