Skip to content

[Executorch][llama] Enable quantized sdpa #9945

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 6 commits into from
Apr 10, 2025

Conversation

kimishpatel
Copy link
Contributor

@kimishpatel kimishpatel commented Apr 7, 2025

Stack from ghstack (oldest at bottom):

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

Differential Revision: D71833064

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Apr 7, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

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

NEW FAILURE - The following job has failed:

  • pull / unittest-arm / linux-job (gh)
    RuntimeError: Command docker exec -t 164e827c9b176c5c0e74d7e01ce224603eb02a49aa8d9861619bbabe05f152f8 /exec failed with exit code 1

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

kimishpatel added a commit that referenced this pull request Apr 7, 2025
Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

ghstack-source-id: 276640303
Pull Request resolved: #9945
@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 7, 2025
@facebook-github-bot
Copy link
Contributor

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

@kimishpatel kimishpatel added the release notes: examples Changes to any of our example LLMs integrations, such as Llama3 and Llava label Apr 7, 2025
Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

[ghstack-poisoned]
kimishpatel added a commit that referenced this pull request Apr 8, 2025
Pull Request resolved: #9945

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

Differential Revision: [D71833064](https://our.internmc.facebook.com/intern/diff/D71833064/)
ghstack-source-id: 276903837
@facebook-github-bot
Copy link
Contributor

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

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

[ghstack-poisoned]
kimishpatel added a commit that referenced this pull request Apr 9, 2025
Pull Request resolved: #9945

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.
ghstack-source-id: 276951801

Differential Revision: [D71833064](https://our.internmc.facebook.com/intern/diff/D71833064/)
@facebook-github-bot
Copy link
Contributor

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

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

[ghstack-poisoned]
kimishpatel added a commit that referenced this pull request Apr 9, 2025
Pull Request resolved: #9945

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.
ghstack-source-id: 276961554

Differential Revision: [D71833064](https://our.internmc.facebook.com/intern/diff/D71833064/)
@facebook-github-bot
Copy link
Contributor

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

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

[ghstack-poisoned]
kimishpatel added a commit that referenced this pull request Apr 9, 2025
Pull Request resolved: #9945

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.
ghstack-source-id: 277160634

Differential Revision: [D71833064](https://our.internmc.facebook.com/intern/diff/D71833064/)
@facebook-github-bot
Copy link
Contributor

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

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.

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

[ghstack-poisoned]
kimishpatel added a commit that referenced this pull request Apr 10, 2025
Pull Request resolved: #9945

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.
ghstack-source-id: 277233485

Differential Revision: [D71833064](https://our.internmc.facebook.com/intern/diff/D71833064/)
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 46fe905 into gh/kimishpatel/172/base Apr 10, 2025
87 of 90 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/kimishpatel/172/head branch April 10, 2025 14:25
kirklandsign pushed a commit that referenced this pull request Apr 10, 2025
Pull Request resolved: #9945

Enable leveraging quantized sdpa op when quantized kv cache is used. Instead of adding yet another arg, at the moment I have chosen to leverage quantize_kv_cache option.
ghstack-source-id: 277233485

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

3 participants