From e41bf15cd04e6681249ab7d382cef6450a2115f5 Mon Sep 17 00:00:00 2001 From: Xerxes <58462889+Xerxes-cn@users.noreply.github.com> Date: Fri, 20 Jun 2025 12:43:07 +0800 Subject: [PATCH] [Chore]: qwen3-moe-type-hints-mistake (#19860) Co-authored-by: xinnan.hou --- vllm/model_executor/models/qwen3_moe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/model_executor/models/qwen3_moe.py b/vllm/model_executor/models/qwen3_moe.py index 823197fc93503..417d7b22088bf 100644 --- a/vllm/model_executor/models/qwen3_moe.py +++ b/vllm/model_executor/models/qwen3_moe.py @@ -294,7 +294,7 @@ class Qwen3MoeDecoderLayer(nn.Module): positions: torch.Tensor, hidden_states: torch.Tensor, residual: Optional[torch.Tensor], - ) -> torch.Tensor: + ) -> tuple[torch.Tensor, torch.Tensor]: # Self Attention if residual is None: residual = hidden_states