diff --git a/python/sglang/srt/speculative/eagle_worker_v2.py b/python/sglang/srt/speculative/eagle_worker_v2.py index 248e7015c..0ed93e198 100644 --- a/python/sglang/srt/speculative/eagle_worker_v2.py +++ b/python/sglang/srt/speculative/eagle_worker_v2.py @@ -12,9 +12,9 @@ from sglang.srt.hardware_backend.npu.graph_runner.eagle_draft_extend_npu_graph_r from sglang.srt.hardware_backend.npu.graph_runner.eagle_draft_npu_graph_runner import ( EAGLEDraftNpuGraphRunner, ) -from sglang.srt.layers.attention.triton_backend import TritonMultiStepDraftBackend +from sglang.srt.layers.attention.triton_backend import TritonAttnBackend from sglang.srt.layers.attention.trtllm_mla_backend import ( - TRTLLMMLAMultiStepDraftBackend, + TRTLLMMLABackend, ) from sglang.srt.layers.dp_attention import get_attention_tp_group from sglang.srt.layers.logits_processor import LogitsProcessorOutput @@ -294,8 +294,8 @@ class EagleDraftWorker(BaseDraftWorker): ) supports_cuda_draft_extend_graph = _is_cuda and ( - isinstance(self.draft_attn_backend, TritonMultiStepDraftBackend) - or isinstance(self.draft_attn_backend, TRTLLMMLAMultiStepDraftBackend) + isinstance(self.draft_extend_attn_backend, TritonAttnBackend) + or isinstance(self.draft_extend_attn_backend, TRTLLMMLABackend) ) # Capture extend # TODO: support draft extend cuda graph for more attention backends