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 tf_model.h5 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/refs%2Fpr%2F3/tf_model.h5
- Command line
-
hf download hf://cardiffnlp/twitter-roberta-base-hate-latest@refs/pr/3/tf_model.h5
-
curl -L -o tf_model.h5 https://huggingface.co/cardiffnlp/twitter-roberta-base-hate-latest/resolve/refs%2Fpr%2F3/tf_model.h5
499 MB
- Xet hash:
- 5598fff74e0e5a7e838ad2816b361f31f68064b62ce503e40ff6d3e5e40f837e
- Size of remote file:
- 499 MB
- SHA256:
- 801874624f718c3e5f3e27eefa7c08386cf6bc04884e2d9649d3e2a915c4fa8a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.