forked from mrq/bitsandbytes-rocm
recast to fp16
This commit is contained in:
parent
fc4a135ed1
commit
a9fe0ff98c
|
@ -275,7 +275,7 @@ class MatMul8bitLt(torch.autograd.Function):
|
|||
state.SCB,
|
||||
state.SCBt,
|
||||
coo_tensorB,
|
||||
) = F.double_quant(B)
|
||||
) = F.double_quant(B.to(torch.float16))
|
||||
state.CxB, state.SB = F.transform(CB, to_order=formatB)
|
||||
else:
|
||||
has_grad = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user