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