Skip to content

Fix zero_start_index_M argument for triton rowwise quantize #3639

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

Closed
wants to merge 2 commits into from

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Jan 30, 2025

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Differential Revision: D68872138

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Jan 30, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 37cc6b3
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67a01821d8cfff0008d8256a
😎 Deploy Preview https://deploy-preview-3639--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 added a commit to jwfromm/FBGEMM that referenced this pull request Jan 30, 2025
…3639)

Summary:

X-link: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

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

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

jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Jan 31, 2025
…3639)

Summary:

X-link: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

Differential Revision: D68872138
jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Jan 31, 2025
…3639)

Summary:

X-link: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

Differential Revision: D68872138
Summary:
X-link: facebookresearch/FBGEMM#695


This diff is the nvidia mirror of D68686266, which changes dynamic grouped gemm to return a tensor of shape [total_M, N] when zero_start_index_M isnt provided.  We also add appropriate tests to make sure the behavior doesnt break going forward.

Reviewed By: jasonjk-park, jianyuh, jiawenliu64

Differential Revision: D68689077
…3639)

Summary:

X-link: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

Differential Revision: D68872138
jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Feb 3, 2025
…3639)

Summary:

X-link: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

Differential Revision: D68872138
jwfromm added a commit to jwfromm/FBGEMM that referenced this pull request Feb 3, 2025
…3639)

Summary:

X-link: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 26eeef0.

avbokovoy pushed a commit to ROCm/FBGEMM that referenced this pull request Feb 14, 2025
…3639)

Summary:
Pull Request resolved: pytorch#3639

X-link: https://github.com/facebookresearch/FBGEMM/pull/714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

Differential Revision: D68872138

fbshipit-source-id: 92afb61da24cd9d85603b30e0baaa9685ba51c8d
q10 pushed a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
)

Summary:
X-link: pytorch#3639

Pull Request resolved: facebookresearch/FBGEMM#714

D68797978 implemented a new feature that allowed partial rowwise quantization for jagged tensors in the hopes of improving MOE performance. However, it operated on the wrong dimension (oops). This update shifts the dimension to the proper per-group non zero row.

Reviewed By: jasonjk-park, jiawenliu64

Differential Revision: D68872138

fbshipit-source-id: 92afb61da24cd9d85603b30e0baaa9685ba51c8d
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.

3 participants