The configuration is not a valid json file
See original GitHub issueSystem Info
The config at this url https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/config.json is not a valid JSON and produces error:
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 88 column 3 (char 2317)
Who can help?
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examples
folder (such as GLUE/SQuAD, …) - My own task or dataset (give details below)
Reproduction
from transformers import CLIPTextModel
CLIPTextModel.from_pretrained("openai/clip-vit-large-patch14")
Expected behavior
The config should be a valid json.
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Config file is not valid JSON - Developer help - Ghost Forum
Validating config. Error detected in the production configuration. Message: Config file is not valid JSON. This syntax is directly copied ...
Read more >It looks like the config file at 'bert-base-uncased' is not a valid ...
I've tried: deleting .cache/transformers/... pip uninstall/reinstall transformers; conda remove/install transformers; completely reinstalling ...
Read more >Ghost Cli throw error Config file is not valid JSON #436 - GitHub
This issue is a Bug Report Summary Ghost doctor throw Config file is not valid JSON, while config.production.json is valid { "url": ...
Read more >SD stopped working "not a valid JSON file" - any suggestions?
The config files it downloads seem to be malformed. Open the file mentioned in the second OSError and you'll find some unnecessary commas....
Read more >OSError: It looks like the config file at 'roberta-base/config.json ...
I'd firstly suggest using relative references instead of passing a GitHub URL as a file path. URLs are not valid file paths. Before....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for reporting, this was fixed in openai/clip-vit-large-patch14#4 Re-running the instantiation/
from_pretrained
should redownload the correct JSON file.Fixed