Skip to content

Deprecate float32 bias for Cutlass FP8 rowwise #4274

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cthi
Copy link

@cthi cthi commented Jun 5, 2025

Summary:
Currently for each configuration (MNK tile shapes & cluster shapes) of Cutlass FP8 rowwise we will compile 12 kernels, as we further template on (FAST_ACCUM, USE_BIAS, INPUT_DTYPE, BIAS_DTYPE). We don't seem to have any use-cases using float32 BIAS_DTYPE, so it can likely be removed, making it only 8 kernels instead of 12 per configuration.

INPUT_DTYPE could likely be removed as well, but might need some more cleanup/verification to be done safely, as I see some scripts using it, so its a bit more work.

Differential Revision: D76063973

Summary:
Currently for each configuration (MNK tile shapes & cluster shapes) of Cutlass FP8 rowwise we will compile 12 kernels, as we further template on (FAST_ACCUM, USE_BIAS, INPUT_DTYPE, BIAS_DTYPE). We don't seem to have any use-cases using float32 BIAS_DTYPE, so it can likely be removed, making it only 8 kernels instead of 12 per configuration.

INPUT_DTYPE could likely be removed as well, but might need some more cleanup/verification to be done safely, as I see some scripts using it, so its a bit more work.

Differential Revision: D76063973
Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 69893e2
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/6841f7cd3d148f0009b65e1d
😎 Deploy Preview https://deploy-preview-4274--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 project configuration.

@facebook-github-bot
Copy link
Contributor

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

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