#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.

Stars
1.3k
License
Apache-2.0
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+92
6 May 2026: 1,228 stars13 May 2026: 1,236 stars20 May 2026: 1,242 stars27 May 2026: 1,245 stars3 Jun 2026: 1,246 stars10 Jun 2026: 1,248 stars17 Jun 2026: 1,251 stars24 Jun 2026: 1,252 stars1 Jul 2026: 1,257 stars8 Jul 2026: 1,267 stars15 Jul 2026: 1,269 stars22 Jul 2026: 1,276 stars29 Jul 2026: 1,277 stars5 Aug 2026: 1,280 stars12 Aug 2026: 1,285 stars19 Aug 2026: 1,285 stars26 Aug 2026: 1,288 stars2 Sept 2026: 1,292 stars9 Sept 2026: 1,294 stars16 Sept 2026: 1,296 stars23 Sept 2026: 1,298 stars30 Sept 2026: 1,301 stars7 Oct 2026: 1,302 stars14 Oct 2026: 1,305 stars21 Oct 2026: 1,308 stars28 Oct 2026: 1,310 stars4 Nov 2026: 1,310 stars11 Nov 2026: 1,312 stars18 Nov 2026: 1,317 stars25 Nov 2026: 1,320 stars

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
Also in Open models
RankProjectScore
#48rwkv-lmReference code to train and run RWKV, an attention-free RNN language model Live demo ↗ (opens in a new tab)14.8k starsApache-2.056 out of 100
#49medgemmaNotebooks for running Google's MedGemma medical text and image models1.7k starsApache-2.056 out of 100
#51onnx/modelsArchived collection of pre-trained models exported to ONNX format9.9k starsApache-2.055 out of 100
#52open_model_zooPre-trained OpenVINO vision models with demos, downloader and accuracy checker4.4k starsApache-2.055 out of 100
#53index-translateOpen translation models for text, images and speech across 150 languages Live demo ↗ (opens in a new tab)2.2k starsApache-2.055 out of 100