-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
[XPU] Enable torch.compile for XPU GDN attention #39466
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
+81
−41
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b7bfd5d
Enable torch.compile for XPU GDN attention
yuwenzho ab86c66
refactor XPU GDN attention for torch.compile
yuwenzho b4f4aa4
skip cudagraph memory profiling when xpu cudagraph_mode is NONE
yuwenzho 6901b85
fix issues from review comments
yuwenzho a144955
Merge branch 'main' into zyw/gdn_tc
yuwenzho cca9139
Update _xpu_ops.py
yuwenzho 1b76790
Merge branch 'main' into zyw/gdn_tc
jikunshang b202893
Merge branch 'main' into zyw/gdn_tc
yuwenzho bd734a7
Merge branch 'main' into zyw/gdn_tc
yuwenzho f3a85d8
Merge branch 'main' into zyw/gdn_tc
yuwenzho 369d238
Update _xpu_ops.py
yuwenzho ac14bd2
fix format
yuwenzho e7f647c
Merge branch 'main' into zyw/gdn_tc
yuwenzho f55db61
Merge branch 'main' into zyw/gdn_tc
jikunshang 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
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.
torch.ops.vllm.gdn_attention_core_xpuis registered invllm/_xpu_ops.py, but this module is not imported anywhere in this file. If the runtime path that hitsforward_xpuhasn’t already importedvllm._xpu_ops, the operator won’t exist and this call will raise at runtime. Consider importingvllm._xpu_ops(orfrom vllm._xpu_ops import xpu_opsto trigger registration) under the XPU path before invoking the op, or registering the op alongsidegdn_attention_corein this module to make registration unconditionally happen when this layer is imported.