from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("a-ware/longformer-squadv2")
model = AutoModelForQuestionAnswering.from_pretrained("a-ware/longformer-squadv2")
How to clone the model repo
git lfs install
git clone https://huggingface.co/a-ware/longformer-squadv2
# 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