Skip to content

Commit 6fde85f

Browse files
use with load lora weight
1 parent 073aa4d commit 6fde85f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cogkit/utils/lora.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def load_lora_checkpoint(
99
lora_model_id_or_path: str,
1010
lora_scale: float = 1.0,
1111
) -> None:
12-
pipeline.load_lora_weights(lora_model_id_or_path)
13-
pipeline.fuse_lora(components=["transformer"], lora_scale=lora_scale)
12+
pipeline.load_lora_weights(lora_model_id_or_path, lora_scale=lora_scale)
13+
# pipeline.fuse_lora(components=["transformer"], lora_scale=lora_scale)
1414

1515

1616
def unload_lora_checkpoint(

0 commit comments

Comments
 (0)