Downloading Pre-Trained Model Failed
See original GitHub issueThe following instruction works well in Google Colab: model = SentenceTransformer('bert-base-nli-stsb-mean-tokens')
However, when running locally in Jupyter Lab on Windows, I get:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\a324448/.cache\\torch\\sentence_transformers\\public.ukp.informatik.tu-darmstadt.de_reimers_sentence-transformers_v0.2_bert-base-nli-mean-tokens.zip\\modules.json'
The folder public.ukp.informatik.tu-darmstadt.de_reimers_sentence-transformers_v0.2_bert-base-nli-mean-tokens.zip\modules.zip’ is empty on my Window machine.
Can you provide a link where I could download the model?
Note: Correcting C:\\Users\\a324448/.cache\\torch...
to C:\\Users\\a324448\\\.cache\\torch...
did not help.
BTW: Great work with the Repo.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Hi @20v100 @CheekyDave
I got the same problem on Ubuntu. This bug happened due to the interruption during the SentenceTransformers download the models. Let delete everything placed in the torch cached folder: for example in your case 'C:\Users\a324448/.cache\torch\sentence_transformers'
Then reload model: model = SentenceTransformer(‘bert-base-nli-stsb-mean-tokens’) Hope this helps.
Best
Hi @20v100 Windows makes sadly a lot of problem when you try to run deep learning experiments on it. If someone finds the issue, why the download doesn’t work for windows, please post it here (or create a PR).
You can find all models for download here: https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/
Just unzip them and specify the path to the models on your system.
Best regards Nils Reimers