OSError: It looks like the config file is not a valid JSON file.

#2
by xvjiarui - opened

It seems this error is due to the recent modification on ViT-L

It seems this error is due to the recent modification on ViT-L

For the moment, you can specify a previous commit of this repo, for instance:

transformer = CLIPTextModel.from_pretrained("openai/clip-vit-large-patch14", revision='0993c71e8ad62658387de2714a69f723ddfffacb')

This way is working for me while they fix it

Thank you!

I meet a problem: OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like openai/clip-vit-large-patch14 is not the path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

Sign up or log in to comment