Open sirluk opened 2 weeks ago
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
Thanks, please go ahead @sirluk since you already started to work on it. @sparsh2 I hope you did not put any time into this yet.
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.