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

encode method generate diff vector output #188

Closed mingyao743 closed 1 year ago

mingyao743 commented 2 years ago

So, encode method in tool.py may generate diff results after each run. add model.eval() may solve the problem. also adding a vector saving and reloading function may by helpful

gaotianyu1350 commented 2 years ago

Hi,

In my case the embedding is the same every time. Do you mind providing the environment you used for us to reproduce the error?

github-actions[bot] commented 1 year ago

Stale issue message