mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[GH-ISSUE #210] [Feature] Support Bias #123
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#123
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 @complexfilter on GitHub (Oct 8, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepGEMM/issues/210
I was wondering if deepgemm can support bias computation. I think bias term is widely existing in linear layers.
Without bias support, we need to write dedicated kernels to perform sum operator. Compared with fused operator, extra time is needed to read and write the matrix.
@scuchenxiang commented on GitHub (Oct 19, 2025):
hi, @LyricZhao , I was wondering if deepgemm can support C = A*B+C in gemm, like the impl in wgemm.
@LyricZhao commented on GitHub (Oct 20, 2025):
Yes, we can do
D = C + A @ B. But C should have the same shape with the output matrix (D). And inplace version is the fastest (C's ptr == D's ptr).@LyricZhao commented on GitHub (Oct 20, 2025):
For bias support, we don't have some plans, as we don't have such demand internally. Adding support may cost extra maintainence efforts. Maybe later.
@scuchenxiang commented on GitHub (Oct 20, 2025):
Hi, @LyricZhao , I was also wondering is this feature likely to be released?
@LyricZhao commented on GitHub (Oct 20, 2025):
D = C + A @ Bis already included in main.