@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / ff5a30cfac
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

[Bugfix] Replace deprecated Qwen2VLImageProcessorFast with Qwen2VLImageProcessor (#42700)

Signed-off-by: abinggo <107740309+abinggo@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Roger Wang <hey@rogerw.io>

longguo committed Jun 13, 2026 at 12:04 UTC ff5a30cfac59c9c753b6340a59c6d8ed668752f0
1 file changed +3 -3
vllm/model_executor/models/qwen3_vl.py
+3 -3
@@ -34,7 +34,7 @@ import torch
34 import torch.nn as nn
35 import torch.nn.functional as F
36 from transformers import BatchFeature
37 -from transformers.models.qwen2_vl import Qwen2VLImageProcessorFast
37 +from transformers.models.qwen2_vl import Qwen2VLImageProcessor
38 from transformers.models.qwen2_vl.image_processing_qwen2_vl import (
39 smart_resize as image_smart_resize,
40 )
@@ -872,7 +872,7 @@ class Qwen3VLProcessingInfo(Qwen2VLProcessingInfo):
872 **kwargs,
873 )
874
875 - def get_image_processor(self, **kwargs: object) -> Qwen2VLImageProcessorFast:
875 + def get_image_processor(self, **kwargs: object) -> Qwen2VLImageProcessor:
876 return self.get_hf_processor(**kwargs).image_processor
877
878 def get_video_processor(self, **kwargs: object) -> Qwen3VLVideoProcessor:
@@ -892,7 +892,7 @@ class Qwen3VLProcessingInfo(Qwen2VLProcessingInfo):
892 image_height: int,
893 num_frames: int = 2,
894 do_resize: bool = True,
895 - image_processor: Qwen2VLImageProcessorFast | Qwen3VLVideoProcessor,
895 + image_processor: Qwen2VLImageProcessor | Qwen3VLVideoProcessor,
896 mm_kwargs: Mapping[str, object],
897 ) -> tuple[ImageSize, int]:
898 is_video = isinstance(image_processor, Qwen3VLVideoProcessor)