Thanks to @not-lain's investigation (see https://github.com/huggingface/huggingface_hub/issues/2334#issuecomment-2167092482), I have been able to reproduce the error with a simple example. The problem was that custom encoders/decoders were not used for the special attribute config. This PR fixes it. I also added a regression test inspired by the reproducible example.
Once merged, I'll make a hot-fix release with this fix.
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.
Fix https://github.com/huggingface/huggingface_hub/issues/2334.
Thanks to @not-lain's investigation (see https://github.com/huggingface/huggingface_hub/issues/2334#issuecomment-2167092482), I have been able to reproduce the error with a simple example. The problem was that custom encoders/decoders were not used for the special attribute
config
. This PR fixes it. I also added a regression test inspired by the reproducible example.Once merged, I'll make a hot-fix release with this fix.
(failing tests are unrelated)