Skip to content

Commit def3e3e

Browse files
committed
bugfix : ti
1 parent afbcea1 commit def3e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lora_diffusion/lora_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def lora_join(lora_safetenors: list):
2323
if k.endswith("rank"):
2424
rankset.append(int(v))
2525

26-
assert len(set(rankset)) == 1, "Rank should be the same per model"
26+
assert len(set(rankset)) <= 1, "Rank should be the same per model"
2727
total_rank += rankset[0]
2828
_total_metadata.update(_metadata)
2929
ranklist.append(rankset[0])

0 commit comments

Comments
 (0)