How to load tokenizer for models without vocab.txt?
# ❓ Questions & Help

<!-- The GitHub issue tracker is primarly intended for bugs, feature requests,
     new models and benchmarks, and migration questions. For all other questions,
     we direct you to the Hugging Face forum: https://discuss.huggingface.co/ .
     You can also try Stack Overflow (SO) where a whole community of PyTorch and
     Tensorflow enthusiast can help you out. In this case, make sure to tag your
     question with the right deep learning framework as well as the
     huggingface-transformers tag: 
     https://stackoverflow.com/questions/tagged/huggingface-transformers 
     -->

## Details
<!-- Description of your issue -->
I want to use xlm-roberta-large model, but "https://huggingface.co/"just give the file named "xlm-roberta-large-tokenizer.json", and have no "vocab.txt", so how to use the package “XLMRobertaTokenizer” to load the the file  "xlm-roberta-large-tokenizer.json"?
<!-- You should first ask your question on the forum or SO, and only if
     you didn't get an answer ask it here on GitHub. -->
**A link to original question on the forum/Stack Overflow**:
Hello! In order to use the xlm-roberta-large model, why don't you use the `from_pretrained` method?

```py
from transformers import XLMRobertaModel

model = XLMRobertaModel.from_pretrained("xlm-roberta-large")
```<|||||>> Hello! In order to use the xlm-roberta-large model, why don't you use the `from_pretrained` method?
> 
> ```python
> from transformers import XLMRobertaModel
> 
> model = XLMRobertaModel.from_pretrained("xlm-roberta-large")
> ```
Thanks for your answer!
I tried do it like what you said, but I couldn't linked the URL to download the model, so I try to download the model、cofig、tokenizer to local and load it. 
so, The question what I said was I have not find the vocab.txt  to generate the tokenizer.<|||||>You don't need the URL to download the model, you can just use the identifier as its shown in my message. Or is there a reason why you want to have the URLs? <|||||>This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
