Update fast_lora.py
This commit is contained in:
parent
b4492eb29c
commit
ce08a15cee
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class LoRA_MLP(torch.autograd.Function):
|
|||
f = torch.nn.functional.silu(e)
|
||||
h = f * g
|
||||
DW_f = DW * f
|
||||
DW_dfg = DW * se * g * (1 + f * (1 - se))
|
||||
DW_dfg = DW * se * g * (1 + e * (1 - se))
|
||||
# f = e * se
|
||||
# h = f * g
|
||||
# df = se * (1 - f) + f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue