Downloads · 30 days
9
1% of all-time downloads
helenai/deepset-xlm-roberta-base-squad2-ov
deepset-xlm-roberta-base-squad2-ov is a question answering model from helenai. Use it when the input is a question plus a passage. It is set up for transformers.
This is the deepset/xlm-roberta-base-squad2 model converted to OpenVINO, for accellerated inference.
Downloads · 30 days
9
1% of all-time downloads
All-time downloads
1.8K
Public
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.bin1.1 GB · 98%
From the Hugging Face model README
This is the deepset/xlm-roberta-base-squad2 model converted to OpenVINO, for accellerated inference.
An example of how to do inference on this model:
from optimum.intel.openvino import OVModelForQuestionAnswering
from transformers import AutoTokenizer, pipeline
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
model_id = "helenai/deepset-xlm-roberta-base-squad2-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForQuestionAnswering.from_pretrained(model_id)
pipe = pipeline("question-answering", model=model, tokenizer=tokenizer)
result = pipe("What is OpenVINO?", "OpenVINO is a framework that accelerates deep learning inferencing")
print(result)