cointegrated_rubert-tiny-toxicity
cointegrated · View on Hugging Face ↗
Get this model
Seeders: 1 · Leechers: 0
Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language:
- ru tags:
- russian
- classification
- toxicity
- multilabel widget:
- text: Иди ты нафиг! license: mit base_model:
- cointegrated/rubert-tiny
This is the cointegrated/rubert-tiny model fine-tuned for classification of toxicity and inappropriateness for short informal Russian texts, such as comments in social networks.
The problem is formulated as multilabel classification with the following classes:
non-toxic: the text does NOT contain insults, obscenities, and threats, in the sense of the OK ML Cup competition.insultobscenitythreatdangerous: the text is inappropriate, in the sense of Babakov et.al., i.e. it can harm the reputation of the speaker.
A text can be considered safe if it is BOTH non-toxic and NOT dangerous.
Usage
The function below estimates the probability that the text is either toxic OR dangerous:
# !pip install transformers sentencepiece --quiet
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_checkpoint = 'cointegrated/rubert-tiny-toxicity'
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
model = AutoModelForSequenceClassification.from_pretrained(model_checkpoint)
if torch.cuda.is_available():
model.cuda()
def text2toxicity(text, aggregate=True):
""" Calculate toxicity of a text (if aggregate=True) or a vector of toxicity aspects (if aggregate=False)"""
with torch.no_grad():
inputs = tokenizer(text, return_tensors='pt', truncation=True, padding=True).to(model.device)
proba = torch.sigmoid(model(**inputs).logits).cpu().numpy()
if isinstance(text, str):
proba = proba[0]
if aggregate:
return 1 - proba.T[0] * (1 - proba.T[-1])
return proba
print(text2toxicity('я люблю нигеров', True))
# 0.9350118728093193
print(text2toxicity('я люблю нигеров', False))
# [0.9715758 0.0180863 0.0045551 0.00189755 0.9331106 ]
print(text2toxicity(['я люблю нигеров', 'я люблю африканцев'], True))
# [0.93501186 0.04156357]
print(text2toxicity(['я люблю нигеров', 'я люблю африканцев'], False))
# [[9.7157580e-01 1.8086294e-02 4.5550885e-03 1.8975559e-03 9.3311059e-01]
# [9.9979788e-01 1.9048342e-04 1.5297388e-04 1.7452303e-04 4.1369814e-02]]
Training
The model has been trained on the joint dataset of OK ML Cup and Babakov et.al. with Adam optimizer, the learning rate of 1e-5, and batch size of 64 for 15 epochs in this Colab notebook.
A text was considered inappropriate if its inappropriateness score was higher than 0.8, and appropriate - if it was lower than 0.2. The per-label ROC AUC on the dev set is:
non-toxic : 0.9937
insult : 0.9912
obscenity : 0.9881
threat : 0.9910
dangerous : 0.8295
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:dbfd6cb8c131777a74cb94a93ee089febb1a0464&dn=cointegrated_rubert-tiny-toxicityOpen magnet in torrent client · infohash dbfd6cb8c131777a74cb94a93ee089febb1a0464
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.1 KB (3,135 B) | c67aaeec9aab6dbae96ce08f7aed3024974b5194 | 8f5f99f1dd68da5eb957c75c9022ba61f91eb54f4ca5f0ae3aed723bcd6fe7b3 |
| config.json | 957 B (957 B) | 71001c4437a3487df5203af263085179c6c0d96e | fddebd6be551d422f8849cbf637011f152e4f0425f6bd0d1786d6518fab3e31c |
| model.safetensors | 45.0 MB (47,153,570 B) | 855dfcae401805af4994ad6ea2783be0c177b9ec | e29f120dfe1f0e3bd60823967efe31eb9104ca546e40222fc4a63eaa554ea081 |
| pytorch_model.bin | 45.0 MB (47,168,503 B) | 6e4d2f0c62969298c6818c16b8fd61127a154795 | 3acf3c98b1f80cfd8cdbf45178993636be89c320df713cbcac0f25d31ab36b3d |
| special_tokens_map.json | 112 B (112 B) | e7b0375001f109a6b8873d756ad4f7bbb15fbaa5 | 303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3 |
| tokenizer.json | 457.1 KB (468,029 B) | 713d7dd4ee1d190e0c49fa54bbd83f29b787af6e | 04432fdeb8050b81e982d9297bb99965795f8cafb70691ef549c878cc7e769de |
| tokenizer_config.json | 377 B (377 B) | 2a055a9f2e732c6caefa94de8b673723738922e0 | 516fd96be4d67381d7c54c8f819fd6f5f9d7a2c2e11751c6d8ebf2f5d53e80e1 |
| vocab.txt | 235.4 KB (241,082 B) | a1e41485f5de5933a160ff2f18c2254689008be6 | f23c30b6a1f1b21926ef659a07c1bfaddd2fce80fbfd388226c5c10a0b8d80be |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/cointegrated_rubert-tiny-toxicity/
- Slug
- cointegrated_rubert-tiny-toxicity
- Infohash
- dbfd6cb8c131777a74cb94a93ee089febb1a0464
- License
- mit
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: cointegrated_rubert-tiny-toxicity.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | cointegrated/rubert-tiny-toxicity |
|---|---|
| Revision (pinned) | 5d37eff844868e243467e4c38898bad46c271af2 |
| Fetched at | 2026-09-02T04:29:07Z |
| License at fetch | mit |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:29:10Z
mit90.6 MB (95,035,765 bytes)transformerspytorchsafetensorsberttext-classificationrussianclassificationtoxicitymultilabeltext-embeddings-inferenceendpoints_compatible1 language (ru)paper: 2103.05345