Skip to content

[lora] adapt new LoRA config injection method #11999

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

sayakpaul
Copy link
Member

@sayakpaul sayakpaul commented Jul 28, 2025

What does this PR do?

Fixes #11874

Relies on huggingface/peft#2637

Supercedes #11911

TODO: Run some integration tests before merging.

Edit: Have run the integration tests for SDXL and Flux and they work.

@sayakpaul sayakpaul requested a review from BenjaminBossan July 28, 2025 03:53
setup.py Outdated
@@ -117,6 +117,7 @@
"numpy",
"parameterized",
"peft>=0.15.0",
# "peft>=0.16.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be changed when peft has the release.

@HuggingFaceDocBuilderDev

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.

@sayakpaul
Copy link
Member Author

Now that PEFT 0.17.0 is out, we should be good to review this PR. Gentle ping @BenjaminBossan

@sayakpaul sayakpaul marked this pull request as ready for review August 4, 2025 11:26
Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side, thanks.

@sayakpaul sayakpaul requested a review from DN6 August 6, 2025 15:07
@sayakpaul
Copy link
Member Author

@DN6 could you give this a check please? This solves some existing issues around complicated logic of deriving some LoraConfig parameters.

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.

[lora] exclude_modules won't consider the modules names in target_modules
3 participants