"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1082c46afa4a15c49833d67c7f1c0f3cfd7b0570"
Commit a9fe0ff9 authored by justheuristic's avatar justheuristic
Browse files

recast to fp16

parent fc4a135e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment