Text Classification
Transformers
PyTorch
TensorFlow
Rust
ONNX
Safetensors
English
distilbert
Eval Results (legacy)
Instructions to use distilbert/distilbert-base-uncased-finetuned-sst-2-english with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distilbert/distilbert-base-uncased-finetuned-sst-2-english with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="distilbert/distilbert-base-uncased-finetuned-sst-2-english")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-uncased-finetuned-sst-2-english") model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased-finetuned-sst-2-english") - Inference
- Notebooks
- Google Colab
- Kaggle
Ctrl+K