Downloads · 30 days
10
11% of all-time downloads
Kapilydv6/my-first-sentiment-model
my-first-sentiment-model is a text classification model from Kapilydv6. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
A fine-tuned DistilBERT model for classifying movie reviews as POSITIVE or NEGATIVE.
Downloads · 30 days
10
11% of all-time downloads
All-time downloads
92
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
A fine-tuned DistilBERT model for classifying movie reviews as POSITIVE or NEGATIVE.
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="Kapilydv6/my-first-sentiment-model")
result = classifier("This movie was amazing!")
print(result)
# [{'label': 'POSITIVE', 'score': 0.99}]
This is a beginner project trained on a small subset of IMDB reviews. For production use, train on the full dataset with more epochs.
These warnings are normal and expected:
UNEXPECTED keys (vocab layers)
MISSING keys (classifier, pre_classifier)
| Epoch | Train Loss | Eval Accuracy | Eval F1 |
|---|---|---|---|
| 1 | ~0.51 | 85.0% | 84.96% |
| 2 | ~0.26 | 86.6% | 86.55% |
| 3 | ~0.16 | 87.4% | 87.39% |
✅ Loss decreased (0.60 → 0.15) → Model is learning
✅ Accuracy increased each epoch → Model is improving
✅ Best model (Epoch 3) was automatically selected and saved
| Review | Prediction | Confidence |
|---|---|---|
| "Absolutely fantastic!" | POSITIVE | 97.9% |
| "Terrible waste of time" | NEGATIVE | 96.7% |
| "It was okay, nothing special" | NEGATIVE | 75.3% |
💡 Insight:
Symlinks warning
LayerNorm gamma/beta → weight/bias