Skip to content

Conversation

@gongshaotian
Copy link
Collaborator

@gongshaotian gongshaotian commented Oct 28, 2025

Motivation

When use CUDAGraph with MTP, the default-constructed capture list method ignores the max shape, which is computed as:
self.scheduler_config.max_num_seqs * (self.speculative_config.num_speculative_tokens + 1)

Origin PR: #4617

Modifications

  1. Refactor default capture list
  2. Refie debug log
  3. Open CINN

Usage or Command

Pass

Accuracy Tests

Pass

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
Copy link

paddle-bot bot commented Oct 28, 2025

Thanks for your contribution!

yuanlehome
yuanlehome previously approved these changes Oct 28, 2025
@gongshaotian gongshaotian changed the title refactore default capture list & refine code [Graph Optimization] Refactor default capture list Oct 28, 2025
@Jiang-Jia-Jun Jiang-Jia-Jun merged commit 7847b44 into PaddlePaddle:feature/experimental_feature_20250908 Oct 31, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants