Skip to content

[ET-VK] Replace Uniform buffers with push constants for native layer norm op #9872

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 3 commits into from
Apr 3, 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: #9831 by @trivedivivek
^ 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/trivedivivek/73/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/73/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/72/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/73/orig
@diff-train-skip-merge

Pull Request resolved: #9532

This diff updates Executorch Vulkan backend's `native layer norm` operation to support width, height and channel packed tensors.
. and adds new test cases to the cases.py file to test the operation.
ghstack-source-id: 275813549
@exported-using-ghexport

Differential Revision: [D71663678](https://our.internmc.facebook.com/intern/diff/D71663678/)
Pull Request resolved: #9792

This diff adds support for the round op in the Vulkan backend for Executorch.
ghstack-source-id: 275813551

Differential Revision: [D72218482](https://our.internmc.facebook.com/intern/diff/D72218482/)
…norm op

Pull Request resolved: #9831

This diff replaces Uniform buffers with push constants for the native layer norm op in the Vulkan backend of Executorch. The changes include updating the shader code to use push constants instead of Uniform buffers, and updating the C++ code to pass the sizes as push constants to the shader.

Differential Revision: [D70943355](https://our.internmc.facebook.com/intern/diff/D70943355/)
ghstack-source-id: 275813550
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner April 3, 2025 09:14
Copy link

pytorch-bot bot commented Apr 3, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 476a838 with merge base cc73d03 (image):
💚 Looks good so far! There are no failures yet. 💚

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 3, 2025
Base automatically changed from gh/trivedivivek/72/orig to main April 3, 2025 14:58
@trivedivivek trivedivivek merged commit 4f748fe into main Apr 3, 2025
81 checks passed
@trivedivivek trivedivivek deleted the gh/trivedivivek/73/orig branch April 3, 2025 14:58
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
…norm op (#9872)

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #9831 by
@trivedivivek
^ 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/trivedivivek/73/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/trivedivivek/73/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/trivedivivek/72/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/trivedivivek/73/orig
@diff-train-skip-merge

---------

Co-authored-by: Vivek Trivedi <5340687+trivedivivek@users.noreply.github.com>
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. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants