Hugging Face Diffusers can correctly load LoRA

Using the Latest Diffusers Monkey Patching function to load LoRA produces exactly the same result compare with A1111

Andrew Zhu (Shudong Zhu)
Towards Data Science
5 min readJul 28, 2023

--

Pull the latest code from Hugging Face’s Diffusers code repository, and found that the newest code updated related to LoRA loading is updated and can do Monkey-Patching LoRA loading now.

To install the latest Diffusers:

pip install -U git+https://github.com/huggingface/diffusers.git@main

--

--