Skip to content

Commit 0426e3c

Browse files
authored
[Models][Qwen3VL] Optimise _validate_and_reshape_mm_tensor (vllm-project#26426)
Signed-off-by: Lukas Geiger <[email protected]>
1 parent 4bdf7ac commit 0426e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/models/qwen3_vl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def _validate_and_reshape_mm_tensor(
13041304
f"Got ndim: {mm_input.ndim} "
13051305
f"(shape={mm_input.shape})"
13061306
)
1307-
return torch.concat(list(mm_input))
1307+
return mm_input.reshape(-1, mm_input.shape[-1])
13081308
else:
13091309
return torch.concat(mm_input)
13101310

0 commit comments

Comments
 (0)