Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using other transformer models #30

Open
VasilisTz1 opened this issue Jan 11, 2022 · 2 comments
Open

Using other transformer models #30

VasilisTz1 opened this issue Jan 11, 2022 · 2 comments

Comments

@VasilisTz1
Copy link

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!

@ayushbits
Copy link

Hey @VasilisTz1 ,

Were you able to resolve this issue ?

@VasilisTz1
Copy link
Author

Hello @ayushbits,

No, there are a couple of changes that should be done I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants