Skip to content

Commit fd144c0

Browse files
ameyanjarlekarlulmer
authored andcommitted
[Bugfix] Missing thumbnail from NVLM-D processor (vllm-project#14633)
Signed-off-by: ameyanjarlekar <[email protected]> Signed-off-by: Louis Ulmer <[email protected]>
1 parent 7abc0bf commit fd144c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/models/nvlm_d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_image_repl_features(
4545
raise NotImplementedError("Embedding inputs are not supported")
4646

4747
tile_pos_identifiers = [f"<tile_{i}>" for i in range(1, num_patches)]
48-
if self.use_thumbnail and num_patches != 1:
48+
if self.use_thumbnail:
4949
tile_pos_identifiers += ["<tile_global_thumbnail>"]
5050

5151
context_size = feature_size // num_patches

0 commit comments

Comments
 (0)