From 7075ddac28c25d4fd2b84bc2a9a6c5ffde0345c8 Mon Sep 17 00:00:00 2001 From: Misha Goin Date: Mon, 17 Aug 2026 12:48:30 -0400 Subject: [PATCH] Support DSpark configs with `architectures=DSparkDraftModel` + `model_type=qwen3` (#52197) Signed-off-by: mgoin --- vllm/config/speculative.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/vllm/config/speculative.py b/vllm/config/speculative.py index 2b93113b7e..a85b895d86 100644 --- a/vllm/config/speculative.py +++ b/vllm/config/speculative.py @@ -953,6 +953,10 @@ class SpeculativeConfig: "dspark" in self.draft_model_config.model.lower() or "Qwen3DSparkModel" in self.draft_model_config.architectures or "Gemma4DSparkModel" in self.draft_model_config.architectures + or ( + "DSparkDraftModel" in self.draft_model_config.architectures + and self.draft_model_config.hf_config.model_type == "qwen3" + ) ): self.method = "dspark" elif self.draft_model_config.hf_config.model_type == "medusa": @@ -1010,7 +1014,16 @@ class SpeculativeConfig: self.draft_model_config.hf_config = eagle_config self.update_arch_() - if self.method == "dspark" and ( + if ( + self.method == "dspark" + and "DSparkDraftModel" in self.draft_model_config.architectures + and self.draft_model_config.hf_config.model_type == "qwen3" + ): + self.draft_model_config.hf_config.architectures = [ + "Qwen3DSparkModel" + ] + self.update_arch_() + elif self.method == "dspark" and ( "Qwen3DSparkModel" not in self.draft_model_config.architectures and "Gemma4DSparkModel" not in self.draft_model_config.architectures and "K3DSparkModel" not in self.draft_model_config.architectures