mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #289] Question about the scale factor layout #145
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#145
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 @Yyf1023 on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/289
Recently I am reading the code of sm100 fp8 GEMM. I have a question:
Why must the scale factor be MN-major? Is it because this provides better performance or is it due to hardware constraints? Thank you for your reply.
@zheanxu commented on GitHub (Apr 17, 2026):
Hi! This is because every time TMA loads the scale factors, it needs to load a tile of
block_m * 1orblock_n * 1. This requires the scale factor data to be contiguous along the M or N dimension, hence the MN-major layout requirement.