Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vllm_ascend/spec_decode/eagle_proposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def __init__(self,
and not self.vllm_config.model_config.enforce_eager
and not self.vllm_config.speculative_config.enforce_eager)
if self.method == "mtp":
self.use_cuda_graph = self.use_cuda_graph and not self.use_async_scheduling
self.use_cuda_graph = False

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

By setting use_cuda_graph to False for MTP, a significant amount of code in the MtpProposer class (in vllm_ascend/spec_decode/mtp_proposer.py) becomes dead code. Specifically, all logic conditioned on aclgraph_runtime_mode == CUDAGraphMode.FULL or forward_context.cudagraph_runtime_mode == CUDAGraphMode.FULL is now unreachable.

To improve code maintainability, this dead code should be removed. Please consider creating a follow-up PR to refactor MtpProposer and clean up the now-unnecessary graph-related logic.


self.cudagraph_batch_sizes = list(
sorted(
Expand Down
Loading