Skip to content

Commit

Permalink
[PEFT / LoRA ] Kohya checkpoints support (huggingface#5202)
Browse files Browse the repository at this point in the history
kohya support
  • Loading branch information
younesbelkada authored Sep 28, 2023
1 parent 1c4c4c4 commit 39baf0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diffusers/utils/state_dict_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class StateDictType(enum.Enum):
".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 = {
Expand Down

0 comments on commit 39baf0b

Please sign in to comment.