Run this model with HF Jobs
Run fasherr/toxicity_rubert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/fasherr/toxicity_rubert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/fasherr/toxicity_rubert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use fasherr/toxicity_rubert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fasherr/toxicity_rubert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="fasherr/toxicity_rubert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("fasherr/toxicity_rubert") model = AutoModelForSequenceClassification.from_pretrained("fasherr/toxicity_rubert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files13 unmodified lines1415161713 unmodified linesexample_title: NEUTRAL - 100.00%---Тун тун13 unmodified lines1415161718192021222324252627282930313233343536373839404142434445464748495051525313 unmodified linesexample_title: NEUTRAL - 100.00%---A model for toxicity classification in Russian texts.Fine-tuned based on the [DeepPavlov/rubert-base-cased-conversational](https://huggingface.co/DeepPavlov/rubert-base-cased-conversational) model.It's a binary classifier designed to detect toxicity in text.* **Label 0 (NEUTRAL):** Neutral text* **Label 1 (TOXIC):** Toxic text / Insults / Threats**Dataset**This model was trained on two datasets:[Toxic Russian Comments](https://www.kaggle.com/datasets/alexandersemiletov/toxic-russian-comments)[Russian Language Toxic Comments](https://www.kaggle.com/datasets/blackmoon/russian-language-toxic-comments)**Usage**```pythonfrom transformers import pipelineclassifier = pipeline("text-classification", model="fasherr/toxicity_rubert")text_1 = "Ты сегодня прекрасно выглядишь!"text_2 = "Ты очень плохой человек"print(classifier(text_1))# [{'label': 'NEUTRAL', 'score': 0.99...}]print(classifier(text_2))#[{'label': 'TOXIC', 'score': 1}]```**Eval results**|| Accuracy | Precision | Recall | F1-Score | AUC-ROC | Support || :--- | :---: | :---: | :---: | :---: | :---: | :---: || **Overall (Macro)** | 97.93% | 96.37% | 96.86% | 96.61% | 0.9962 | 26271 || **Neutral** | 97.93% | 98.88% | 98.57% | 98.72% | 0.9962 | 21347 || **Toxic** | 97.93% | 93.87% | 95.15% | 94.50% | 0.9962 | 4924 |
README.md+37-1