unitaryai/detoxify

Trained models & code to predict toxic comments on all 3 Jigsaw Toxic Comment Challenges. Built using ⚡ Pytorch Lightning and 🤗 Transformers. For access to our API, please email us at contact@unitary.ai.

83
/ 100
Verified

Provides three distinct model variants—`original`, `unbiased`, and `multilingual`—each optimized for different toxicity detection scenarios, with lightweight ALBERT-based alternatives for resource-constrained deployments. Leverages transformer-based architectures with bias-aware training on aggregated annotator judgments, supporting multi-label classification across toxicity subtypes (obscenity, threats, identity attacks, etc.) and identity mentions. Exposes predictions via a simple Python API returning per-category confidence scores and supports inference across seven languages with per-language performance metrics.

1,202 stars and 94,691 monthly downloads. Used by 4 other packages. Actively maintained with 2 commits in the last 30 days. Available on PyPI.

Maintenance 13 / 25
Adoption 24 / 25
Maturity 25 / 25
Community 21 / 25

How are scores calculated?

Stars

1,202

Forks

141

Language

Python

License

Apache-2.0

Last pushed

Jan 05, 2026

Monthly downloads

94,691

Commits (30d)

2

Dependencies

3

Reverse dependents

4

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/unitaryai/detoxify"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.