Skip to content

[dtensor] add CuDNN SDPA op support to DTensor - #148537

Closed
XilunWu wants to merge 4 commits into
gh/XilunWu/124/basefrom
gh/XilunWu/124/head
Closed

XilunWu wants to merge 4 commits into
gh/XilunWu/124/basefrom
gh/XilunWu/124/head

Conversation

@XilunWu

@XilunWu XilunWu commented Mar 5, 2025 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Summary

This PR adds _scaled_dot_product_cudnn_attention and _scaled_dot_product_cudnn_attention_backward to DTensor ops

Test

pytest test/distributed/tensor/test_attention.py

cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o

@pytorch-bot

pytorch-bot Bot commented Mar 5, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/148537

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 8bc6e17 with merge base 690fc2c (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added ciflow/inductor oncall: distributed Add this issue/PR to distributed oncall triage queue labels Mar 5, 2025
XilunWu added a commit that referenced this pull request Mar 5, 2025
…lt op support

ghstack-source-id: 2fc9992
Pull Request resolved: #148537
@XilunWu
XilunWu marked this pull request as draft March 5, 2025 08:06
…kward.default op support"

cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o

[ghstack-poisoned]
@linux-foundation-easycla

linux-foundation-easycla Bot commented Mar 5, 2025 •

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

…kward.default op support"

cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o

[ghstack-poisoned]
@XilunWu
XilunWu requested review from drisspg, fegin and wanchaol March 6, 2025 00:05
@XilunWu XilunWu changed the title [dtensor] add aten._scaled_dot_product_cudnn_attention_backward.default op support [dtensor] add CuDNN SDPA op support Mar 6, 2025
@XilunWu XilunWu changed the title [dtensor] add CuDNN SDPA op support [dtensor] add CuDNN SDPA op support to DTensor Mar 6, 2025
@XilunWu XilunWu added the release notes: distributed (dtensor) release notes category label Mar 6, 2025
@XilunWu
XilunWu marked this pull request as ready for review March 6, 2025 00:17
### Summary
This PR adds `_scaled_dot_product_cudnn_attention` and `_scaled_dot_product_cudnn_attention_backward` to DTensor ops

### Test
`pytest test/distributed/tensor/test_attention.py`

cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o

[ghstack-poisoned]
XilunWu added a commit that referenced this pull request Mar 6, 2025
…lt op support

ghstack-source-id: 9467ad2
Pull Request resolved: #148537
@XilunWu

XilunWu commented Mar 6, 2025

Copy link
Copy Markdown
Contributor Author

/easycla

@fegin fegin left a comment

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.

Nice, thanks!

@XilunWu XilunWu added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 6, 2025
@XilunWu

XilunWu commented Mar 6, 2025

Copy link
Copy Markdown
Contributor Author

/easycla

@XilunWu

XilunWu commented Mar 6, 2025

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@github-actions
github-actions Bot deleted the gh/XilunWu/124/head branch April 11, 2025 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: context parallel PyTorch Context Parallel oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: context parallel release notes: distributed (dtensor) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants