Text Classification
Transformers
PyTorch
Safetensors
Russian
bert
russian
classification
toxicity
multilabel
text-embeddings-inference
Instructions to use cointegrated/rubert-tiny-toxicity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cointegrated/rubert-tiny-toxicity with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cointegrated/rubert-tiny-toxicity")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny-toxicity") model = AutoModelForSequenceClassification.from_pretrained("cointegrated/rubert-tiny-toxicity", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
01d80d4
1
Parent(s): b31c78a
Update README.md
Browse files59 unmodified lines6061626364656659 unmodified lines## TrainingThe model has been training on the joint dataset of [OK ML Cup](https://cups.mail.ru/ru/tasks/1048) and [Babakov et.al.](https://arxiv.org/abs/2103.05345) with `Adam` optimizer, learning rate of `1e-5`, and batch size of `128` for `5` epochs. The data was not filtered in any way. A text was considered inappropriate if its inappropritateness score was higher than 0.2. The per-label ROC AUC on the dev set is:```non-toxic : 0.9909insult : 0.988259 unmodified lines6061626364656659 unmodified lines## TrainingThe model has been trained on the joint dataset of [OK ML Cup](https://cups.mail.ru/ru/tasks/1048) and [Babakov et.al.](https://arxiv.org/abs/2103.05345) with `Adam` optimizer, learning rate of `1e-5`, and batch size of `128` for `5` epochs. The data was not filtered in any way. A text was considered inappropriate if its inappropritateness score was higher than 0.2. The per-label ROC AUC on the dev set is:```non-toxic : 0.9909insult : 0.9882
README.md+1-1