Text Classification
Transformers
Safetensors
English
distilbert
customer-support
mlops
Eval Results (legacy)
text-embeddings-inference
Instructions to use Abhimanyu345/ticket-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Abhimanyu345/ticket-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Abhimanyu345/ticket-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Abhimanyu345/ticket-classifier") model = AutoModelForSequenceClassification.from_pretrained("Abhimanyu345/ticket-classifier") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Abhimanyu345/ticket-classifier")
model = AutoModelForSequenceClassification.from_pretrained("Abhimanyu345/ticket-classifier")Quick Links
Customer Support Ticket Classifier
Fine-tuned DistilBERT model for classifying customer support tickets into 5 categories.
Model Description
This model is a fine-tuned version of distilbert-base-uncased trained on real customer support tweets from the Customer Support on Twitter dataset.
Developed as part of the MLDLOps Course Project at IIT Rajasthan by Abhimanyu Gupta (B22BB001).
Labels
| ID | Label |
|---|---|
| 0 | Billing inquiry |
| 1 | Cancellation request |
| 2 | Product inquiry |
| 3 | Refund request |
| 4 | Technical issue |
Performance
| Metric | Value |
|---|---|
| Test Accuracy | 99.0% |
| Macro F1 | 0.989 |
| Training Time | ~4.5 min (T4 GPU) |
| Inference Latency | ~60ms (CPU) |
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="abhimanyu345/ticket-classifier"
)
result = classifier("I was charged twice for my subscription this month")
print(result)
# [{'label': 'Billing inquiry', 'score': 0.9996}]
Training Details
- Base model: distilbert-base-uncased
- Learning rate: 3e-5
- Batch size: 32
- Epochs: 4
- Max sequence length: 128
- Training platform: Google Colab T4 GPU
- Experiment tracking: WandB Project
Dataset
- Source: Twitter Customer Support dataset (2.8M tweets)
- After filtering: 658,787 labeled examples
- After balancing: 25,000 examples (5,000 per class)
- Split: 70% train / 15% val / 15% test
MLOps Pipeline
Full production pipeline including:
- DVC โ data versioning
- WandB โ experiment tracking
- FastAPI โ model serving
- Docker โ containerization
- Prometheus โ metrics monitoring
- Evidently AI โ drift detection
- GitHub Actions โ CI/CD
GitHub Repository: https://github.com/abhimanyu345/ticket-classifier
Citation
@misc{gupta2026ticketclassifier,
author = {Abhimanyu Gupta},
title = {Customer Support Ticket Classifier with MLOps Pipeline},
year = {2026},
publisher = {HuggingFace},
journal = {HuggingFace Model Hub},
howpublished = {\url{https://huggingface.co/abhimanyu345/ticket-classifier}}
}
- Downloads last month
- 14
Evaluation results
- Test Accuracy on Customer Support on Twitterself-reported0.990
- Macro F1 on Customer Support on Twitterself-reported0.989
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Abhimanyu345/ticket-classifier")