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