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", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
Update README.md 5de477c
Tristan Thrush commited on
Create README.md 55ba005
Tristan Thrush commited on
Update config.json 99d5a78
Tristan Thrush commited on
add tokenizer 44fe2da
Tristan Thrush commited on
add model 74b2335
Tristan Thrush commited on
initial commit 893402a
Tristan Thrush commited on