Skip to content

Conversation

sanchitintel
Copy link

@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