[Spec Decode] Add Qwen3 architecture support for EAGLE3 (#43132)

Signed-off-by: Benjamin Chislett <bchislett@nvidia.com>
This commit is contained in:
Benjamin Chislett
2026-06-21 13:55:26 -07:00
committed by GitHub
parent 9c450b1027
commit 89bd2c14d3
6 changed files with 523 additions and 2 deletions
+2
View File
@@ -24,6 +24,7 @@ from vllm.model_executor.models.deepseek_eagle3 import Eagle3DeepseekV2ForCausal
from vllm.model_executor.models.interfaces import SupportsMultiModal
from vllm.model_executor.models.llama_eagle3 import Eagle3LlamaForCausalLM
from vllm.model_executor.models.qwen3_dflash import DFlashQwen3ForCausalLM
from vllm.model_executor.models.qwen3_eagle3 import Eagle3Qwen3ForCausalLM
from vllm.multimodal import MULTIMODAL_REGISTRY
from vllm.platforms import current_platform
from vllm.utils.torch_utils import PIN_MEMORY, async_tensor_h2d
@@ -473,6 +474,7 @@ class SpecDecodeBaseProposer:
Eagle3LlamaForCausalLM,
Eagle3DeepseekV2ForCausalLM,
DFlashQwen3ForCausalLM,
Eagle3Qwen3ForCausalLM,
),
)
target_hidden_states = self.model.combine_hidden_states(