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

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

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 14, 05:30 UTC

[Bugfix] Fix wrong method name in Intern-S1 image processor (#22417)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>

Cyrus Leung committed Aug 7, 2025 at 11:05 UTC 04cf435d95fee3e4c0ba521583c1a64bc348c89d
1 file changed +1 -1
vllm/model_executor/models/interns1.py
+1 -1
@@ -161,7 +161,7 @@ class InternS1ProcessingInfo(BaseProcessingInfo):
161 if not isinstance(processor, GotOcr2ImageProcessorFast):
162 raise ValueError(f'GotOcr2ImageProcessorFast is expected but got '
163 f'{type(processor)}')
164 - num_image_patches = processor.get_number_of_image_tokens(
164 + num_image_patches = processor.get_number_of_image_patches(
165 image_height, image_width, images_kwargs=dict())
166 num_image_tokens = self.get_hf_processor(
167 ).image_seq_length * num_image_patches