-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from EvolvingLMMs-Lab/pufanyi/mmbench_fix
[Tasks] Fix MMBench
- Loading branch information
Showing
12 changed files
with
69 additions
and
113 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,22 @@ | ||
dataset_path: lmms-lab/MMBench | ||
dataset_kwargs: | ||
token: True | ||
doc_to_target: "answer" | ||
dataset_name: "cn" | ||
output_type: generate_until | ||
doc_to_visual: !function cn_utils.mmbench_doc_to_visual | ||
doc_to_text: !function cn_utils.mmbench_doc_to_text | ||
generation_kwargs: | ||
max_new_tokens: 256 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function cn_utils.mmbench_process_results | ||
model_specific_prompt_kwargs: | ||
default: | ||
pre_prompt: "" | ||
post_prompt: "\n请直接使用所提供的选项字母作为答案回答。" | ||
model_specific_generation_kwargs: | ||
llava: | ||
image_aspect_ratio: original |
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,25 @@ | ||
dataset_path: lmms-lab/MMBench | ||
dataset_kwargs: | ||
token: True | ||
doc_to_target: "answer" | ||
model_specific_prompt_kwargs: | ||
default: | ||
pre_prompt: "" | ||
post_prompt: "\nAnswer with the option's letter from the given choices directly." | ||
doc_to_visual: !function en_utils.mmbench_doc_to_visual | ||
doc_to_text: !function en_utils.mmbench_doc_to_text | ||
doc_to_target: "answer" | ||
process_results: !function en_utils.mmbench_process_results | ||
model_specific_generation_kwargs: | ||
llava: | ||
image_aspect_ratio: original | ||
output_type: generate_until | ||
dataset_name: "en" | ||
generation_kwargs: | ||
until: | ||
- "ASSISTANT:" | ||
max_new_tokens: 1024 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false |
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
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
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
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
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
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 |
---|---|---|
@@ -1,33 +1,7 @@ | ||
dataset_path: lmms-lab/MMBench_CN | ||
dataset_kwargs: | ||
token: True | ||
group: mmbench_cn | ||
task: "mmbench_cn_dev" | ||
dataset_name: "default" | ||
test_split: "dev" | ||
output_type: generate_until | ||
doc_to_visual: !function cn_utils.mmbench_doc_to_visual | ||
doc_to_text: !function cn_utils.mmbench_doc_to_text | ||
doc_to_target: "answer" | ||
generation_kwargs: | ||
max_new_tokens: 256 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function cn_utils.mmbench_process_results | ||
metric_list: | ||
- metric: submission | ||
higher_is_better: true | ||
aggregation: !function cn_utils.mmbench_aggregate_dev_results | ||
metadata: | ||
version: 0.0 | ||
gpt_eval_model_name: "gpt-3.5-turbo" | ||
quick_extract: true | ||
|
||
model_specific_prompt_kwargs: | ||
default: | ||
pre_prompt: "" | ||
post_prompt: "\n请直接使用所提供的选项字母作为答案回答。" | ||
model_specific_generation_kwargs: | ||
llava: | ||
image_aspect_ratio: original | ||
include: _default_template_mmbench_cn_yaml |
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 |
---|---|---|
@@ -1,33 +1,7 @@ | ||
dataset_path: lmms-lab/MMBench_CN | ||
dataset_kwargs: | ||
token: True | ||
task: "mmbench_cn_test" | ||
dataset_name: "default" | ||
task: mmbench_cn_test | ||
test_split: test | ||
output_type: generate_until | ||
doc_to_visual: !function cn_utils.mmbench_doc_to_visual | ||
doc_to_text: !function cn_utils.mmbench_doc_to_text | ||
doc_to_target: "answer" | ||
generation_kwargs: | ||
max_new_tokens: 256 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function cn_utils.mmbench_process_results | ||
metric_list: | ||
- metric: submission | ||
aggregation: !function cn_utils.mmbench_aggregate_test_results | ||
higher_is_better: true | ||
metadata: | ||
version: 0.0 | ||
gpt_eval_model_name: "gpt-3.5-turbo" | ||
quick_extract: true | ||
|
||
model_specific_prompt_kwargs: | ||
default: | ||
pre_prompt: "" | ||
post_prompt: "\n请直接使用所提供的选项字母作为答案回答。" | ||
model_specific_generation_kwargs: | ||
llava: | ||
image_aspect_ratio: original | ||
include: _default_template_mmbench_cn_yaml |
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
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 |
---|---|---|
@@ -1,23 +1,7 @@ | ||
dataset_path: lmms-lab/MMBench_EN | ||
dataset_kwargs: | ||
token: True | ||
task: "mmbench_en_dev" | ||
test_split: dev | ||
output_type: generate_until | ||
doc_to_visual: !function en_utils.mmbench_doc_to_visual | ||
doc_to_text: !function en_utils.mmbench_doc_to_text | ||
doc_to_target: "answer" | ||
generation_kwargs: | ||
until: | ||
- "ASSISTANT:" | ||
max_new_tokens: 1024 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function en_utils.mmbench_process_results | ||
include: _default_template_mmbench_en_yaml | ||
metric_list: | ||
- metric: submission | ||
aggregation: !function en_utils.mmbench_aggregate_dev_results | ||
metadata: | ||
version: 0.0 | ||
higher_is_better: true |
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 |
---|---|---|
@@ -1,22 +1,7 @@ | ||
dataset_path: lmms-lab/MMBench_EN | ||
dataset_kwargs: | ||
token: True | ||
task: "mmbench_en_test" | ||
test_split: test | ||
output_type: generate_until | ||
doc_to_visual: !function en_utils.mmbench_doc_to_visual | ||
doc_to_text: !function en_utils.mmbench_doc_to_text | ||
doc_to_target: "answer" | ||
generation_kwargs: | ||
max_new_tokens: 256 | ||
temperature: 0 | ||
top_p: 0 | ||
num_beams: 1 | ||
do_sample: false | ||
process_results: !function en_utils.mmbench_process_results | ||
include: _default_template_mmbench_en_yaml | ||
metric_list: | ||
- metric: submission | ||
aggregation: !function en_utils.mmbench_aggregate_test_results | ||
higher_is_better: true | ||
metadata: | ||
version: 0.0 |