File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tests/models/decoder_only/vision_language Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99
1010import pytest
1111from packaging .version import Version
12- from transformers import AutoModelForPreTraining , AutoModelForVision2Seq
12+ from transformers import (AutoModelForImageTextToText , AutoModelForPreTraining ,
13+ AutoModelForVision2Seq )
1314from transformers import __version__ as TRANSFORMERS_VERSION
1415
1516from vllm .platforms import current_platform
163164 img_idx_to_prompt = lambda idx : "<fim_prefix><|img|><fim_suffix>\n " ,
164165 max_model_len = 4096 ,
165166 max_num_seqs = 2 ,
167+ auto_cls = AutoModelForImageTextToText ,
166168 single_image_prompts = IMAGE_ASSETS .prompts ({
167169 "stop_sign" : "<vlm_image>Please describe the image shortly." ,
168170 "cherry_blossom" : "<vlm_image>Please infer the season with reason." ,
You can’t perform that action at this time.
0 commit comments