stanfordnlp/sst2
Viewer β’ Updated β’ 70k β’ 42.3k β’ 162
Vibe Check is a compact (~2M parameter) Transformer text classifier that predicts whether a sentence is Positive or Negative. It was built entirely from scratch β my own word tokenizer and my own model architecture, trained from random initialization (no pretrained weights, no fine-tuning) on the public Stanford Sentiment Treebank (SST-2) dataset.
Unlike many models on the Hub, this is not a fine-tune of a large pretrained model β every weight was learned from zero on public data. Training code, tokenizer, and config are included.
# see vibe.py in this repo for the model definition + predict_vibe()
from vibe import predict_vibe
print(predict_vibe("I absolutely love this!")) # {'label': 'Positive', 'confidence': 98.5}
Trained on SST-2 (public research dataset). Released under Apache-2.0. For entertainment/educational use; a small model, so expect ~1 in 5 predictions to be wrong on hard/ambiguous text.