reduce diff
This commit is contained in:
parent
76ece2c126
commit
579b8c782f
|
@ -368,7 +368,7 @@ class MatMul8bitLt(torch.autograd.Function):
|
|||
gradB32, SgradB32 = F.igemmlt(C32grad, CxAt, Sgrad, SAt)
|
||||
grad_B = F.mm_dequant(gradB32, SgradB32, SCgradt, SCAt).to(ctx.dtype_B)
|
||||
if state.threshold > 0.0 and subA is not None:
|
||||
grad_B[:, idx] += torch.mm(grad_output.t(), subA)
|
||||
grad_B[:, idx] += torch.matmul(grad_output.t(), subA)
|
||||
|
||||
if req_gradA:
|
||||
if state.CBt is not None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user