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