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
Download pytorch_model.bin from cardiffnlp/roberta-base-hate: direct link, hf CLI and curl.
- Browser
- Download file 499 MB
-
https://huggingface.co/cardiffnlp/roberta-base-hate/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://cardiffnlp/roberta-base-hate/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/cardiffnlp/roberta-base-hate/resolve/main/pytorch_model.bin
499 MB
- Xet hash:
- 1309bcb08dd714e6e6f0bd9bb43610d2b20d9ae1767ecb7243ec46e3a8bd2bfe
- Size of remote file:
- 499 MB
- SHA256:
- 34c543799d9e623ba6d5b0eff42ba4cc389f3e9e26a3727e36070215d0a9a54c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.