princeton-nlp / SimCSE

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

Remove --f16 \ from run_unsup_example.sh #202

Closed sijanstha55 closed 1 year ago

sijanstha55 commented 1 year ago

The --f16 is used only for Cuda devices and since the example is for CPU devices, removing --f16 \ corrects the problem.

gaotianyu1350 commented 1 year ago

Hi,

Thanks for your contribution. Though this script also works for GPU and thus --fp16 is useful.

sijanstha55 commented 1 year ago

Hi,

Thanks for your contribution. Though this script also works for GPU and thus --fp16 is useful.

It was showing an error in my MacBook. Thought it would be helpful since the example was for CPU. Just wanted to let you know!

gaotianyu1350 commented 1 year ago

Thanks for letting me know! Though this repo is mainly designed for Linux+GPU environment. I'll close the issue for now.