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

Enable dynamic M grouped gemm #3444

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Dec 3, 2024

Summary:
This diff adds support for true dynamic M as is found in grouped_gemm. To do so, we add a new M_values argument that must be provided by the user and indicates the number of non-zero M in each tensor. One nice thing about this approach is that we can now do a single kernel call to set up the gemm arguments.

We make M_values optional as it requires fixed N and K. When N and K vary across group, we use the previous static shape approach.

Differential Revision: D66682886

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Dec 3, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit a59e5f0
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/675f3361d7e36d0008e10028
😎 Deploy Preview https://deploy-preview-3444--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jwfromm jwfromm force-pushed the export-D66682886 branch 2 times, most recently from e6ea79c to 1bbc6bf Compare December 3, 2024 22:05
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Dec 15, 2024
Summary:

X-link: facebookresearch/FBGEMM#530

This diff adds support for true dynamic M as is found in grouped_gemm. To do so, we add a new `M_values` argument that must be provided by the user and indicates the number of non-zero M in each tensor. One nice thing about this approach is that we can now do a single kernel call to set up the gemm arguments.

We make `M_values` optional as it requires fixed N and K. When N and K vary across group, we use the previous static shape approach.

Reviewed By: jiawenliu64

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

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

Summary:

X-link: facebookresearch/FBGEMM#530

This diff adds support for true dynamic M as is found in grouped_gemm. To do so, we add a new `M_values` argument that must be provided by the user and indicates the number of non-zero M in each tensor. One nice thing about this approach is that we can now do a single kernel call to set up the gemm arguments.

We make `M_values` optional as it requires fixed N and K. When N and K vary across group, we use the previous static shape approach.

Reviewed By: jiawenliu64

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants