Downloads · 30 days
28
1% of all-time downloads
ZTamas/xlm-roberta-large-squad2-qa-milqa-impossible
xlm-roberta-large-squad2-qa-milqa-impossible is a question answering model from ZTamas. Use it when the input is a question plus a passage. It is set up for transformers.
This model is a fine-tuned version of deepset/xlm-roberta-large-squad2 on the milqa dataset.
Downloads · 30 days
28
1% of all-time downloads
All-time downloads
4.2K
Public
Repo size
6.7 GB
Likes
2
Public
Click a slice to open those files.
.bin2.2 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of deepset/xlm-roberta-large-squad2 on the milqa dataset.
Packages to install for large roberta model:
sentencepiece==0.1.97
protobuf==3.20.0
How to use:
from transformers import pipeline
qa_pipeline = pipeline(
"question-answering",
model = "ZTamas/xlm-roberta-large-squad2-qa-milqa-impossible",
tokenizer = "ZTamas/xlm-roberta-large-squad2-qa-milqa-impossible",
device = 0, #GPU selection, -1 on CPU
handle_impossible_answer = True,
max_answer_len = 50 #This can be modified
)
predictions = qa_pipeline({
'context': context,
'question': question
})
print(predictions)