Skip to content

[Graph Optimization][Speculative Decoding] Fix the bug of CUDAGraph + MTP + EP - #4430

Merged
Jiang-Jia-Jun merged 5 commits into
PaddlePaddle:feature/experimental_feature_20250908from
gongshaotian:0908_mtp_bug
Oct 17, 2025
Merged

Jiang-Jia-Jun merged 5 commits into
PaddlePaddle:feature/experimental_feature_20250908from
gongshaotian:0908_mtp_bug

Conversation

@gongshaotian

@gongshaotian gongshaotian commented Oct 15, 2025

Copy link
Copy Markdown
Collaborator

Motivation

When used in CUDAGraph+MTP+EP scenarios, Draft Models on different GPUs may run empty, causing all_gather() to receive an error when obtaining step_use_cudagraph.

Origin PR: #4456

Modifications

Draft Model directly uses the step_use_cudagraph Flag of Target Model

Usage or Command

Accuracy Tests

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot

paddle-bot Bot commented Oct 15, 2025

Copy link
Copy Markdown

Thanks for your contribution!

freeliuzc
freeliuzc previously approved these changes Oct 16, 2025
@gongshaotian gongshaotian changed the title [CUDAGraph] Fix bug of MTP in CUDAGraph + EP scene [Graph Optimization][Speculative Decoding] Fix the bug of CUDAGraph + MTP + EP Oct 17, 2025
@Jiang-Jia-Jun
Jiang-Jia-Jun merged commit 920df5b into PaddlePaddle:feature/experimental_feature_20250908 Oct 17, 2025
14 of 15 checks passed
@gongshaotian
gongshaotian deleted the 0908_mtp_bug branch November 3, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants