question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The configuration is not a valid json file

See original GitHub issue

System 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?

@patil-suraj

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:closed
  • Created a year ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
LysandreJikcommented, Sep 9, 2022

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.

1reaction
nicolaspicommented, Sep 9, 2022

Fixed

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found