Skip to content

Commit

Permalink
Dont lint lora loading patch
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr committed Sep 27, 2024
1 parent e2bb939 commit 34b4947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lora_loading_patch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa
from diffusers.utils import convert_unet_state_dict_to_peft, get_peft_kwargs, is_peft_version, get_adapter_name, logging

logger = logging.get_logger(__name__)
Expand Down Expand Up @@ -87,4 +88,4 @@ def load_lora_into_transformer(cls, state_dict, network_alphas, transformer, ada
_pipeline.enable_model_cpu_offload()
elif is_sequential_cpu_offload:
_pipeline.enable_sequential_cpu_offload()
# Unsafe code />
# Unsafe code />

0 comments on commit 34b4947

Please sign in to comment.