Skip to content
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

Add support for quantized bmm #4047

Closed
wants to merge 1 commit into from
Closed

Add support for quantized bmm #4047

wants to merge 1 commit into from

Conversation

mcremon-meta
Copy link
Contributor

Summary: The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for torch.bmm as well.

Differential Revision: D58959269

Copy link

pytorch-bot bot commented Jun 24, 2024

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (1 Unrelated Failure)

As of commit 49950a9 with merge base 63e8025 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jun 24, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

mcremon-meta added a commit that referenced this pull request Jun 26, 2024
Summary:
Pull Request resolved: #4047

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well.

Differential Revision: D58959269
facebook-github-bot pushed a commit that referenced this pull request Jul 10, 2024
Summary:

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well.

Use a decomposition for SDPA to make sure LLaMa bmms get quantized.

Differential Revision: D58959269
mcremon-meta pushed a commit that referenced this pull request Jul 10, 2024
Summary:
Pull Request resolved: #4047

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well.

Use a decomposition for SDPA to make sure LLaMa bmms get quantized.

Differential Revision: D58959269
mcremon-meta pushed a commit that referenced this pull request Jul 10, 2024
Summary:
Pull Request resolved: #4047

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well.

Use a decomposition for SDPA to make sure LLaMa bmms get quantized.

Differential Revision: D58959269

Reviewed By: zonglinpengmeta, hsharma35
facebook-github-bot pushed a commit that referenced this pull request Jul 11, 2024
Summary:

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well.

Use a decomposition for SDPA to make sure LLaMa bmms get quantized.

Reviewed By: zonglinpengmeta, hsharma35

Differential Revision: D58959269
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: #4047

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well

Reviewed By: zonglinpengmeta, hsharma35

Differential Revision: D58959269
@facebook-github-bot
Copy link
Contributor

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

@@ -28,6 +28,7 @@ python_library(
"compiler.py",
],
deps = [
"fbsource//third-party/pypi/pyre-extensions:pyre-extensions",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Buck target used here or meant not to export?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSS uses both buck and CMake I believe for now

@@ -28,6 +28,7 @@ python_library(
"compiler.py",
],
deps = [
"fbsource//third-party/pypi/pyre-extensions:pyre-extensions",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSS uses both buck and CMake I believe for now

facebook-github-bot pushed a commit that referenced this pull request Jul 12, 2024
Summary:

The current quantizer only captures "fake" bmm from matmuls with specific shapes. Add support for `torch.bmm` as well

Reviewed By: dulinriley, zonglinpengmeta, hsharma35

Differential Revision: D58959269
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in cfbe63d.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants