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