Update fast_lora.py

This commit is contained in:
Daniel Han-Chen 2024-03-10 18:36:35 +11:00
commit 7e3abd19ba

View file

@ -28,6 +28,7 @@ def matmul_lora(X, W, W_quant, A, B, s, out = None):
reshape = False
pass
A, B = A.t(), B.t()
W.addmm_(A.to(dtype), B.to(dtype), alpha = s)
out = torch.matmul(X, W, out = out)