Closed matsutaku44 closed 5 days ago
from transformers import XLMRobertaTokenizer tokenizer = XLMRobertaTokenizer("/your_beit3_model_path/beit3.spm")
The above code is used to load the tokenizer.
The transformers package can be installed following the instruction https://github.com/microsoft/unilm/tree/master/beit3#setup .
The package dependency is at https://github.com/microsoft/unilm/blob/master/beit3/requirements.txt#L18 .
@donglixp Thank you very much!
Model I am using (UniLM, MiniLM, LayoutLM ...): BEIT-3
I tried to run this code :
However, I can't find transformers.py at unilm/beit3/