You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "run.py", line 19, in <module>
from src.models import BertForPromptFinetuning, RobertaForPromptFinetuning, resize_token_type_embeddings
File "/home/xuhui/project/LM-BFF/src/models.py", line 6, in <module>
from transformers import BertPreTrainedModel, BertForSequenceClassification, BertModel, BertOnlyMLMHead
ImportError: cannot import name 'BertOnlyMLMHead' from 'transformers'
I make sure that transformers==3.4.0 .
Any chance you may have more insight on this?
The text was updated successfully, but these errors were encountered:
I installed the environment using
pip install -r requirements.txt
However, when I ran the example code,
I encountered the following error:
I make sure that
transformers==3.4.0
.Any chance you may have more insight on this?
The text was updated successfully, but these errors were encountered: