Skip to content

[xnn update prep] deprecate sdpa #11506

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

[xnn update prep] deprecate sdpa #11506

wants to merge 2 commits into from

Conversation

mcr229
Copy link
Contributor

@mcr229 mcr229 commented Jun 9, 2025

No description provided.

mcr229 added 2 commits June 9, 2025 15:10
[ghstack-poisoned]
[ghstack-poisoned]
@mcr229 mcr229 requested a review from digantdesai as a code owner June 9, 2025 22:10
@mcr229
Copy link
Contributor Author

mcr229 commented Jun 9, 2025

Copy link

pytorch-bot bot commented Jun 9, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 425ca7e with merge base 5ef38d3 (image):

NEW FAILURE - The following job has failed:

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 9, 2025
@mcr229 mcr229 added the release notes: none Do not include this in the release notes label Jun 9, 2025
@@ -2097,7 +2061,6 @@ DefineNodeFunc getDefineNodeFunc(fb_xnnpack::XNodeUnion nodeType) {
_DEFINE(Concatenate4)
_DEFINE(Concatenate5)
_DEFINE(StaticSlice)
_DEFINE(ScaledDotProductAttention)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not updating schema for marking deprecated? XNNScaledDotProductAttention

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so XNNPACK removed the operator from their codebase, so for next update we need to delete. I can mark the operator in the schema as deprecated though.

@@ -1,111 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we continue partitioning this and lower it as decomposed?
Else this will be a BC breaking change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So ever since my new partitioner, SDPA has not been delegated. I assumed that no models in production or since h ave really used any sdpa implementation (also because i heard our sdpa is slow). so I believe this is safe to remove. I can import it internally to make sure

Base automatically changed from gh/mcr229/28/head to main June 10, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants