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