Downloads · 30 days
9
3% of all-time downloads
helenai/distilbert-base-uncased-finetuned-sst-2-english-ov-fp32
distilbert-base-uncased-finetuned-sst-2-english-ov-fp32 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 distilbert-base-uncased-finetuned-sst-2-english model converted to OpenVINO, for accellerated inference.
Downloads · 30 days
9
3% of all-time downloads
All-time downloads
360
Public
Repo size
268 MB
Likes
0
Public
Click a slice to open those files.
.bin268 MB · 99%
From the Hugging Face model README
This is the distilbert-base-uncased-finetuned-sst-2-english model converted to OpenVINO, for accellerated inference.
An example of how to do inference with this model:
from optimum.intel.openvino import OVModelForSequenceClassification
from transformers import AutoTokenizer, pipeline
model_id = "distilbert-base-uncased-finetuned-sst-2-english"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForSequenceClassification.from_pretrained(new_model_id)
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = pipe(*['I like you. I love you'])
print(result)