Instructions to use valhalla/bart-large-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use valhalla/bart-large-sst2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="valhalla/bart-large-sst2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("valhalla/bart-large-sst2") model = AutoModelForSequenceClassification.from_pretrained("valhalla/bart-large-sst2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 2585b67805024c1637df49ebbdf0825bff29ace8582b688019de17c5061ab3b7
- Size of remote file:
- 1.63 GB
- SHA256:
- 814d0c8dfa994f56e2ea6ec9c6418dff5cfdcc3c0b77aa51f80d8022f9aba2ee
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.