How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="chgk13/tiny_russian_toxic_bert-openvino")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("chgk13/tiny_russian_toxic_bert-openvino")
model = AutoModelForSequenceClassification.from_pretrained("chgk13/tiny_russian_toxic_bert-openvino", device_map="auto")
Quick Links

This model was converted to OpenVINO from chgk13/tiny_russian_toxic_bert using optimum-intel via the export space.

First make sure you have optimum-intel installed:

pip install optimum[openvino]

To load your model you can do as follows:

from optimum.intel import OVModelForSequenceClassification

model_id = "chgk13/tiny_russian_toxic_bert-openvino"
model = OVModelForSequenceClassification.from_pretrained(model_id)
Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for chgk13/tiny_russian_toxic_bert-openvino

Finetuned
(1)
this model