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

[draft] add LoRA layer support to IPU SD Pipeline #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roscisz
Copy link
Member

@roscisz roscisz commented Sep 8, 2023

What does this PR do?

Adds LoRA layer loading and inference based on the existing diffusers mechanisms:
LoRACrossAttnProcessor and load_attn_procs
Removes unused dim var

Tested with our SD example for SSF, which is based on optimum-graphcore==0.6.1. Upgrading to the current optimum-graphcore isn't straightforward, hence this branch requires rebasing and testing against main.

Tested with our SD example for SSF.

TODO:

  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Add example notebook
  • Upgrade to current optimum-graphcore

@roscisz roscisz requested a review from katalinic-gc September 8, 2023 15:34
@roscisz roscisz force-pushed the roscisz/sd_lora_inference branch from 42e26e6 to dab5b83 Compare September 28, 2023 11:32
@roscisz roscisz force-pushed the roscisz/sd_lora_inference branch from dab5b83 to e1ccb00 Compare September 28, 2023 11:46
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.

1 participant