Skip to content

Commit

Permalink
merge model_specific_prompt_kwargs and dataset_name into each task yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsuMiyai committed May 31, 2024
1 parent d224794 commit 0581ab3
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 198 deletions.
23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmaad_instruction_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmaad_option_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmiasd_base_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmiasd_instruction_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmiasd_option_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmivqd_base_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmivqd_instruction_yaml

This file was deleted.

23 changes: 0 additions & 23 deletions lmms_eval/tasks/mmupd/_default_template_mmivqd_option_yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
dataset_path: MM-UPD/MM-UPD
doc_to_target: "answer"
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\n"
doc_to_visual: !function utils.mmupd_doc_to_visual
doc_to_text: !function utils.mmupd_doc_to_text
doc_to_target: "answer"
Expand All @@ -12,7 +8,6 @@ model_specific_generation_kwargs:
llava:
image_aspect_ratio: original
output_type: generate_until
dataset_name: mmaad_base
generation_kwargs:
until:
- "ASSISTANT:"
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmaad_base.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmaad_base"
test_split: test
include: _default_template_mmaad_base_yaml
dataset_name: mmaad_base
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\n"
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmaad_base
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmaad_instruction.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmaad_instruction"
test_split: test
include: _default_template_mmaad_instruction_yaml
dataset_name: mmaad_base
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\nIf all the options are incorrect, answer \"F. None of the above\"."
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmaad_instruction
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmaad_option.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmaad_option"
test_split: test
include: _default_template_mmaad_option_yaml
dataset_name: mmaad_option
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\nAnswer with the option's letter from the given choices directly."
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmaad_option
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmiasd_base.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmiasd_base"
test_split: test
include: _default_template_mmiasd_base_yaml
dataset_name: mmiasd_base
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\n"
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmiasd_base
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmiasd_instruction.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmiasd_instruction"
test_split: test
include: _default_template_mmiasd_instruction_yaml
dataset_name: mmiasd_base
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\nIf all the options are incorrect, answer \"F. None of the above\"."
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmiasd_instruction
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmiasd_option.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmiasd_option"
test_split: test
include: _default_template_mmiasd_option_yaml
dataset_name: mmiasd_option
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\nAnswer with the option's letter from the given choices directly."
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmiasd_option
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmivqd_base.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmivqd_base"
test_split: test
include: _default_template_mmivqd_base_yaml
dataset_name: mmivqd_base
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\n"
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmivqd_base
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmivqd_instruction.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmivqd_instruction"
test_split: test
include: _default_template_mmivqd_instruction_yaml
dataset_name: mmivqd_base
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\nIf the given image is irrelevant to the question, answer \"F. The image and question are irrelevant.\"."
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmivqd_instruction
Expand Down
7 changes: 6 additions & 1 deletion lmms_eval/tasks/mmupd/mmivqd_option.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
task: "mmivqd_option"
test_split: test
include: _default_template_mmivqd_option_yaml
dataset_name: mmivqd_option
model_specific_prompt_kwargs:
default:
pre_prompt: ""
post_prompt: "\nAnswer with the option's letter from the given choices directly."
include: _default_template_mmupd_yaml
metric_list:
- metric: gpt_eval_score
aggregation: !function utils.mmivqd_option
Expand Down

0 comments on commit 0581ab3

Please sign in to comment.