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
- 21
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.