Instructions to use cardiffnlp/roberta-base-hate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/roberta-base-hate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/roberta-base-hate")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/roberta-base-hate") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/roberta-base-hate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
38b0025 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:34c543799d9e623ba6d5b0eff42ba4cc389f3e9e26a3727e36070215d0a9a54c
size 498662069
|