-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
FIX: Fix 8-bit serialization tests #30051
FIX: Fix 8-bit serialization tests #30051
Conversation
It was never supported. The strings where silently dropped. Now it's a strong error (which I think is better behavior since the safetensors version was loosing that information which would have lead to incorrect reloads) |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna need more details, why does B&B saves weight format, and why just removing it from the serialization does not cause any issues?
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for handling the update!
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Younes for leading this 🤗
* fix 8-bit serialization tests * add more clarification * Update src/transformers/quantizers/quantizer_bnb_8bit.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* fix 8-bit serialization tests * add more clarification * Update src/transformers/quantizers/quantizer_bnb_8bit.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* fix 8-bit serialization tests * add more clarification * Update src/transformers/quantizers/quantizer_bnb_8bit.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
What does this PR do?
with the recent safetensors refactor passing pure str in state dicts are no longer supported. This PR together with bitsandbytes-foundation/bitsandbytes#1164 should fix the issues
cc @ArthurZucker @Narsil @SunMarc @Titus-von-Koeller