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
3.13 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 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 22 hours ago
  • figures
    Toxicity-Lens v1.0 about 22 hours ago
  • onnx
    Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake) about 22 hours ago
  • .dockerignore
    95 Bytes
    Toxicity-Lens v1.0 about 22 hours ago
  • .gitattributes
    1.64 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • Dockerfile
    829 Bytes
    Toxicity-Lens v1.0 about 22 hours ago
  • LICENSE
    11.4 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • NOTICE
    3.96 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • README.md
    86.1 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • calibration.json
    934 Bytes
    Toxicity-Lens v1.0: the released v2.3b weights and calibration (the previous commit carried v1.4 files by mistake) about 22 hours ago
  • compare_with_perspective.py
    2.82 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • config.json
    2.39 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • model.safetensors
    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 22 hours ago
  • server.py
    14.8 kB
    Toxicity-Lens v1.0 about 22 hours ago
  • tokenizer.json
    34.4 MB
    xet
    Toxicity-Lens v1.0 about 22 hours ago
  • tokenizer_config.json
    453 Bytes
    Toxicity-Lens v1.0 about 22 hours ago