Downloads · 30 days
35
24% of all-time downloads
g25ait2149/mlops-group28-emotion-distilbert-iitj
mlops-group28-emotion-distilbert-iitj is a text classification model from g25ait2149. Use it when you need a label for a piece of text. The card lists the license as mit.
Fine-tuned distilbert-base-uncased for multi-class emotion classification on English text. Trained as part of the MLOps Group Assignment at IIT Jodhpur (PGD AI, 2025–26).
Downloads · 30 days
35
24% of all-time downloads
All-time downloads
144
Public
Parameters
67M
804 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned distilbert-base-uncased for multi-class emotion classification on English text. Trained as part of the MLOps Group Assignment at IIT Jodhpur (PGD AI, 2025–26).
| Property | Value |
|---|---|
| Base model | distilbert-base-uncased |
| Task | Text classification (6 classes) |
| Language | English |
| License | MIT |
| Parameters | ~66 million |
| Training epochs | 3 (v1) / 5 (v2) |
| Best version | v2 (lr=5e-5, 5 epochs) |
| ID | Emotion |
|---|---|
| 0 | sadness |
| 1 | joy |
| 2 | love |
| 3 | anger |
| 4 | fear |
| 5 | surprise |
Evaluated on the held-out test split of dair-ai/emotion (2,000 samples).
| Version | Learning rate | Epochs | Accuracy | F1 (weighted) |
|---|---|---|---|---|
| v1 | 3e-5 | 3 | 0.9395 | 0.9393 |
| v2 | 5e-5 | 5 | 0.9415 | 0.9414 |
Best model: v2 — pushed to this repository.
Full experiment logs are available on Weights & Biases.
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="g25ait2149/mlops-group28-emotion-distilbert-iitj"
)
result = classifier("I am feeling so happy today!")
print(result)
# [{'label': 'joy', 'score': 0.97}]
DistilBERT was selected because it is 40% smaller and 60% faster than BERT while retaining 97% of its language understanding performance, as reported in the original model card. At 66 MB, it fits comfortably within Kaggle's free GPU memory limits, enabling rapid iteration across multiple hyperparameter configurations. Its pre-training on English text using masked language modelling makes it well-suited for downstream text classification tasks such as emotion detection. Compared to larger alternatives like RoBERTa-base, DistilBERT completes fine-tuning in under 20 minutes on a T4 GPU, making it practical for academic experimentation.
Developed by Group 28 — IIT Jodhpur PGD AI, Trimester 2, 2025–26.
| Name | Roll Number |
|---|---|
| U E Sai Pavan Vamshi Krishna | G25AIT2149 |
| Shivender KR Gautam | G25AIT2101 |
| Manoj Godara | G25AIT2060 |
If you use this model, please cite:
@misc{iitj-group28-emotion-2025,
title = {Emotion Detection from Text using DistilBERT},
author = {Group 28, IIT Jodhpur},
year = {2025},
url = {https://huggingface.co/g25ait2149/mlops-group28-emotion-distilbert-iitj}
}