Skip to content

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: #15578 by @SS-JIA
^ 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/SS-JIA/349/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/349/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/348/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/349/orig
Differential Revision: D86226134
@diff-train-skip-merge

ssjia added 3 commits November 4, 2025 11:52
Title says it all! Use the new combos codegen API which makes it easier to express generating storage type combinations.

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

ghstack-source-id: 320850476
Pull Request resolved: #15576
Title says it all!

The purpose of this diff is twofold:

1. Test SDPA as both a fused operator (sdpa_with_kv_cache) and decomposed update_cache and custom_sdpa ops in order to detect possible regressions with being able to support older models
2. Make it easier to debug issues with SDPA by exposing a mode that tests only the attention weight computation.
Title says it all! Update SDPA op to use buffer storage for cache tensors if projected tensors are buffer.

Also included is a small change to ensure that cache tensors use the same storage type as input tensors.

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

ghstack-source-id: 320850473
Pull Request resolved: #15577
Title says it all!

Why?

* Technically, this is should not be needed but SDPA op was producing incorrect output on Samsung S24 with buffer input tensors. The exact root cause is unclear, but it appears to be an issue specific to the Adreno 750 since it does not reproduce on any other GPU. The best guess at the moment is that we need to ensure that there is no possibility of multiple threads writing to the same memory location.

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

ghstack-source-id: 320850475
Pull Request resolved: #15578
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner November 5, 2025 16:34
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 5, 2025

🔗 Helpful Links

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

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

⏳ 32 Pending, 1 Unrelated Failure

As of commit accce77 with merge base bde6b11 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@meta-cla meta-cla 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 Nov 5, 2025
Base automatically changed from gh/SS-JIA/348/orig to main November 5, 2025 17:01
@SS-JIA SS-JIA merged commit a13dc4c into main Nov 5, 2025
138 of 152 checks passed
@SS-JIA SS-JIA deleted the gh/SS-JIA/349/orig branch November 5, 2025 17:02
abhinaykukkadapu pushed a commit to abhinaykukkadapu/executorch that referenced this pull request Nov 6, 2025
…f 4 (pytorch#15599)

Title says it all!

Why?

* Technically, this is should not be needed but SDPA op was producing incorrect output on Samsung S24 with buffer input tensors. The exact root cause is unclear, but it appears to be an issue specific to the Adreno 750 since it does not reproduce on any other GPU. The best guess at the moment is that we need to ensure that there is no possibility of multiple threads writing to the same memory location.

Differential Revision: [D86226134](https://our.internmc.facebook.com/intern/diff/D86226134/)
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants