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

Fine-tune FP8 BMM performance #3224

Closed
wants to merge 2 commits into from

Conversation

jiawenliu64
Copy link
Member

Summary: Fine-tune FP8 BMM performance to get additional 20% performance gain for given shapes

Differential Revision: D63882833

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit e3458c2
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67001a1415cbdb0008312bc8
😎 Deploy Preview https://deploy-preview-3224--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.

Summary:

X-link: facebookresearch/FBGEMM#316

Marlin int4 weight-only with loopover for bmm performs great (**up to 7x faster** compared to bf16 bmm) when dim M is small to medium size (e.g., < 256) in decode; For larger dim M, we could leverage this bmm int4 rowwise weight-only kernel in prefill that is around **1.5x faster** than marlin int4 loopover and maintain the same accuracy

More results can be found in this [data sheet](https://docs.google.com/spreadsheets/d/12JWt3SqX_1GSLKwjGyt0KQl9SMWDF0r0C63MMKsE9JM/edit?usp=sharing)

Reviewed By: jianyuh

Differential Revision: D63818529
Summary:

X-link: facebookresearch/FBGEMM#322

Fine-tune FP8 BMM performance to get additional 20% performance gain.

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7a4472a.

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