-
Notifications
You must be signed in to change notification settings - Fork 516
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
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D66682886 |
✅ Deploy Preview for pytorch-fbgemm-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e6ea79c
to
1bbc6bf
Compare
This pull request was exported from Phabricator. Differential Revision: D66682886 |
1 similar comment
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
1bbc6bf
to
7b2dfc0
Compare
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
7b2dfc0
to
a59e5f0
Compare
This pull request was exported from Phabricator. Differential Revision: D66682886 |
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