From d2ab348f07d166a2f2b12a542e414acae10302a0 Mon Sep 17 00:00:00 2001 From: Zifei Tong Date: Sun, 25 Aug 2024 05:46:57 +0900 Subject: [PATCH] Remove extra _calc_hd_transform_size call --- vllm/model_executor/models/phi3v.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/vllm/model_executor/models/phi3v.py b/vllm/model_executor/models/phi3v.py index 4854377215608..2e52531989232 100644 --- a/vllm/model_executor/models/phi3v.py +++ b/vllm/model_executor/models/phi3v.py @@ -400,8 +400,6 @@ def input_processor_for_phi3v(ctx: InputContext, llm_inputs: LLMInputs): image_data = multi_modal_data["image"] if isinstance(image_data, Image.Image): w, h = image_data.size - w, h = _calc_hd_transform_size(width=w, height=h) - image_feature_size = get_phi3v_image_feature_size(hf_config, input_width=w, input_height=h)