Update fast_lora.py

This commit is contained in:
Daniel Han-Chen 2024-01-26 23:33:17 +11:00
commit ce08a15cee

View file

@ -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