Downloads · 30 days
8
0% of all-time downloads
helenai/deepset-roberta-base-squad2-ov
deepset-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/roberta-base-squad2 model converted to OpenVINO, for accelerated inference.
Downloads · 30 days
8
0% of all-time downloads
All-time downloads
4K
Public
Repo size
986 MB
Likes
0
Public
Click a slice to open those files.
.bin248 MB · 98%
From the Hugging Face model README
This is the deepset/roberta-base-squad2 model converted to OpenVINO, for accelerated 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-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)