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

  • Log In
  • Sign Up

s-nlp
/
roberta_toxicity_classifier

Text Classification
Transformers
PyTorch
English
roberta
toxic comments classification
Model card Files Files and versions
xet
Community
1

Instructions to use s-nlp/roberta_toxicity_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use s-nlp/roberta_toxicity_classifier with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="s-nlp/roberta_toxicity_classifier")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("s-nlp/roberta_toxicity_classifier")
    model = AutoModelForSequenceClassification.from_pretrained("s-nlp/roberta_toxicity_classifier")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
roberta_toxicity_classifier
502 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 14 commits
dardem's picture
dardem
Update README.md
048c25b verified over 1 year ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • README.md
    3.43 kB
    Update README.md over 1 year ago
  • config.json
    794 Bytes
    Update config.json over 4 years ago
  • merges.txt
    456 kB
    The first commit over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    501 MB
    xet
    The first commit over 4 years ago
  • special_tokens_map.json
    239 Bytes
    The first commit over 4 years ago
  • tokenizer_config.json
    25 Bytes
    The first commit over 4 years ago
  • vocab.json
    798 kB
    The first commit over 4 years ago