Downloads · 30 days
9
8% of all-time downloads
vaibhav2507/imdb-distilbert-demo
imdb-distilbert-demo is a machine learning model from vaibhav2507. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a fine-tuned version of DistilBERT-base-uncased on the IMDb movie reviews dataset. It is trained for binary sentiment classification: predicting whether a review is positive or negative.
Downloads · 30 days
9
8% of all-time downloads
All-time downloads
119
Public
Parameters
67M
268 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of DistilBERT-base-uncased on the IMDb movie reviews dataset.
It is trained for binary sentiment classification: predicting whether a review is positive or negative.
distilbert-base-uncasedExample results (1 epoch, CPU training):
⚠️ These are approximate demo numbers. With more epochs + GPU training, performance can reach ~90%+.
You can load the model directly with the Hugging Face pipeline:
from transformers import pipeline
clf = pipeline("text-classification", model="vaibhav2507/imdb-distilbert-demo")
print(clf("This movie was fantastic and the acting was brilliant."))
# [{'label': 'POSITIVE', 'score': 0.99}]
print(clf("Plot holes everywhere. I want my two hours back."))
# [{'label': 'NEGATIVE', 'score': 0.98}]