-
Notifications
You must be signed in to change notification settings - Fork 429
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 BitsAndBytes JSON Serializable #191
Conversation
thanks @deep-diver do you think it makes more sense to change the |
@kashif and @alvarobartt, Thanks for the comments. That is how I perceived about this. But, I am OK with you guys' proposes too. |
as we tag the lib. with versions perhaps with this change we can tag it to a new version... so lets update the API to return dicts |
removed |
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. |
Hi here @deep-diver thanks for this PR! Indeed there's a broken unit test:
If you could fix that before merging that would be great! I can create a PR to fix the rest of the unit tests as one's already reported at #166. |
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.
Thanks for the fix! I'll merge once I get the PR green in #196
Ah the test is failing because it previously assumed |
Tested out and made sure everything works ok. |
Thanks for iterating! |
This PR is related to #189
Current
transformers
tries to convert every config objects into Dictionary(link), but it does not resolve in nested config case (BitsAndBytesConfig
) with the following error. This is becauseBitsAndBytesConfig
is stored underquantization_config
of the training args:caused by [this(https://github.com/huggingface/transformers/blob/e0d82534cc95b582ab072c1bbc060852ba7f9d51/src/transformers/training_args.py#L2446)].
The easiest solution for this is to call
to_dict()
method afterget_quantization_config()
.