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")# pip install -U transformers accelerate # 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", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from cardiffnlp/twitter-roberta-base-offensive: direct link, hf CLI and curl.
- Browser
- Download file 499 MB
-
https://huggingface.co/cardiffnlp/twitter-roberta-base-offensive/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://cardiffnlp/twitter-roberta-base-offensive/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/cardiffnlp/twitter-roberta-base-offensive/resolve/main/pytorch_model.bin
499 MB
- Xet hash:
- b47e51364a2b21677df92b260f52691e280fc65b1ca4e69ae7301b2f74398b66
- Size of remote file:
- 499 MB
- SHA256:
- 567986bcadccba5c69da22dafd65ab67bc652facbaf8da76d6f45555f42d6b97
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.