-
Notifications
You must be signed in to change notification settings - Fork 220
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
model_config = model.config.to_dict() - AttributeError: 'dict' object has no attribute 'to_dict' #498
Comments
I found this error on my macOS |
cc @tomaarsen |
gonna piggy back off this, I had a very similar error that was also about the model.config
when I tried to run the setfit example. What seems to have fixed this for me is to downgrade huggingface hub with this version it is working both on my Mac with cpu as well as on google cloud with cuda. Hope that helps :) |
I had the same issue with the NeptuneCallback. Worked locally, but got the error in a Docker container on the cloud. It seems pretty weird to me, because there is no model passed to the
This solved my case, because somehow there really was a |
In my case, this error popped up after enabling |
@tomaarsen I submitted a draft PR on the |
Getting the same issue as @davhin when running in a vertexAI notebook (google cloud), but not when run locally |
Same issue on Windows 10, Python 3.10.13 |
Same issue on Ubunutu 22.04 and Pop!_OS 22.04.
Issue arose following the SetFit quickstart guide. Crash on step 4:
|
remove duplicate keys from your config.json |
I had the same problem but after a full 2 hour debugging noticed I have upgraded my |
System Info
Python 3.11.8
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
Hello!
How to pass this error? In my case all work locally on macOs, but didn't work on same data in Docker container..
Didn't work in container FROM --platform=linux/amd64 python:3.11-slim (Linux 027a6910b09d 6.4.16-linuxkit huggingface/transformers#1 SMP PREEMPT Sat Sep 23 13:36:48 UTC 2023 x86_64 GNU/Linux) but work on debian-buster-slim (Linux 12-slim 6.4.16-linuxkit huggingface/transformers#1 SMP PREEMPT Sat Sep 23 13:36:48 UTC 2023 aarch64 GNU/Linux).
The text was updated successfully, but these errors were encountered: