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

ImportError: cannot import name '_model_unwrap' from 'transformers.trainer' #197

Closed SoDehghan closed 1 year ago

SoDehghan commented 1 year ago

Problem was solved by installing transformers==4.2.1

jweihe commented 1 year ago

The model I want to use was added only after transfomer 4.2.1, what should I do in this case?