Skip to content

Use Int64 Indexing in Grouped Gemm #3930

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 1 commit into from

Conversation

jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Apr 4, 2025

Summary: For very large sequence length workloads, its possible for int32 arithmetic to overflow, especially as we often use M*N size tensors in grouped gemm. This diff replaces int32 indexing with int64 to avoid this problem.

Differential Revision: D72465728

Summary: For very large sequence length workloads, its possible for int32 arithmetic to overflow, especially as we often use M*N size tensors in grouped gemm. This diff replaces int32 indexing with int64 to avoid this problem.

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

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

Copy link

netlify bot commented Apr 4, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 7880eea
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67f01e5f86d4b80008cebbd2
😎 Deploy Preview https://deploy-preview-3930--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.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f8322d7.

q10 pushed a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
Summary:
Pull Request resolved: facebookresearch/FBGEMM#1016

X-link: pytorch#3930

For very large sequence length workloads, its possible for int32 arithmetic to overflow, especially as we often use M*N size tensors in grouped gemm. This diff replaces int32 indexing with int64 to avoid this problem.

Reviewed By: jianyuh

Differential Revision: D72465728

fbshipit-source-id: 7af0d0c10f9e43029d26d1c674952ca51d4733b8
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