AI SeedbankHelp preserve open and free AI for humanity's future

← All models

cointegrated_rubert-tiny-toxicity

cointegrated · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

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.
  • insult
  • obscenity
  • threat
  • dangerous: 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-toxicity

Open magnet in torrent client · infohash dbfd6cb8c131777a74cb94a93ee089febb1a0464

Files & hashes

PathSizesha1sha256
README.md3.1 KB (3,135 B)c67aaeec9aab6dbae96ce08f7aed3024974b51948f5f99f1dd68da5eb957c75c9022ba61f91eb54f4ca5f0ae3aed723bcd6fe7b3
config.json957 B (957 B)71001c4437a3487df5203af263085179c6c0d96efddebd6be551d422f8849cbf637011f152e4f0425f6bd0d1786d6518fab3e31c
model.safetensors45.0 MB (47,153,570 B)855dfcae401805af4994ad6ea2783be0c177b9ece29f120dfe1f0e3bd60823967efe31eb9104ca546e40222fc4a63eaa554ea081
pytorch_model.bin45.0 MB (47,168,503 B)6e4d2f0c62969298c6818c16b8fd61127a1547953acf3c98b1f80cfd8cdbf45178993636be89c320df713cbcac0f25d31ab36b3d
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json457.1 KB (468,029 B)713d7dd4ee1d190e0c49fa54bbd83f29b787af6e04432fdeb8050b81e982d9297bb99965795f8cafb70691ef549c878cc7e769de
tokenizer_config.json377 B (377 B)2a055a9f2e732c6caefa94de8b673723738922e0516fd96be4d67381d7c54c8f819fd6f5f9d7a2c2e11751c6d8ebf2f5d53e80e1
vocab.txt235.4 KB (241,082 B)a1e41485f5de5933a160ff2f18c2254689008be6f23c30b6a1f1b21926ef659a07c1bfaddd2fce80fbfd388226c5c10a0b8d80be

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 repositorycointegrated/rubert-tiny-toxicity
Revision (pinned)5d37eff844868e243467e4c38898bad46c271af2
Fetched at2026-09-02T04:29:07Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ 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