-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[LoRA] Add LoRA support to AuraFlow #10216
base: main
Are you sure you want to change the base?
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
da41f32
to
c8364bc
Compare
Thanks for the helping hand, @hlky! |
See https://github.com/huggingface/diffusers/blob/main/tests/lora/test_lora_layers_flux.py https://github.com/huggingface/diffusers/blob/main/tests/lora/test_lora_layers_mochi.py etc as an example for tests. Seems to be missing |
20b5f2d
to
80ac0d4
Compare
@sayakpaul Okay; I'm at a point where I've got actual, valid test failures but have no idea where to look. |
912fb8d
to
f5b9f90
Compare
Here's the log after the latest commit: pytest.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I have left some comments to fix a couple of things. LMK if they're unclear.
f5b9f90
to
1c79095
Compare
Latest test log. |
@sayakpaul I've uploaded the latest test log in this comment, and commented the difficulties I faced with certain changes. Some pointers would be appreciated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work!
I left some more comments. LMK if they make sense.
@sayakpaul Here's the latest test log: pytest.log Here's the list of failures:
Summary of the latest changes: I copied from Flux mostly as it was the only one with a transformer and one TE. Most of the issues seem to be coming from the line:
|
6514892
to
28a4918
Compare
Failures:
|
It seems nothing but CLIP is supported in diffusers/src/diffusers/models/lora.py Lines 41 to 66 in 532013f
which is called here diffusers/src/diffusers/loaders/lora_pipeline.py Lines 2185 to 2197 in 532013f
This means essentially that we need more plumbing to support this for arbitrary text encoders, or to only support the transformer for AuraFlow. This is because AuraFlow only has one UMT5 encoder. |
Thanks, let's support only |
So I skipped all tests requiring TE in e06d8eb. Latest failures are: pytest.log
I'm not entirely sure how to get past these. |
Could we try to look into each failure and debug? |
b59b25e
to
00c921e
Compare
00c921e
to
1ec07a1
Compare
What does this PR do?
This PR is a simple rebase of #9017
cc @sayakpaul for review.
Fixes # (issue)
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.