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
I had an issue running the code after installing the required transformers==2.8 and sentencepiece==0.1.85. I got the error:
Traceback (most recent call last):
File "train_ditto.py", line 90, in <module>
from snippext.mixda import initialize_and_train
File "Snippext_public/snippext/mixda.py", line 13, in <module>
from .model import MultiTaskNet
File "Snippext_public/snippext/model.py", line 3, in <module>
from transformers import BertModel, AlbertModel, DistilBertModel, RobertaModel, XLNetModel, LongformerModel
ImportError: cannot import name 'LongformerModel' from 'transformers' (/home/youcef/.conda/envs/py37/lib/python3.7/site-packages/transformers/__init__.py)
I fixed it by installing transformers==3.1 instead, which introduced LongformerModel.
I recommend the requirements should be updated accordingly.
I had an issue running the code after installing the required
transformers==2.8
andsentencepiece==0.1.85
. I got the error:I fixed it by installing
transformers==3.1
instead, which introduced LongformerModel.I recommend the requirements should be updated accordingly.
ditto/requirements.txt
Line 11 in 6dcf10a
The text was updated successfully, but these errors were encountered: