-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Hello,
I am trying to use the XLMRoberta model instead of BERT and I made the following changes to the bert_pretrained.py:
from transformers import XLMRobertaTokenizer
from transformers import XLMRobertaModel, XLMRobertaConfig
However, I get the following error:
super().__init__(vocab=bert_tokenizer.vocab, AttributeError: 'XLMRobertaTokenizer' object has no attribute 'vocab'
Any guidance would be much appreciated!
Metadata
Metadata
Assignees
Labels
No labels