Skip to content

[WIP] FP8 scaledMM with DeepSeek-style dequantization #453

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

Draft
wants to merge 2 commits into
base: sycl-develop
Choose a base branch
from

Conversation

sanchitintel
Copy link
Collaborator

@sanchitintel sanchitintel commented Jul 2, 2025

TODO

  • Add UT
  • Use float scales
  • Change implementation from TT to TN
  • Revise comments

Some background -

Recently, an FP8 ScaledMM was added to cutlass (but it doesn't currently satisfy DeepSeek requirements for B matrix dequantization/scaling). It shares the same implementation as cutlass mixed dtype GEMM.
The original plan was to combine the source-code of the two implementations with compile time evaluated conditionals, but due to some IGC bugs, they're separate for now.
Anyway, both of those implementations are pretty slow right now due to some IGC bug.
Since I reused/copy-pasted A-scaling code from there, the scaled MM in this PR is also currently slow.

A lot of code in this PR has been duplicated, and would be refactored later.

@sanchitintel sanchitintel changed the title [WIP] FP8 GEMM with DeepSeek-style quantization [WIP] FP8 scaledMM with DeepSeek-style dequantization Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant