Downloads · 30 days
6
11% of all-time downloads
helenai/csarron-bert-base-uncased-squad-v1-ov
csarron-bert-base-uncased-squad-v1-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 csarron/bert-base-uncased-squad-v1 model converted to OpenVINO, for accellerated inference.
Downloads · 30 days
6
11% of all-time downloads
All-time downloads
55
Public
Repo size
617 MB
Likes
0
Public
Click a slice to open those files.
.bin436 MB · 100%
From the Hugging Face model README
This is the csarron/bert-base-uncased-squad-v1 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/csarron-bert-base-uncased-squad-v1-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)