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
/
Toxicity-Lens

Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
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/Toxicity-Lens with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use abacusai/Toxicity-Lens with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="abacusai/Toxicity-Lens")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("abacusai/Toxicity-Lens")
    model = AutoModelForSequenceClassification.from_pretrained("abacusai/Toxicity-Lens", device_map="auto")
  • Transformers.js

    How to use abacusai/Toxicity-Lens with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('text-classification', 'abacusai/Toxicity-Lens');
  • Notebooks
  • Google Colab
  • Kaggle
Toxicity-Lens / onnx
1.86 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
prann-ab's picture
prann-ab
Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake)
46d8d2b verified about 23 hours ago
  • model.onnx
    1.23 GB
    xet
    Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake) about 23 hours ago
  • model_int8.onnx
    309 MB
    xet
    Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake) about 23 hours ago
  • model_int8_block32.onnx
    322 MB
    xet
    Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake) about 23 hours ago