Downloads · 30 days
27
31% of all-time downloads
helenai/Alireza1044-albert-base-v2-stsb-ov
Alireza1044-albert-base-v2-stsb-ov is a text classification model from helenai. Use it when you need a label for a piece of text. It is set up for transformers.
This is the Alireza1044/albert-base-v2-stsb model converted to OpenVINO, for accellerated inference.
Downloads · 30 days
27
31% of all-time downloads
All-time downloads
88
Public
Repo size
46.7 MB
Likes
0
Public
Click a slice to open those files.
.bin46.7 MB · 93%
From the Hugging Face model README
This is the Alireza1044/albert-base-v2-stsb model converted to OpenVINO, for accellerated inference.
An example of how to do inference on this model:
from optimum.intel.openvino import OVModelForSequenceClassification
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/Alireza1044-albert-base-v2-stsb-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForSequenceClassification.from_pretrained(model_id)
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = pipe("I like you. I love you")
print(result)