#5050th of 190 in Open models
detoxify
Pretrained BERT, RoBERTa and XLM-R classifiers that score comment toxicity
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts detoxify on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.detoxify is on your watch list. Its new releases and problems show there.
- Stars
- 1.3k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
1,228 on 6 May 20261,320 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Python package with trained models and training code for the three Jigsaw toxic comment challenges. Detoxify("original"), "unbiased" or "multilingual" takes a string or list of strings and returns per-label toxicity scores. Models are fine-tuned bert-base-uncased, roberta-base and xlm-roberta-base, with smaller Albert variants for original and unbiased.
Who it is for: Developers adding toxicity scoring to moderation pipelines or research
Strengths
- Three models for different needs: original, bias-minimised unbiased, and multilingual across 7 languages
- Small Albert variants (original-small, unbiased-small) with a modest AUC drop, e.g. 98.28 vs 98.64
- Installs with pip and predicts in two lines; device selectable, defaults to CPU
- Includes training configs, evaluation scripts and bias metric for retraining on Jigsaw data
Weaknesses
- Profanity alone tends to trigger a toxic label regardless of intent, per the README's own caveat
- Scores trail Kaggle top ensembles, e.g. multilingual 92.11 vs 95.36
- Multilingual model only supports English, French, Spanish, Italian, Portuguese, Turkish and Russian
- Library only, no server or API; you wrap it yourself for deployment
What it needs
- GPU optional
- Needs PyTorch, PyTorch Lightning, Hugging Face Transformers, Kaggle API (training only)
- Models: bert-base-uncased, roberta-base, xlm-roberta-base, Albert (small variants)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Open models
See all 190| Rank | Project | Score |
|---|---|---|
| #48 | rwkv-lmReference code to train and run RWKV, an attention-free RNN language model | 56 out of 100 |
| #49 | medgemmaNotebooks for running Google's MedGemma medical text and image models | 56 out of 100 |
| #51 | onnx/modelsArchived collection of pre-trained models exported to ONNX format | 55 out of 100 |
| #52 | open_model_zooPre-trained OpenVINO vision models with demos, downloader and accuracy checker | 55 out of 100 |
| #53 | index-translateOpen translation models for text, images and speech across 150 languages | 55 out of 100 |