afrimgsm_common_yaml 938 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
group: mgsm_direct
task: afrimgsm_direct
dataset_path: masakhane/afrimgsm
output_type: generate_until
training_split: train
test_split: test
fewshot_split: train
target_delimiter: ""
doc_to_target: '{% if answer is not none %}{{answer}}{% else %}{{answer_number|string}}{% endif %}'
doc_to_text: '{% if answer is not none %}{{question+"\nAnswer:"}}{% else %}{{"Question: "+question+"\nAnswer:"}}{% endif %}'
generation_kwargs:
  until:
JessicaOjo's avatar
JessicaOjo committed
13
14
15
16
    - "\n\n"
    - "\n"
  do_sample: false
  temperature: 0.0
17
filter_list:
JessicaOjo's avatar
JessicaOjo committed
18
19
20
21
  - name: remove_whitespace
    filter:
      - function: remove_whitespace
      - function: take_first
22
  - filter:
JessicaOjo's avatar
JessicaOjo committed
23
    - function: regex
24
      group_select: -1
JessicaOjo's avatar
JessicaOjo committed
25
      regex_pattern: (-?[$0-9.,]{2,})|(-?[0-9]+)
26
27
28
    - function: take_first
    name: flexible-extract
metric_list:
JessicaOjo's avatar
JessicaOjo committed
29
30
31
32
33
  - metric: exact_match
    aggregation: mean
    higher_is_better: true
    ignore_case: true
    ignore_punctuation: true
34
35
metadata:
  version: 1.0