Errors while uploading

#8
by katyanaveka - opened

Hello!
I was able to download this model about two weeks ago, but now I keep getting the following errors:

JSONDecodeError: Expecting value: line 1 column 1 (char 0) while trying to upload a tokenizer using:
tokenizer = AutoTokenizer.from_pretrained("ai-forever/sbert_large_nlu_ru")

and this error OSError: It looks like the config file at '/home/jovyan/.cache/huggingface/hub/models--ai-forever--
sbert_large_nlu_ru/snapshots/af977d5dfa46a3635e29bf0ef383f2df2a08d47a/config.json' is not a valid JSON file
while trying to upload a model using
model = AutoModel.from_pretrained("ai-forever/sbert_large_nlu_ru") or pipeline via pipe = pipeline("feature-extraction", model="ai-forever/sbert_large_nlu_ru")

Is there a chance that some model files have changed in the last two weeks?

please check your cash

Hello, Ekaterina!

Could you try setting force_download=True in from_pretrained. It will re-download the latest version and update cache files.

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("ai-forever/sbert_large_nlu_ru", force_download=True)
model = AutoModel.from_pretrained("ai-forever/sbert_large_nlu_ru", force_download=True)

Thank you! It helped

Sign up or log in to comment