AI Tools.

Search

text classification

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

distilbert-base-uncased-finetuned-sst-2-english is a DistilBERT model fine-tuned on the Stanford Sentiment Treebank v2 (SST-2) for binary positive/negative sentiment classification of English text. It is one of the most downloaded sentiment classifiers on HuggingFace and commonly used as a demonstration or fast baseline. The model achieves approximately 91% accuracy on the SST-2 validation set.

Last reviewed

Use cases

  • Binary sentiment classification of product reviews or social media posts
  • Teaching example for the HuggingFace text-classification pipeline
  • Fast sentiment baseline before training a domain-specific classifier
  • Filtering positive or negative feedback in automated labeling pipelines

Pros

  • Lowest-latency widely-used sentiment classifier with minimal inference overhead
  • Drop-in compatible with HuggingFace text-classification pipeline
  • Apache 2.0 with ONNX, safetensors, TensorFlow, and Rust export options

Cons

  • Binary only — cannot detect neutral, mixed, or fine-grained sentiment
  • SST-2 training on movie reviews causes domain shift on non-review text
  • No multilingual support despite multilingual DistilBERT variants existing

FAQ

What is distilbert-base-uncased-finetuned-sst-2-english used for?

Binary sentiment classification of product reviews or social media posts. Teaching example for the HuggingFace text-classification pipeline. Fast sentiment baseline before training a domain-specific classifier. Filtering positive or negative feedback in automated labeling pipelines.

Is distilbert-base-uncased-finetuned-sst-2-english free to use?

distilbert-base-uncased-finetuned-sst-2-english is an open-source model published on HuggingFace. License terms vary by model — check the model card for the specific license.

How do I run distilbert-base-uncased-finetuned-sst-2-english locally?

Most HuggingFace models can be loaded with transformers or the appropriate framework library. See the model card for framework-specific instructions and hardware requirements.

Tags

transformerspytorchtfrustonnxsafetensorsdistilberttext-classificationendataset:sst2dataset:gluearxiv:1910.01108doi:10.57967/hf/0181license:apache-2.0model-indexendpoints_compatibledeploy:azureregion:us