Edit model card

distilbert-base-uncased-finetuned-sst-2-english

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)
Downloads last month
2