Sentence-transformers: Connection timed out

Created on 23 Jan 2020  路  5Comments  路  Source: UKPLab/sentence-transformers

Are these models still available to download? I am trying out the Semantic Similarity example, but when I download the model:

embedder = SentenceTransformer('bert-base-nli-mean-tokens'),

I get a Connection Error:

ConnectionError: HTTPSConnectionPool(host='public.ukp.informatik.tu-darmstadt.de', port=443): Max retries exceeded with url: /reimers/sentence-transformers/v0.2/bert-base-nli-mean-tokens.zip (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 60] Operation timed out',))

I checked my network settings, and everything looks fine: no proxies, I can download models from other packages, no firewall.

Anyone had the same issue?

Most helpful comment

Hi @AMChierici
If the automatic download does not work, you can find all models here:
https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/

Download it, unzip it and then you can get the embedder like this:

embedder = SentenceTransformer('path/to/unzipped/model')

All 5 comments

Hi @AMChierici
If the automatic download does not work, you can find all models here:
https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/

Download it, unzip it and then you can get the embedder like this:

embedder = SentenceTransformer('path/to/unzipped/model')

Thanks, @nreimers !

Hi @AMChierici
If the automatic download does not work, you can find all models here:
https://public.ukp.informatik.tu-darmstadt.de/reimers/sentence-transformers/v0.2/

Download it, unzip it and then you can get the embedder like this:

embedder = SentenceTransformer('path/to/unzipped/model')

Actually, I believe the server was down for a period of time yesterday, which was why the download didn't work. It was back up in a while though.

Hi,
I have a similar problem now, the models are not accessible from automatic nor with the given link above.
Can you please check if the server is up?

Thanks.

There is currently a power outage. I hope the server is back up soon.

You can also access the models via huggingface
https://huggingface.co/sentence-transformers/bert-base-nli-mean-tokens

This is how you load them from huggingface
https://sbert.net/docs/training/overview.html#creating-networks-from-scratch

As model name put sentence-transformers/bert-...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RuskinManku picture RuskinManku  路  5Comments

serge-sotnyk picture serge-sotnyk  路  3Comments

lagatorc picture lagatorc  路  4Comments

FrancescoSaverioZuppichini picture FrancescoSaverioZuppichini  路  3Comments

zishanmuzeeb picture zishanmuzeeb  路  4Comments