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