Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

abacusai
/
Smaug-Toxicity-Perspective

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
Model card Files Files and versions
xet
Community

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
Smaug-Toxicity-Perspective / figures
203 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
prann-ab's picture
prann-ab
Rename to Smaug-Toxicity-Perspective; add onnx/model_quantized.onnx and TEI serving notes
7c413b7 verified 1 day ago
  • hero_textdetox.png
    78.4 kB
    Rename to Smaug-Toxicity-Perspective; add onnx/model_quantized.onnx and TEI serving notes 1 day ago
  • perspective_thresholds.png
    124 kB
    xet
    Rename to Smaug-Toxicity-Perspective; add onnx/model_quantized.onnx and TEI serving notes 1 day ago