Fix bias logic to enable QLoRA finetuning

#5

when using the qlora technique, dt_proj doesn't have a bias attribute, resulting in an AttributeError. This change allows for qlora finetuning with an approximate train loss ~1-ish.

AI21 org

Nice! Thank you :)
A few comments:

  1. Can you add a comment in code explaining why this change is needed?
  2. Don't you also need to edit line 953? IIUC, in case of qlora there is no bias attribute so time_proj_bias in line 953 will be None, which is not what we want..
AI21 org

Closed because fixed in a different PR

tomeras1 changed pull request status to closed

https://github.com/huggingface/peft/pull/1530 Should have fixed these in latest peft

Sign up or log in to comment