Downloads · 30 days
9
8% of all-time downloads
VaibhavG25AIT2122/mlops-emotion-classifier
mlops-emotion-classifier is a text classification model from VaibhavG25AIT2122. 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.
This model is a fine-tuned version of distilbert-base-uncased trained on a small subset of the emotion dataset. It was developed specifically to fulfill the requirements of an End-to-End MLOps Pipeline academic assign…
Downloads · 30 days
9
8% of all-time downloads
All-time downloads
117
Public
Parameters
67M
536 MB on disk
Likes
1
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 trained on a small subset of the emotion dataset. It was developed specifically to fulfill the requirements of an End-to-End MLOps Pipeline academic assignment, demonstrating model fine-tuning, W&B tracking, Docker containerization, and GitHub Actions automation.
distilbert-base-uncasedThis model is intended solely for educational purposes to demonstrate a working MLOps pipeline. It classifies English text into six basic emotions (sadness, joy, love, anger, fear, surprise).
Because it was trained on a severely reduced dataset to meet Kaggle's free GPU time limits, this model is not suitable for any real-world or production applications.
The model inherits biases from the base DistilBERT model and the subset of the dair-ai/emotion dataset. Accuracy is intentionally compromised for the sake of pipeline speed.
Use the code below to test the inference:
from transformers import pipeline
classifier = pipeline("text-classification", model="VaibhavG25AIT2122/mlops-emotion-classifier")
print(classifier("I am feeling very happy today!"))
Trained on a 2,000-sample subset of the dair-ai/emotion dataset to ensure fast training times on free compute.
Null values were dropped and all text was lowercased. Tokenized using DistilBertTokenizer with padding="max_length" and truncation=True.
Evaluated on a 500-sample validation subset using Accuracy and weighted F1-score.
transformers 4.38.2torch 2.2.1wandbdatasetsGroup 15 - Created for MLOps Assignment