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

facebook
/
roberta-hate-speech-dynabench-r4-target

Text Classification
Transformers
PyTorch
Safetensors
English
roberta
Model card Files Files and versions
xet
Community
2

Instructions to use facebook/roberta-hate-speech-dynabench-r4-target with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/roberta-hate-speech-dynabench-r4-target with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="facebook/roberta-hate-speech-dynabench-r4-target")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("facebook/roberta-hate-speech-dynabench-r4-target")
    model = AutoModelForSequenceClassification.from_pretrained("facebook/roberta-hate-speech-dynabench-r4-target")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
roberta-hate-speech-dynabench-r4-target
999 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
mrm8488's picture
mrm8488
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
391c99a about 3 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • README.md
    570 Bytes
    Update README.md almost 4 years ago
  • config.json
    816 Bytes
    Update config.json almost 4 years ago
  • merges.txt
    456 kB
    add tokenizer almost 4 years ago
  • model.safetensors
    499 MB
    xet
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    499 MB
    xet
    add model almost 4 years ago
  • special_tokens_map.json
    239 Bytes
    add tokenizer almost 4 years ago
  • tokenizer_config.json
    1.11 kB
    add tokenizer almost 4 years ago
  • vocab.json
    899 kB
    add tokenizer almost 4 years ago