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

Change data layout for MX4 #2696

Closed
wants to merge 1 commit into from
Closed

Change data layout for MX4 #2696

wants to merge 1 commit into from

Conversation

spcyppt
Copy link
Contributor

@spcyppt spcyppt commented Jun 6, 2024

Summary:
Change the data layout to avoid offset computation overhead. We trade this overhead performance with alignment.

We pack the 4-bit output data for each group (=16 bytes for group_size of 32) with 8-bit (1 byte) shared-exponent. So for each group of data, we pack 17 byte.

Reviewed By: sryap

Differential Revision: D58143133

@facebook-github-bot
Copy link
Contributor

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

Summary:

Change the data layout to avoid offset computation overhead. We trade this overhead performance with alignment.  

We pack the 4-bit output data for each group (=16 bytes for group_size of 32) with 8-bit (1 byte) shared-exponent. So for each group of data, we pack 17 byte.

Reviewed By: sryap

Differential Revision: D58143133
Copy link

netlify bot commented Jun 6, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit ba90e5f
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/666204c694075400089fc7a5
😎 Deploy Preview https://deploy-preview-2696--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 was exported from Phabricator. Differential Revision: D58143133

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d2387cb.

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.

None yet

2 participants