🏷️ Text Classification

distilbert-base-uncased-finetuned-sst-2-english

distilbert/distilbert-base-uncased-finetuned-sst-2-english

Get AI Model →
3.2M
Downloads
❤️
891
Likes
🏷️
18
Tags
📦
transformers
Library
Model Details
Full Model IDdistilbert/distilbert-base-uncased-finetuned-sst-2-english
Pipeline / Tasktext-classification
Librarytransformers
Downloads (all-time)3.2M
Likes891
Last Modified12/19/2023
Author / Orgdistilbert
PrivateNo — public
⚡ Quick Usage (Python)

Using the 🤗 Transformers library. Install with pip install transformers

from transformers import pipeline

# Load the model
pipe = pipeline("text-classification", model="distilbert/distilbert-base-uncased-finetuned-sst-2-english")

# Run inference
result = pipe("Your input here")
print(result)
🏷️ Tags
transformerspytorchtfrustonnxsafetensorsdistilberttext-classificationendataset:sst2dataset:gluearxiv:1910.01108doi:10.57967/hf/0181license:apache-2.0model-indexendpoints_compatibledeploy:azureregion:us
More Text Classification Models
See all →
ms-marco-MiniLM-L6-v2

cross-encoder/ms-marco-MiniLM-L6-v2

24.1M❤️ 220
Get AI Model →
bge-reranker-v2-m3

BAAI/bge-reranker-v2-m3

7.5M❤️ 955
Get AI Model →
finbert

ProsusAI/finbert

4.8M❤️ 1.1K
Get AI Model →
🚀 Use This Model

Access model files, inference API, and full documentation on Hugging Face.

Open on Hugging Face →Browse Model Files ↗← Browse All Models
🏷️ Task: Text Classification

This model is designed for the Text Classification task. Explore more models for this use case.

All Text Classification Models →
📊 Popularity
Downloads3.2M
❤️ Community Likes891
🛠️ Requirements
  • Install: pip install transformers
  • Python 3.8+ recommended for Transformers.
  • GPU (CUDA) speeds up inference significantly.
  • Use model.half() for fp16 on limited VRAM.
👋 Need help with code?