ai2d.yaml 972 Bytes
Newer Older
Baber's avatar
Baber committed
1
dataset_path: lmms-lab/ai2d
Baber's avatar
fix  
Baber committed
2
task: ai2d
Baber's avatar
Baber committed
3
4
test_split: test
output_type: generate_until
Baber's avatar
fix  
Baber committed
5
6
7
8
9
10
11
doc_to_image:
  - image
doc_to_text: "<image>Look at the scientific diagram carefully and answer the following question: {{question | capitalize}}\n{% for option in options -%}{{['A', 'B', 'C', 'D', 'E', 'F'][loop.index0]}}. {{option | capitalize}}\n{% endfor -%}

Think step by step and finally respond to the question with only the correct option number as \"FINAL ANSWER\"."
gen_prefix: "Let's think step by step."
doc_to_target: "{{ ['A', 'B', 'C', 'D', 'E', 'F'][answer|int] }}"
Baber's avatar
Baber committed
12
13
14
15
16
generation_kwargs:
  until: []
  temperature: 0.0
  do_sample: false
  max_gen_toks: 512
Baber's avatar
fix  
Baber committed
17
18
19
20
21
22
filter_list:
  - name: "strict-match"
    filter:
      - function: "regex"
        regex_pattern: "(?:[`\\*_]*(?:FINAL ANSWER|Final Answer)[`\\*_]*)[:\\s]*[`\\*_]*([A-D])[`\\*_]*"
      - function: "take_first"
Baber's avatar
Baber committed
23
24
25
26
27
28
metric_list:
  - metric: acc
    aggregation: mean
    higher_is_better: true
metadata:
  version: 0.0