Skip to content
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

[CPU SDP] Remove mem efficient attn checks in CPU #112375

Closed
wants to merge 1 commit into from

Conversation

rohan-varma
Copy link
Member

@rohan-varma rohan-varma commented Oct 30, 2023

Stack from ghstack (oldest at bottom):

It doesn't seem like memory efficient attention can be used on CPU, as we don't check for it when iterating backends in select_sdp_backend_cpp. So removing some of the logic around mem efficient attention selection.

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: D50775562

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

It doesn't seem like memory efficient attention can be used on CPU, as we don't check for it when iterating backends in `select_sdp_backend_cpp`. So removing some of the logic around mem efficient attention.

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: [D50775562](https://our.internmc.facebook.com/intern/diff/D50775562/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D50775562/)!

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 30, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2e774d4 with merge base a26cb0a (image):
💚 Looks good so far! There are no failures yet. 💚

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

rohan-varma added a commit that referenced this pull request Oct 30, 2023
It doesn't seem like memory efficient attention can be used on CPU, as we don't check for it when iterating backends in `select_sdp_backend_cpp`. So removing some of the logic around mem efficient attention.

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: [D50775562](https://our.internmc.facebook.com/intern/diff/D50775562/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D50775562/)!

ghstack-source-id: 205746438
Pull Request resolved: #112375
Copy link
Contributor

@drisspg drisspg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rohan-varma
Copy link
Member Author

@pytorchbot merge -f "CI done"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/746/head branch November 3, 2023 14:27
xuhancn pushed a commit to xuhancn/pytorch that referenced this pull request Nov 7, 2023
It doesn't seem like memory efficient attention can be used on CPU, as we don't check for it when iterating backends in `select_sdp_backend_cpp`. So removing some of the logic around mem efficient attention selection.

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: [D50775562](https://our.internmc.facebook.com/intern/diff/D50775562/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D50775562/)!
Pull Request resolved: pytorch#112375
Approved by: https://github.com/drisspg
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
It doesn't seem like memory efficient attention can be used on CPU, as we don't check for it when iterating backends in `select_sdp_backend_cpp`. So removing some of the logic around mem efficient attention selection.

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: [D50775562](https://our.internmc.facebook.com/intern/diff/D50775562/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D50775562/)!
Pull Request resolved: pytorch#112375
Approved by: https://github.com/drisspg
andreigh pushed a commit to andreigh/pytorch that referenced this pull request Nov 19, 2023
It doesn't seem like memory efficient attention can be used on CPU, as we don't check for it when iterating backends in `select_sdp_backend_cpp`. So removing some of the logic around mem efficient attention selection.

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: [D50775562](https://our.internmc.facebook.com/intern/diff/D50775562/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D50775562/)!
Pull Request resolved: pytorch#112375
Approved by: https://github.com/drisspg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants