-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AI2D evaluation without masks (#325)
* Fix `LMMS_EVAL_PLUGINS` * Add AI2D (without masks)
- Loading branch information
1 parent
1311c6e
commit 8c2d89b
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
dataset_path: Efficient-Large-Model/ai2d-no-mask | ||
task: "ai2d_no_mask" | ||
dataset_kwargs: | ||
token: True | ||
test_split: test | ||
output_type: generate_until | ||
doc_to_visual: !function utils.ai2d_doc_to_visual | ||
doc_to_text: !function utils.ai2d_doc_to_text | ||
doc_to_target: !function utils.ai2d_doc_to_target | ||
|
||
lmms_eval_specific_kwargs: | ||
default: | ||
prompt_format: mcq | ||
pre_prompt: "" | ||
post_prompt: "\nAnswer with the option's letter from the given choices directly." | ||
gpt4v: | ||
prompt_format: mcq | ||
pre_prompt: "" | ||
post_prompt: "\nAbove choices are given in {option}. {content} format.\nPlease answer with the option letter from the given choices directly." | ||
qwen_vl: | ||
prompt_format: qa | ||
pre_prompt: "" | ||
post_prompt: " Answer:" | ||
xcomposer2_4khd: | ||
prompt_format: mcq_xcomposer | ||
pre_prompt: "[UNUSED_TOKEN_146]user\nQuestion: " | ||
post_prompt: "[UNUSED_TOKEN_145]\n[UNUSED_TOKEN_146]assistant\nThe answer is" | ||
|
||
model_specific_target_kwargs: | ||
default: "mcq" | ||
qwen_vl: "qa" | ||
|
||
generation_kwargs: | ||
max_new_tokens: 16 | ||
temperature: 0 | ||
do_sample: False | ||
|
||
filter_list: | ||
- name: "flexible-extract" | ||
filter: | ||
- function: !function utils.MultiChoiceRegexFilter | ||
group_select: 0 | ||
ignore_case: true | ||
ignore_punctuation: true | ||
regex_pattern: "([A-Z])\\." | ||
|
||
metric_list: | ||
- metric: exact_match | ||
aggregation: mean | ||
higher_is_better: true | ||
ignore_case: true | ||
ignore_punctuation: true | ||
|
||
metadata: | ||
- version: 0.0 |