Skip to content

[Executorch][SDPA] Refactor + Make quantized sdpa handle sequence at dim 1 or 2 #10060

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
merged 1 commit into from
Apr 10, 2025

Conversation

pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #9943 by @kimishpatel
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/kimishpatel/170/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/kimishpatel/170/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/kimishpatel/170/orig
@diff-train-skip-merge

…dim 1 or 2

Pull Request resolved: #9943

For quantized SDPA we want to evaluate performance impact of having seq at dim 1 as well as dim 2.
This diff refactors the code to enable this.

The same should be done also for float SDPA but left for future.
ghstack-source-id: 277233484
@exported-using-ghexport

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

pytorch-bot bot commented Apr 10, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit e43f794 with merge base ad6f5ee (image):

NEW FAILURES - The following jobs have 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 Apr 10, 2025
@kirklandsign kirklandsign added the release notes: examples Changes to any of our example LLMs integrations, such as Llama3 and Llava label Apr 10, 2025
@kirklandsign kirklandsign merged commit b8b3819 into main Apr 10, 2025
81 of 84 checks passed
@kirklandsign kirklandsign deleted the gh/kimishpatel/170/orig branch April 10, 2025 17:20
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
…dim 1 or 2 (#10060)

For quantized SDPA we want to evaluate performance impact of having seq at dim 1 as well as dim 2.
This diff refactors the code to enable this.

The same should be done also for float SDPA but left for future.

Differential Revision: [D71833060](https://our.internmc.facebook.com/intern/diff/D71833060/)
keyprocedure pushed a commit to keyprocedure/executorch that referenced this pull request Apr 21, 2025
…dim 1 or 2 (pytorch#10060)

For quantized SDPA we want to evaluate performance impact of having seq at dim 1 as well as dim 2.
This diff refactors the code to enable this.

The same should be done also for float SDPA but left for future.

Differential Revision: [D71833060](https://our.internmc.facebook.com/intern/diff/D71833060/)
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: examples Changes to any of our example LLMs integrations, such as Llama3 and Llava
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants