unitary / text-classification Open weights updated 2 years ago

toxic-bert

⚠️ Disclaimer: The huggingface models currently give different results to the detoxify library (see issue here). For the most up to date models we recommend using the models from https://github.com/unitaryai/detoxify

Params
110 M
Context
512
Downloads 30d
216 K
Likes
229
Commercial use: allowed apache-2.0 Not gated SAFETENSORS View on Hugging Face ↗

Download history

daily snapshots · 11 days
226 K206 K
Oct 14Oct 17Oct 21Oct 24

Can you run it?

Estimated VRAM at 8K context unless noted. Pick your hardware to see the verdict per quantization.

FileQuantSizeEst. VRAMVerdict on RTX 4090 · 24 GB
model.safetensors f32 0.4 GB 1.0 GB ✅ Runs comfortably
Estimate: file size × 1.1 + KV cache at 8K + 0.5 GB overhead. Not a benchmark — how we calculate this.

Specifications

Architecture
BertForSequenceClassification
Parameters
110 M
Tensor type
F32
Context length
512
Vocabulary
30,522
Layers / heads
12 / 12
Licence
apache-2.0
First seen on the Hub
2022-03-02
Training datasets
undisclosed
Added to our catalog
2026-10-14
Compare with any text-classification model