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

[BUG] Issue with using rank_pattern and alpha_pattern together in LoraConfig #2195

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

sirluk
Copy link
Contributor

@sirluk sirluk commented Nov 1, 2024

This is a bugfix for issue 2194

Since the line matching module name to a substring pattern is called twice, I created a function and moved it to peft.utils.other. I think its a utility function that could be useful multiple times.

Also added a test case closely resembling the example in issue 2194 which passes now.

@sirluk sirluk changed the title bugfix for issue 2194 [BUG] Issue with using rank_pattern and alpha_pattern together in LoraConfig Nov 3, 2024
@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.

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.

Thanks a lot for identifying the bug, implementing a solution, and adding a test case. LGTM.

@BenjaminBossan BenjaminBossan merged commit a4f3597 into huggingface:main Nov 4, 2024
14 checks passed
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.

3 participants