Update fast_lora.py
This commit is contained in:
parent
4f573494da
commit
694da2dba3
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ class LoRA_MLP(torch.autograd.Function):
|
|||
DW = matmul_lora(dY, downW.t(), downW_quant, downB, downA, downS)
|
||||
se = torch.nn.functional.sigmoid(e)
|
||||
f = torch.nn.functional.silu(e)
|
||||
h = f * g
|
||||
DW_f = DW * f
|
||||
DW_dfg = DW * se * g * (1 + f * (1 - se))
|
||||
# f = e * se
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue