Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM] Ai2d #2542

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions lm_eval/tasks/ai2d/ai2d.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dataset_path: lmms-lab/ai2d
test_split: test
output_type: generate_until
doc_to_image: !function utils.doc_to_image
doc_to_text: "<image>{{question | capitalize}}
{{% for option in options %}}
{{loop.index | chr(64)}}. {{option | capitalize}}
{{% endfor %}}"
doc_to_target: "{{options[answer]}}"
generation_kwargs:
until: []
temperature: 0.0
do_sample: false
max_gen_toks: 512
metric_list:
- metric: acc
aggregation: mean
higher_is_better: true
metadata:
version: 0.0
Loading