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