From 9d6cff3edeb2421699671881592fd7558946695e Mon Sep 17 00:00:00 2001 From: JJJYmmm <92386084+JJJYmmm@users.noreply.github.com> Date: Sat, 11 Oct 2025 20:58:33 +0800 Subject: [PATCH] [Bugfix][Qwen3VL] fix deepstack in qwen3vl (#26626) Signed-off-by: liuye.hj Signed-off-by: JJJYmmm <92386084+JJJYmmm@users.noreply.github.com> Co-authored-by: liuye.hj --- vllm/model_executor/models/qwen3_vl.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vllm/model_executor/models/qwen3_vl.py b/vllm/model_executor/models/qwen3_vl.py index 1e6c3485c4..6a7d2eaeab 100644 --- a/vllm/model_executor/models/qwen3_vl.py +++ b/vllm/model_executor/models/qwen3_vl.py @@ -1702,12 +1702,6 @@ class Qwen3VLForConditionalGeneration( ) if deepstack_input_embeds is not None: - deepstack_input_embeds = ( - torch.zeros_like(inputs_embeds) - .unsqueeze(0) - .repeat(self.deepstack_num_level, 1, 1) - .contiguous() - ) self._set_deepstack_input_embeds(deepstack_input_embeds) return inputs_embeds