-
Notifications
You must be signed in to change notification settings - Fork 755
[Graph Optimization]Revert blockwise CUDAGraph and support piecewise CUDAGraph in prefill #7969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Jiang-Jia-Jun
merged 8 commits into
PaddlePaddle:develop
from
ZhangX-21:piecewise_cudagraph
Jul 15, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
258b5ce
Revert blockwise CUDAGraph and support piecewise CUDAGraph in prefill
ZhangX-21 0537c17
Support piecewise CUDAGraph for MTP execution
ZhangX-21 b9b74dc
support PD separate P worker piecewise cudagraph
ZhangX-21 61afc0a
support wfp8afp8_triton_moe SOT
ZhangX-21 76c07c0
support FA3 SOT
ZhangX-21 638a81c
Fix several bugs
ZhangX-21 94c5108
Fix test bugs
ZhangX-21 56f7034
update glm4_moe
ZhangX-21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Bug
noaux_tc_redundant的静态 infer_meta 仍只返回 3 个输出。这次签名补齐了额外输入和 attrs,但
PD_BUILD_STATIC_OP(noaux_tc_redundant)注册了 4 个输出(包含 inplace 的tokens_per_expert_stats_list_out),NoauxTcRedundantInferShape仍只返回 3 个 shape,NoauxTcRedundantInferDtype也只返回 3 个 dtype 且签名仍只覆盖前两个输入。进入 SOT/static custom op 路径时,infer_meta 和注册输出不一致会导致 op 构图失败或丢失 inplace 输出元信息。建议把 shape/dtype infer 都补齐到与注册一致,例如返回第四个
tokens_per_expert_stats_list的 shape/dtype,并让InferDtype接收新增 3 个输入 dtype 及 attrs 参数。