Instructions to use cardiffnlp/twitter-roberta-base-dec2021-topic-multi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-roberta-base-dec2021-topic-multi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-dec2021-topic-multi")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-dec2021-topic-multi") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-dec2021-topic-multi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
4d410bd | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:af8adab28baff1a69d3217260b12d86da1b20204ae8f9004d38a53420a7987d3
size 498711541
|