From da91135baba27907237e178266441562626e9a38 Mon Sep 17 00:00:00 2001 From: Jianhong-Zhang Date: Fri, 3 Oct 2025 17:23:03 -0700 Subject: [PATCH] No Pan and Scan for Gemma3 --- vllm/model_executor/models/gemma3_mm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vllm/model_executor/models/gemma3_mm.py b/vllm/model_executor/models/gemma3_mm.py index b80a4ab5951c..22c94049121b 100644 --- a/vllm/model_executor/models/gemma3_mm.py +++ b/vllm/model_executor/models/gemma3_mm.py @@ -103,6 +103,10 @@ def get_num_crops( image_height: int, processor: Optional[Gemma3Processor], ) -> int: + # not supporting pan_and_scan + if is_hpu: + return 0 + if processor is None: processor = self.get_hf_processor()