Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor LoraAdapter and its SD implementation #190

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

limiteinductive
Copy link
Member

@limiteinductive limiteinductive commented Jan 18, 2024

Currently, the Lora implementation only allows converting/loading LoRAs for SD1 that target only Linear layers. It has been a long-standing issue that we should be able to load LoRAs commonly found on CivitAI hubs (generally trained with https://github.com/AUTOMATIC1111/stable-diffusion-webui or with https://github.com/KohakuBlueleaf/LyCORIS)
#116

  • Implements ConvLora
  • We now support loading those LoRA using the SDLoraManager directly - without conversion and with vastly different architectures.

In the following PRs, we will add the possibility to load/unload multiple LoRAs for inference.

The previous training scripts for LoRA are now obsolete; they will be added back in a follow-up PR.

@limiteinductive limiteinductive force-pushed the pr/add-conv-lora branch 2 times, most recently from cda03a7 to e299a53 Compare January 18, 2024 14:53
deltheil
deltheil previously approved these changes Jan 18, 2024
@limiteinductive limiteinductive merged commit a1f50f3 into main Jan 18, 2024
1 check passed
@limiteinductive limiteinductive deleted the pr/add-conv-lora branch January 18, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants