from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("salti/xlm-roberta-large-arabic_qa")
model = AutoModelForQuestionAnswering.from_pretrained("salti/xlm-roberta-large-arabic_qa")
How to clone the model repo
git lfs install
git clone https://huggingface.co/salti/xlm-roberta-large-arabic_qa
# if you want to clone without large files – just their pointers
# prepend your git clone with the following env var:
GIT_LFS_SKIP_SMUDGE=1