Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 3bca4aa

Browse files
committed
Fix lora conv monkeypatch
1 parent da3c5cc commit 3bca4aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/lora.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,14 +983,14 @@ def monkeypatch_remove_lora(model):
983983
padding=_source.padding,
984984
)
985985

986-
_tmp.conv.weight = weight
987-
986+
_tmp.weight = weight
988987
if bias is not None:
989-
_tmp.conv.bias = bias
988+
_tmp.bias = bias
990989

991990
_module._modules[name] = _tmp
992991

993992

993+
994994
def monkeypatch_add_lora(
995995
model,
996996
loras,

0 commit comments

Comments
 (0)