[Bugfix][Qwen3VL] fix deepstack in qwen3vl (#26626)

Signed-off-by: liuye.hj <liuye.hj@alibaba-inc.com>
Signed-off-by: JJJYmmm <92386084+JJJYmmm@users.noreply.github.com>
Co-authored-by: liuye.hj <liuye.hj@alibaba-inc.com>
This commit is contained in:
JJJYmmm 2025-10-11 20:58:33 +08:00 committed by GitHub
parent a25f2adee9
commit 9d6cff3ede
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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