fixes to recent PR #753#864
Conversation
|
@poedator thanks for fixing this and having contributed the corresponding functionality! Please leave a comment once you have finalized the fix and tested it. I wrote Tim to look into this and hopefully he'll be able to act on this still today, making a bugfix release. He's in the Seattle time zone. |
|
@Titus-von-Koeller
|
|
Thank you for the quick fix! |
I am glad to bring more excitement into your life. ) |
|
Stuff happens, important is just that we learn from it. There are also some improvements to our dev setup and release process that could avoid such issues in the future, I'll take note. It's important that we make it safer and easier to contribute to bnb in the future Thanks a lot for your contribution and thanks for the quick fix. Looking forward to collaborating further in the future! |
|
Thanks so much @poedator @TimDettmers @Titus-von-Koeller for the quick fix :D ! 🎉 |
Save and load in NF4 / FP4 formats
This fixes problems arising from my recent pull request #753 , mainly coming from this commit:
The idea to override
_load_from_state_dictforLinear4bitlooked very elegant, with a view to simplify Transformers integration. However it has more sensitivities than I expected including one withpeft.replaced
|=operator with.update()to keep compatibility with Python 3.8this should fix huggingface/peft#1095
@TimDettmers @Titus-von-Koeller please review.