-
Notifications
You must be signed in to change notification settings - Fork 1.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
Invalid none
check for loftq_config attribute in LoraConfig
#2170
Comments
Good catch, indeed this check doesn't make sense as is. I'll fix it once I have a bit of time (it's not high priority). If someone else wants to take this, feel free to do so. |
@BenjaminBossan I would like to take this up if its okay |
@BenjaminBossan @sparsh2 If its fine I would do it since I already started working on it as part of a different pull request that ideally should have the same structure as the fix for this |
No issues @sirluk @BenjaminBossan. @sirluk please go aheahd |
System Info
transformers
version: 4.45.2Who can help?
@BenjaminBossan
Information
Tasks
examples
folderReproduction
From the code in peft.tuners.lora.config.py this should raise a
ValueError
.However the loftq_config field of
LoraConfig
is defined to be a dict by default, so it is never None.Expected behavior
ValueError
should be raised wheninit_lora_weights="loftq"
butloftq_config
is not specified.The text was updated successfully, but these errors were encountered: