Skip to content

Conversation

@SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Apr 15, 2025

Stack from ghstack (oldest at bottom):

Context

As title. Add an alternative compute shader for int4 weight-only quantized linear that utilizes a co-operative algorithm. This shader is more performant than standard tiled algorithms for gemv cases, i.e. when mat1 is a vector rather than a matrix.

Changes

  • Add the cooperative shader
  • Use the cooperative shader when the height of mat1 is 1

Differential Revision: D73044650

## Context

As title. Add an alternative compute shader for int4 weight-only quantized linear that utilizes a co-operative algorithm. This shader is more performant than standard tiled algorithms for `gemv` cases, i.e. when `mat1` is a vector rather than a matrix.

## Changes

* Add the cooperative shader
* Use the cooperative shader when the height of `mat1` is 1

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

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Apr 15, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 4cc9dd0 with merge base 6d1caca (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 Apr 15, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73044650

@github-actions
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.

@facebook-github-bot facebook-github-bot merged commit 88364b2 into gh/SS-JIA/212/base Apr 16, 2025
82 of 86 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/212/head branch April 16, 2025 17:42
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. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants