alt.freeweights.vision / rubert-tiny-toxicity
From: cointegrated <huggingface.co/cointegrated>Newsgroups: alt.freeweights.visionSubject:

rubert-tiny-toxicity

Date: 2026-11-15Commit: 5d37effSigned: 2DC28CC7B26A283B ✓

Text classification model with 12M parameters. Safetensors weights, 95.0 MB in all. Published by cointegrated under MIT.

12M params95.0MBrubert-tiny-toxicitysafetensorspermissive
FactsParams12MSize95.0 MBFormatssafetensorsTasktext classificationLicenseMITFrom sourcepermissive
$ fw get cointegrated/rubert-tiny-toxicity
# manifest sha256 2329b07d6d7a… · 95.0 MB · 9 files
$ fw verify ./rubert-tiny-toxicity cointegrated/rubert-tiny-toxicity
From sourceHosted (signed)cointegrated/rubert-tiny-toxicityLast check: 2026-11-15 02:29 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of rubert-tiny.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
95.0 MB
Weights
47.2 MB (safetensors)
Parameters
12M
Formats
safetensors
Task
text classification
License
MIT (permissive)
Files
9, each with a sha256
Publisher
cointegrated
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: cointegrated/rubert-tiny

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:29 UTCpassed

Model card

From the publisher at commit 5d37eff. Shown as plain text with links; images open at the publisher.

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

Files

9 files · 95.0 MBWeights 47.2 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes791 Beedaa232843a5fee706aa818a601221bf17acb6c304888d1f69c04725e03ebb7
README.md3.13 KB8f5f99f1dd68da5eb957c75c9022ba61f91eb54f4ca5f0ae3aed723bcd6fe7b3
config.json957 Bfddebd6be551d422f8849cbf637011f152e4f0425f6bd0d1786d6518fab3e31c
model.safetensors47.2 MBe29f120dfe1f0e3bd60823967efe31eb9104ca546e40222fc4a63eaa554ea081
pytorch_model.bin47.2 MB3acf3c98b1f80cfd8cdbf45178993636be89c320df713cbcac0f25d31ab36b3d
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer.json468 KB04432fdeb8050b81e982d9297bb99965795f8cafb70691ef549c878cc7e769de
tokenizer_config.json377 B516fd96be4d67381d7c54c8f819fd6f5f9d7a2c2e11751c6d8ebf2f5d53e80e1
vocab.txt241 KBf23c30b6a1f1b21926ef659a07c1bfaddd2fce80fbfd388226c5c10a0b8d80be
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5d37eff844 pinned now2026-11-15 02:29 UTC9 files · 95.0 MB

Use it

$ fw get cointegrated/rubert-tiny-toxicity
# manifest sha256 2329b07d6d7a… · 95.0 MB · 9 files
$ fw verify ./rubert-tiny-toxicity cointegrated/rubert-tiny-toxicity
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/cointegrated/rubert-tiny-toxicity.json --dir ./rubert-tiny-toxicity $ python3 fw.py verify ./rubert-tiny-toxicity ./cointegrated__rubert-tiny-toxicity.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download cointegrated/rubert-tiny-toxicity --revision 5d37eff844868e243467e4c38898bad46c271af2 --local-dir ./rubert-tiny-toxicity

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
8f5f99f1dd68da5eb957c75c9022ba61f91eb54f4ca5f0ae3aed723bcd6fe7b3
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: cointegrated <huggingface.co/cointegrated>Newsgroups: alt.freeweights.visionSubject: rubert-tiny-toxicityDate: 2026-11-15Commit: 5d37effSigned: 2DC28CC7B26A283B ✓
Upstream
cointegrated/rubert-tiny-toxicity
Pinned commit
5d37eff844868e243467e4c38898bad46c271af2
Manifest
rubert-tiny-toxicity.json · .minisig
Manifest sha256
2329b07d6d7a7c75e3eb2061c4326944a241f37d1be75a01edd6a1e94fe2d3c3
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:29 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/cointegrated/rubert-tiny-toxicity.json $ curl -O https://freeweights.allternit.com/manifests/cointegrated/rubert-tiny-toxicity.json.minisig $ minisign -Vm rubert-tiny-toxicity.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

cointegrated/rubert-tiny · this model is a finetune of it

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download cointegrated/rubert-tiny-toxicity
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. rubert-tiny-toxicity.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of rubert-tiny-toxicity. Each has its own license check and page.

From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX