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

rubert-tiny-toxicity-ONNX

Date: 2026-11-15Commit: 3c11732Signed: 2DC28CC7B26A283B ✓

Text classification model. Onnx weights, 163 MB in all. Published by onnx-community under MIT.

vision163MBrubert-tiny-toxicity-ONNXonnxpermissive
FactsParamsnot statedSize163 MBFormatsonnxTasktext classificationLicenseMITFrom sourcepermissive
$ fw get onnx-community/rubert-tiny-toxicity-ONNX
# manifest sha256 78d7c8595f56… · 163 MB · 13 files
$ fw verify ./rubert-tiny-toxicity-ONNX onnx-community/rubert-tiny-toxicity-ONNX
From sourceHosted (signed)onnx-community/rubert-tiny-toxicity-ONNXLast check: 2026-11-15 05:11 UTC

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

Quantized of rubert-tiny-toxicity.

Works with

Runs with

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

Convert with

Scan with

Overview

Size
163 MB
Weights
11.9 MB (smallest of 6 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text classification
License
MIT (permissive)
Files
13, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: cointegrated/rubert-tiny-toxicity

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 05:11 UTCpassed

Model card

From the publisher at commit 3c11732. Shown as plain text with links; images open at the publisher.

rubert-tiny-toxicity (ONNX)#

This is an ONNX version of cointegrated/rubert-tiny-toxicity. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for text-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextClassificationPipeline


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

13 files · 163 MBWeights 11.9 MB (smallest of 6 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.75 KB73b1790dce38d789de229f1e3f29d1db7e697e9aa4fe67ef1b88e2421059df81
config.json935 Befff0b2e759e093cd75bb9f5670ec9ee8e0c081fe8e991d62798d0aada3907ad
onnx/model.onnx47.2 MBd39a12d945b616bc3c09c5b3cbe7ad5266672a3b6f4a6d346bffaed17c4562e9
onnx/model_bnb4.onnx39.3 MBacc5697c5a2bedc14f0820ca477c74b53ae04e3ce22934e42f9b495ab822dd95
onnx/model_int8.onnx11.9 MB8244bb3f1f75208123775e87c4648c682c2719f3a01200bab9db005b06fcc3e5
onnx/model_q4.onnx39.5 MB81c0ebcf61daebc8341ed6c68e5bb2a21e32bbe785b7d9119ac8c25d963b896a
onnx/model_quantized.onnx11.9 MB8244bb3f1f75208123775e87c4648c682c2719f3a01200bab9db005b06fcc3e5
onnx/model_uint8.onnx11.9 MBb419465c369deb9f7c6bd6d504ee55d18ac456b082b61a5a491df2f6cb95311a
special_tokens_map.json695 B5d5b662e421ea9fac075174bb0688ee0d9431699900b90662acd44b2a350503a
tokenizer.json706 KB064a132db204e46351abb4c3acb9da22fc4a837390be3b87877e79212e10dffa
tokenizer_config.json1.37 KB1e2f9e94d508fc68d57fd519ce57fff9bb93b09fc987de06f2ea622581fd102e
vocab.txt241 KBf23c30b6a1f1b21926ef659a07c1bfaddd2fce80fbfd388226c5c10a0b8d80be
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
3c117322c9 pinned now2026-11-15 05:11 UTC13 files · 163 MB

Use it

$ fw get onnx-community/rubert-tiny-toxicity-ONNX
# manifest sha256 78d7c8595f56… · 163 MB · 13 files
$ fw verify ./rubert-tiny-toxicity-ONNX onnx-community/rubert-tiny-toxicity-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/rubert-tiny-toxicity-ONNX.json --dir ./rubert-tiny-toxicity-ONNX $ python3 fw.py verify ./rubert-tiny-toxicity-ONNX ./onnx-community__rubert-tiny-toxicity-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/rubert-tiny-toxicity-ONNX --revision 3c117322c91030ff04846b72e15509ae7f5232f1 --local-dir ./rubert-tiny-toxicity-ONNX

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
73b1790dce38d789de229f1e3f29d1db7e697e9aa4fe67ef1b88e2421059df81
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: rubert-tiny-toxicity-ONNXDate: 2026-11-15Commit: 3c11732Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/rubert-tiny-toxicity-ONNX
Pinned commit
3c117322c91030ff04846b72e15509ae7f5232f1
Manifest
rubert-tiny-toxicity-ONNX.json · .minisig
Manifest sha256
78d7c8595f56f9bff670fab314113294ed3bf7de9f69aa12e10db444e832d75d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/rubert-tiny-toxicity-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/rubert-tiny-toxicity-ONNX.json.minisig $ minisign -Vm rubert-tiny-toxicity-ONNX.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-toxicity · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/rubert-tiny-toxicity-ONNX
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-ONNX.json. Provenance. Takedown history: none.
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