Closed SumNeuron closed 3 years ago
pip install -r requirements.txt python SimCSE/evaluation.py --model_name_or_path princeton-nlp/sup-simcse-bert-base-uncased --pooler cls --task_set sts --mode test Traceback (most recent call last): File "SimCSE/evaluation.py", line 9, in <module> from transformers import AutoModel, AutoTokenizer ImportError: cannot import name 'AutoModel'
Can you check the version of transformers you were using? We suggest you use transformers higher than 4.2.1.