Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
smaug
abacusai
toxicity
content-moderation
trust-and-safety
perspective-api
hate-speech
multi-label-classification
text-embeddings-inference
Instructions to use abacusai/Smaug-Toxicity-Perspective with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abacusai/Smaug-Toxicity-Perspective with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="abacusai/Smaug-Toxicity-Perspective")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("abacusai/Smaug-Toxicity-Perspective") model = AutoModelForSequenceClassification.from_pretrained("abacusai/Smaug-Toxicity-Perspective", device_map="auto") - Transformers.js
How to use abacusai/Smaug-Toxicity-Perspective with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'abacusai/Smaug-Toxicity-Perspective'); - Notebooks
- Google Colab
- Kaggle
Commit History
Yesterday
-
Rename to Smaug-Toxicity-Perspective; add onnx/model_quantized.onnx and TEI serving notes
Verified signature7c413b7
11 days ago
-
Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake)
Verified signature46d8d2b -
Toxicity-Lens v1.0
Verified signature115e6b1 -
initial commit
Verified signature42873d4