Skip to content

Commit db6f28d

Browse files
authored
[Bugfix] Fix HF format InternVL large variants video processing (#27330)
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
1 parent 14e2f12 commit db6f28d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vllm/model_executor/models/interns1.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ class InternS1ProcessingInfo(BaseProcessingInfo):
182182
def get_hf_processor(self, **kwargs: object) -> InternVLProcessor:
183183
hf_processor = self.ctx.get_hf_processor(InternVLProcessor, **kwargs)
184184
hf_processor.video_processor = cached_video_processor_from_config(
185-
self.ctx.model_config, processor_cls=InternVLVideoProcessor, **kwargs
185+
self.ctx.model_config,
186+
processor_cls=InternVLVideoProcessor,
187+
size=hf_processor.image_processor.size,
188+
**kwargs,
186189
)
187190
return hf_processor
188191

0 commit comments

Comments
 (0)