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.SCB,
|
||||||
state.SCBt,
|
state.SCBt,
|
||||||
coo_tensorB,
|
coo_tensorB,
|
||||||
) = F.double_quant(B)
|
) = F.double_quant(B.to(torch.float16))
|
||||||
state.CxB, state.SB = F.transform(CB, to_order=formatB)
|
state.CxB, state.SB = F.transform(CB, to_order=formatB)
|
||||||
else:
|
else:
|
||||||
has_grad = False
|
has_grad = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user