[Model Runner V2][Spec Decode] Add KV cache support for multi-layer MTP (#50062)

Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Giancarlo Delfin
2026-08-13 16:22:29 -07:00
committed by GitHub
co-authored by Claude Fable 5
parent 71b0da7c4e
commit f80b66f548
10 changed files with 196 additions and 32 deletions
@@ -26,6 +26,12 @@ def init_speculator(vllm_config: VllmConfig, device: torch.device):
)
return Gemma4Speculator(vllm_config, device)
elif speculative_config.use_multi_module_mtp():
from vllm.v1.worker.gpu.spec_decode.multi_module_mtp.speculator import (
MultiModuleMTPSpeculator,
)
return MultiModuleMTPSpeculator(vllm_config, device)
elif speculative_config.method == "mtp":
from vllm.v1.worker.gpu.spec_decode.mtp.speculator import MTPSpeculator