Update fast_lora.py
This commit is contained in:
parent
e1d02652d4
commit
581235ba36
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ def matmul_lora(X, W, W_quant, A, B, s, out = None):
|
|||
|
||||
out = torch.matmul(X, W, out = out)
|
||||
if W_quant is not None: del W
|
||||
out += (X @ A) @ (s * B)
|
||||
out += (X @ A.to(dtype)) @ (s * B.to(dtype))
|
||||
return out.view(batch, seq_len, -1) if reshape else out
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue