From 4a754fcf15993c53309148ababa230df870aa47b Mon Sep 17 00:00:00 2001 From: ameyanjarlekar <40833548+ameyanjarlekar@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:50:49 -0700 Subject: [PATCH] [Bugfix] Missing thumbnail from NVLM-D processor (#14633) Signed-off-by: ameyanjarlekar --- vllm/model_executor/models/nvlm_d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/model_executor/models/nvlm_d.py b/vllm/model_executor/models/nvlm_d.py index 1e1760491a974..0f5cbf082d9d4 100644 --- a/vllm/model_executor/models/nvlm_d.py +++ b/vllm/model_executor/models/nvlm_d.py @@ -45,7 +45,7 @@ class NVLMProcessor(BaseInternVLProcessor): raise NotImplementedError("Embedding inputs are not supported") tile_pos_identifiers = [f"" for i in range(1, num_patches)] - if self.use_thumbnail and num_patches != 1: + if self.use_thumbnail: tile_pos_identifiers += [""] context_size = feature_size // num_patches