The 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.
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
Having a similar problem to the OP regarding SentenceTransformer. Tried downloading the model from the link below, but site cannot be reached?
https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/
Many thanks.
Hi @CheekyDave
that is strange. Tested the posted URL from different servers around the world and it can be accessed without a problem.
Maybe try it a bit later?
Best
Nils Reimers
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 @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:Usersa324448/.cachetorchsentence_transformers'Then reload model: model = SentenceTransformer('bert-base-nli-stsb-mean-tokens')
Hope this helps.Best
Thanks, it works
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:Usersa324448/.cachetorchsentence_transformers'Then reload model: model = SentenceTransformer('bert-base-nli-stsb-mean-tokens')
Hope this helps.Best
Can you please tell me what to do on Ubuntu?
It says it is missing this file:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/torch/sentence_transformers/public.ukp.informatik.tu-darmstadt.de_reimers_sentence-transformers_v0.2_bert-base-nli-mean-tokens.zip/modules.json'
However I cannot delete this folder like you suggest, as it does not exist.
Hi,
You can find it at .cache/torch/ in your home directory. Then remove the
folder sentence_transformers.
After that, let download the models again. It should works.
On Fri, Jun 5, 2020, 9:04 PM tomoerlemans010 notifications@github.com
wrote:
Hi @20v100 https://github.com/20v100 @CheekyDave
https://github.com/CheekyDaveI 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:Usersa324448/.cachetorchsentence_transformers'Then reload model: model =
SentenceTransformer('bert-base-nli-stsb-mean-tokens')
Hope this helps.Best
Can you please tell me what to do on Ubuntu?
It says it is missing this file:
FileNotFoundError: [Errno 2] No such file or directory:
'/root/.cache/torch/sentence_transformers/public.ukp.informatik.tu-darmstadt.de_reimers_sentence-transformers_v0.2_bert-base-nli-mean-tokens.zip/modules.json'However I cannot delete this folder like you suggest, as it does not exist.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/UKPLab/sentence-transformers/issues/30#issuecomment-639723147,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFZFL32P2XCQ4ZS73BMH4IDRVE6UVANCNFSM4I6FNGPQ
.
Hi, You can find it at .cache/torch/ in your home directory. Then remove the folder sentence_transformers. After that, let download the models again. It should works.
…
On Fri, Jun 5, 2020, 9:04 PM tomoerlemans010 @.*> wrote: Hi @20v100 https://github.com/20v100 @CheekyDave https://github.com/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:Usersa324448/.cachetorchsentence_transformers' Then reload model: model = SentenceTransformer('bert-base-nli-stsb-mean-tokens') Hope this helps. Best Can you please tell me what to do on Ubuntu? It says it is missing this file: FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/torch/sentence_transformers/public.ukp.informatik.tu-darmstadt.de_reimers_sentence-transformers_v0.2_bert-base-nli-mean-tokens.zip/modules.json' However I cannot delete this folder like you suggest, as it does not exist. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#30 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZFL32P2XCQ4ZS73BMH4IDRVE6UVANCNFSM4I6FNGPQ .
Thank you for the quick response! I couldn't find the files. But after quite a while of breaking my brain trying to figure out how to fix this, I remembered that I was working in a docker container.. My bad.
Most helpful comment
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