Skip to content

Commit 8d2d178

Browse files
DarkLight1337Mu Huai
authored andcommitted
[Bugfix] Fix Aria test loading (vllm-project#14823)
Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Mu Huai <[email protected]>
1 parent 9d30f7a commit 8d2d178

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/models/decoder_only/vision_language/test_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
import pytest
1111
from packaging.version import Version
12-
from transformers import AutoModelForPreTraining, AutoModelForVision2Seq
12+
from transformers import (AutoModelForImageTextToText, AutoModelForPreTraining,
13+
AutoModelForVision2Seq)
1314
from transformers import __version__ as TRANSFORMERS_VERSION
1415

1516
from vllm.platforms import current_platform
@@ -163,6 +164,7 @@
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.",

0 commit comments

Comments
 (0)