R-BERT icon indicating copy to clipboard operation
R-BERT copied to clipboard

Issue: IndexError: index out of range in self

Open alxhrzg opened this issue 5 years ago • 2 comments

Seems to be related to the added special tokens, can be fixed by adding: model.resize_token_embeddings(len(tokenizer)) See a related issue with BERT: https://github.com/huggingface/transformers/issues/4153

alxhrzg avatar Aug 12 '20 10:08 alxhrzg

This is aso helpful for IndexError: index out of range in self But it is strange that training in gpu seems dont have this problem.

NONOThingC avatar Aug 15 '20 01:08 NONOThingC

Yes indeed, I opened this issue in a hurry (before I forget) and actually meant IndexError: index out of range in self. I will adjust it accordingly!

alxhrzg avatar Aug 15 '20 15:08 alxhrzg