If you were trying to load it from âhttps: / / huggingface.co / modelsâ, make sure you donât have a local directory with the same name. Otherwise, make sure âfacebook / xmod-baseâ is the correct path to a directory containing all relevant files for a XLMRobertaTokenizerFast / BertTokenizerFast / GPT2TokenizerFast / BertJapaneseTokenizer / BloomTokenizerFast / CodeGenTokenizerFast tokenizer
If you are getting the error while initializing the tokenizer, do this instead:
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-base")
As per documentation, the model model reuses the tokenizer of XLM-R