Skip to content

Commit 4650715

Browse files
committed
[tuners] fix LoraModel (#4536)
1 parent b5f2472 commit 4650715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/tuners/peft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def keep_device_forward(self, *args, **kwargs):
278278

279279
def hot_patch_peft_module():
280280
from peft.tuners.lora import LoraLayer
281-
if hasattr('LoraModel', '_create_and_replace_origin'):
281+
if hasattr(LoraModel, '_create_and_replace_origin'):
282282
return
283283

284284
# Fix Lora does not support NonDynamicallyQuantizableLinear

0 commit comments

Comments
 (0)