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

Cannot install transformers==4.2.1 #239

Closed namin-an closed 1 year ago

namin-an commented 1 year ago

I cannot install the required transformer version. The below errors are shown.

image

If I use the latest version, ImportErrors appear as well.

image

clustydusty commented 9 months ago

Hi, I have the same problem. Can you tell me how you solved it?

namin-an commented 9 months ago

I reinstalled it using the following line of code:

pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117