Skip to content

ImportError: cannot import name 'LoraLoaderMixin' from 'diffusers.loaders' #8975

@yj373

Description

@yj373

Describe the bug

Hello,

I have met an ImportError when I run from diffusers.loaders import LoraLoaderMixin. When I searched for the source code of this class LoraLoaderMixin, I could not find the page. Can anyone help me with that? Thanks!
Screen Shot 2024-07-25 at 11 05 48 AM

Reproduction

```from diffusers.loaders import LoraLoaderMixin``

Logs

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-8-a5769eb9fd75> in <cell line: 55>()
     53     UNet2DConditionModel,
     54 )
---> 55 from diffusers.loaders import LoraLoaderMixin
     56 from diffusers.optimization import get_scheduler
     57 from diffusers.training_utils import _set_state_dict_into_text_encoder, cast_training_params

ImportError: cannot import name 'LoraLoaderMixin' from 'diffusers.loaders' (/usr/local/lib/python3.10/dist-packages/diffusers/loaders/__init__.py)

System Info

🤗 Diffusers version: 0.30.0.dev0
Platform: Linux-6.1.85+-x86_64-with-glibc2.35
Running on a notebook?: No
Running on Google Colab?: No
Python version: 3.10.12
PyTorch version (GPU?): 2.3.1+cu121 (True)
Flax version (CPU?/GPU?/TPU?): 0.8.4 (gpu)
Jax version: 0.4.26
JaxLib version: 0.4.26
Huggingface_hub version: 0.23.4
Transformers version: 4.42.4
Accelerate version: not installed
PEFT version: not installed
Bitsandbytes version: not installed
Safetensors version: 0.4.3
xFormers version: not installed
Accelerator: NVIDIA L4, 23034 MiB VRAM
Using GPU in script?:
Using distributed or parallel set-up in script?:

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions