mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #40] support for e5m2 FP8 #26
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheRainstorm on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/40
Hello, respected developer.
In the current code (such as fp8_gemm.cuh:84), the e4m3 format is directly used. Is the e5m2 FP8 format supported? Additionally, is it supported to multiply the left-hand side (lhs) in the e5m2 format by the right-hand side (rhs) in the e4m3 format? cuBLAS supports this operation.
@soundOfDestiny commented on GitHub (Mar 5, 2025):
We don't support e5m2 because it isn't used in DeepSeek V3/R1.
From another perspective, since e5m2 FP8 format has a much larger range than e4m3, perhaps it's unnecessary to use a very fine-grained scaling for common use.
Anyway, e5m2 GEMM can be implemented similarly. Besides replacing e4m3 with e5m2 and changing cast ops, it's important to use a WGMMA op of e5m2.