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="dimkonn/russian-toxic-classifier")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("dimkonn/russian-toxic-classifier")
model = AutoModelForSequenceClassification.from_pretrained("dimkonn/russian-toxic-classifier", device_map="auto")
Quick Links

Russian Toxic Classifier

Модель бинарной классификации токсичности текстов на базе ai-forever/ru-en-RoSBERTa.

Метрики (test)

  • Accuracy: 0.9186
  • F1: 0.9162
  • ROC AUC: 0.9765

Использование

from transformers import pipeline
classifier = pipeline("text-classification", model="dimkonn/russian-toxic-classifier")
result = classifier("Вы что, совсем тупой?")
print(result)
Downloads last month
10
Safetensors
Model size
0.4B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for dimkonn/russian-toxic-classifier

Finetuned
(5)
this model

Dataset used to train dimkonn/russian-toxic-classifier