Instructions to use cardiffnlp/twitter-roberta-base-offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-roberta-base-offensive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-offensive")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-offensive") - Inference
- Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#4 opened about 1 year ago
by
SFconvertbot
Please help to fix this error
#3 opened about 2 years ago
by
Anchalg
License of pre-trained models
#2 opened over 2 years ago
by
frey85
Adding `safetensors` variant of this model
👍 1
#1 opened about 3 years ago
by
SFconvertbot