princeton-nlp / SimCSE

[EMNLP 2021] SimCSE: Simple Contrastive Learning of Sentence Embeddings https://arxiv.org/abs/2104.08821
MIT License
3.31k stars 502 forks source link

model = SimCSE("princeton-nlp/sup-simcse-bert-base-uncased")调用 #269

Closed ArchimedesLiu closed 6 months ago

ArchimedesLiu commented 6 months ago

调用时会出现报错:Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. 请问有无好的解决方案?

gaotianyu1350 commented 6 months ago

Hi,

It seems to be an Internet connection error. One work around is to find our model on https://huggingface.co and download it manually.

Maydaytyh commented 6 months ago

you can solve it by export HF_ENDPOINT=https://hf-mirror.com.

ArchimedesLiu commented 6 months ago

Thank you very much for your help. A very strange phenomenon is that I will fail to access by China Mobile's network, but can access it under China Telecom or China Unicom's network. In the end, I chose to download the model by https://huggingface.co.