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-large-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)
Runs of helenai deepset-xlm-roberta-large-squad2-ov on huggingface.co
25
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
10
30-day runs
More Information About deepset-xlm-roberta-large-squad2-ov huggingface.co Model
deepset-xlm-roberta-large-squad2-ov huggingface.co is an AI model on huggingface.co that provides deepset-xlm-roberta-large-squad2-ov's model effect (), which can be used instantly with this helenai deepset-xlm-roberta-large-squad2-ov model. huggingface.co supports a free trial of the deepset-xlm-roberta-large-squad2-ov model, and also provides paid use of the deepset-xlm-roberta-large-squad2-ov. Support call deepset-xlm-roberta-large-squad2-ov model through api, including Node.js, Python, http.
deepset-xlm-roberta-large-squad2-ov huggingface.co is an online trial and call api platform, which integrates deepset-xlm-roberta-large-squad2-ov's modeling effects, including api services, and provides a free online trial of deepset-xlm-roberta-large-squad2-ov, you can try deepset-xlm-roberta-large-squad2-ov online for free by clicking the link below.
helenai deepset-xlm-roberta-large-squad2-ov online free url in huggingface.co:
deepset-xlm-roberta-large-squad2-ov is an open source model from GitHub that offers a free installation service, and any user can find deepset-xlm-roberta-large-squad2-ov on GitHub to install. At the same time, huggingface.co provides the effect of deepset-xlm-roberta-large-squad2-ov install, users can directly use deepset-xlm-roberta-large-squad2-ov installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
deepset-xlm-roberta-large-squad2-ov install url in huggingface.co: