mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-18 05:25:02 +08:00
[Bugfix] use_fast failing to be propagated to Qwen2-VL image processor (#17838)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
e4ca6e3a99
commit
015815fe01
@ -145,9 +145,11 @@ class Qwen2_5OmniThinkerProcessingInfo(Qwen2AudioProcessingInfo,
|
|||||||
kwargs["fps"] = fps
|
kwargs["fps"] = fps
|
||||||
processor = self.ctx.get_hf_processor(
|
processor = self.ctx.get_hf_processor(
|
||||||
Qwen2_5OmniProcessor,
|
Qwen2_5OmniProcessor,
|
||||||
image_processor=self.get_image_processor(min_pixels=min_pixels,
|
image_processor=self.get_image_processor(
|
||||||
max_pixels=max_pixels,
|
min_pixels=min_pixels,
|
||||||
size=size),
|
max_pixels=max_pixels,
|
||||||
|
size=size,
|
||||||
|
use_fast=kwargs.get("use_fast")),
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
if not hasattr(processor, "audio_token"):
|
if not hasattr(processor, "audio_token"):
|
||||||
|
|||||||
@ -758,9 +758,11 @@ class Qwen2_5_VLProcessingInfo(Qwen2VLProcessingInfo):
|
|||||||
|
|
||||||
return self.ctx.get_hf_processor(
|
return self.ctx.get_hf_processor(
|
||||||
Qwen2_5_VLProcessor,
|
Qwen2_5_VLProcessor,
|
||||||
image_processor=self.get_image_processor(min_pixels=min_pixels,
|
image_processor=self.get_image_processor(
|
||||||
max_pixels=max_pixels,
|
min_pixels=min_pixels,
|
||||||
size=size),
|
max_pixels=max_pixels,
|
||||||
|
size=size,
|
||||||
|
use_fast=kwargs.get("use_fast")),
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -759,9 +759,11 @@ class Qwen2VLProcessingInfo(BaseProcessingInfo):
|
|||||||
) -> Qwen2VLProcessor:
|
) -> Qwen2VLProcessor:
|
||||||
return self.ctx.get_hf_processor(
|
return self.ctx.get_hf_processor(
|
||||||
Qwen2VLProcessor,
|
Qwen2VLProcessor,
|
||||||
image_processor=self.get_image_processor(min_pixels=min_pixels,
|
image_processor=self.get_image_processor(
|
||||||
max_pixels=max_pixels,
|
min_pixels=min_pixels,
|
||||||
size=size),
|
max_pixels=max_pixels,
|
||||||
|
size=size,
|
||||||
|
use_fast=kwargs.get("use_fast")),
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user