From 0426e3c5e149837c7ce74c35faaf3aea3542f327 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Thu, 9 Oct 2025 11:25:48 +0100 Subject: [PATCH] [Models][Qwen3VL] Optimise `_validate_and_reshape_mm_tensor` (#26426) Signed-off-by: Lukas Geiger --- vllm/model_executor/models/qwen3_vl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/model_executor/models/qwen3_vl.py b/vllm/model_executor/models/qwen3_vl.py index 76a7cc3210c62..12cb979f0900f 100644 --- a/vllm/model_executor/models/qwen3_vl.py +++ b/vllm/model_executor/models/qwen3_vl.py @@ -1304,7 +1304,7 @@ class Qwen3VLForConditionalGeneration( f"Got ndim: {mm_input.ndim} " f"(shape={mm_input.shape})" ) - return torch.concat(list(mm_input)) + return mm_input.reshape(-1, mm_input.shape[-1]) else: return torch.concat(mm_input)