Instructions to use cardiffnlp/roberta-base-offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/roberta-base-offensive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/roberta-base-offensive")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/roberta-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/roberta-base-offensive", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from cardiffnlp/roberta-base-offensive: direct link, hf CLI and curl.
- Browser
- Download file 499 MB
-
https://huggingface.co/cardiffnlp/roberta-base-offensive/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://cardiffnlp/roberta-base-offensive/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/cardiffnlp/roberta-base-offensive/resolve/main/pytorch_model.bin
499 MB
- Xet hash:
- ac131c6c14a41ecdc9bed4f34252c276d7de6b7775a9a6168e8dfdb6f6109e83
- Size of remote file:
- 499 MB
- SHA256:
- 0a9d6be8a843cfb3bc219f14ed6a0b693a5a576ff202ccecaf68c3b8b231dd70
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.