Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
39baf0b4
Unverified
Commit
39baf0b4
authored
Sep 28, 2023
by
Younes Belkada
Committed by
GitHub
Sep 28, 2023
Browse files
[`PEFT` / `LoRA` ] Kohya checkpoints support (#5202)
kohya support
parent
1c4c4c48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/utils/state_dict_utils.py
src/diffusers/utils/state_dict_utils.py
+2
-0
No files found.
src/diffusers/utils/state_dict_utils.py
View file @
39baf0b4
...
...
@@ -37,6 +37,8 @@ DIFFUSERS_TO_PEFT = {
".v_proj.lora_linear_layer.down"
:
".v_proj.lora_A"
,
".out_proj.lora_linear_layer.up"
:
".out_proj.lora_B"
,
".out_proj.lora_linear_layer.down"
:
".out_proj.lora_A"
,
".lora_linear_layer.up"
:
".lora_B"
,
".lora_linear_layer.down"
:
".lora_A"
,
}
DIFFUSERS_OLD_TO_PEFT
=
{
...
...
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