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
Where can I find the prediction head training code?
#10
by ethanjyx - opened
My understanding is this model is using BERT as the backbone and then have a prediction head for the text classification card.
Where can I find the prediction head code? I didn't see it in the "Files and Versions" tab.
Thanks!