mirror of
https://github.com/unslothai/unsloth.git
synced 2026-07-10 00:08:58 +00:00
Update fast_lora.py
This commit is contained in:
parent
5724e8e389
commit
dfe2e406b2
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