Skip to content

Supports passing in more MTP method types, when speculative decoding is enabled. #4688

Description

@changsci

❓ Is your enhancement related to a problem?

For speculative decoding, when the algorithm type is set to MTP, it defaults to deepseek_mtp. However, the variety of models supporting MTP is currently expanding.

        vllm_speculative_algorithm_mapping = {
            SpeculativeAlgorithmEnum.EAGLE3: "eagle3",
            SpeculativeAlgorithmEnum.MTP: "deepseek_mtp",
            SpeculativeAlgorithmEnum.NGRAM: "ngram",
        }

For example, the newly released Qwen3.5 uses qwen3_next_mtp as its MTP type:

--speculative-config '{"method":"qwen3_next_mtp","num_speculative_tokens":2}'
Image

💡 Describe the solution you'd like

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions