Skip to content

[ET-VK] Enable int8 tiled compute shader to be used with buffer tensors #10415

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 23, 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: #10302 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/214/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/214/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/214/orig
@diff-train-skip-merge

Pull Request resolved: #10302

## Context

As title. Allow the optimized int8 tiled compute shader to be usable for buffer-backed tensors as well.

## Changes

* Generate buffer variants for the int8 linear tiled shader
* Force the scales tensor to always be a buffer to reduce the number of shader variants that need to be generated.
* Generate an additional variant that computes only 1 output row
* Do not require output rows to be an exact multiple of 4 or 6 to use the tiled implementation
ghstack-source-id: 279878372

Differential Revision: [D73276277](https://our.internmc.facebook.com/intern/diff/D73276277/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner April 23, 2025 22:05
Copy link

pytorch-bot bot commented Apr 23, 2025

🔗 Helpful Links

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

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

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 23, 2025
Copy link

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@SS-JIA SS-JIA merged commit 972c988 into main Apr 23, 2025
79 of 82 checks passed
@SS-JIA SS-JIA deleted the gh/SS-JIA/214/orig branch April 23, 2025 22:11
SS-JIA added a commit that referenced this pull request Apr 23, 2025
* main:
  [ET-VK] Enable int8 tiled compute shader to be used with buffer tensors (#10415)
  Revert "Migrate elementwise_util callers to the variants with out_dtypes in template arguments" (#10411)
  Revert "Save some size in dtype_util when dtype selective build is not in use" (#10410)
  Generalize view_copy fusion.
  Add job_arn  to benchmark result (#10372)
  Revert "Minibench refactor (#10376)" (#10405)
  Revert "Arm backend: Populate __init__.py for quantizer and Arm root" (#10395)
  Arm backend: Convert assert to throw ValueError in op_log (#10392)
  Arm backend: Add Tutorial to Example tab on the Docs page (#10386)
  Arm backend: Update node visitors to support TOSA 1.0 (#10390)
  Arm backend: Make it easier to generate non delegated/quantized PTEs (#10387)
  Arm backend: Allow --quantize in non delegated using aot_arm_compiler (#10385)
  Arm backend: Set REGIONCFG registers of the Ethos-U (#10388)
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