mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #101] About optimizations to the Cast operator #57
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#57
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 @NiuMa-1234 on GitHub (May 16, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/101
Thank you for your marvelous work! I've found that the fp8 cast operator for inputmats and weights takes much longer time than GEMM and has become the major time-consuming block in Linear compared with original bf16 linear. And I'm wondering if you have a similar observation and have leveraged some skills (e.g. operator fusion) to mitigate this. Many thanks for your reply!
@LyricZhao commented on GitHub (May 16, 2025):
We have a kernel library at DeepSeek, which fuses all the staff. We plan to open-source it months later.
@NiuMa-1234 commented on GitHub (May 16, 2025):
So, the operator fusion strategy could work, right? Could you please disclose more hints about the library?
@LyricZhao commented on GitHub (May 16, 2025):
Yes, the overhead is small, most of the time are running GEMMs.
For a certain workflow, you just fuse everything before the GEMM, and that is our library.