Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
f3445d19
Commit
f3445d19
authored
Jul 11, 2025
by
GoatWu
Browse files
bug fixed for lora merge
parent
ae089db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tools/convert/converter.py
tools/convert/converter.py
+5
-3
No files found.
tools/convert/converter.py
View file @
f3445d19
...
...
@@ -449,9 +449,11 @@ def load_loras(lora_path, weight_dict, alpha):
elif
name
in
lora_diffs
:
name_diff
=
lora_diffs
[
name
]
lora_diff
=
lora_weights
[
name_diff
].
to
(
param
.
device
,
param
.
dtype
)
param
+=
lora_diff
*
alpha
applied_count
+=
1
try
:
param
+=
lora_diff
*
alpha
applied_count
+=
1
except
Exception
as
e
:
continue
logger
.
info
(
f
"Applied
{
applied_count
}
LoRA weight adjustments"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment