Downloads · 30 days
46
16% of all-time downloads
Anshrajsingh/qwen2.5-1.5b-ticket-classifier
qwen2.5-1.5b-ticket-classifier is a text generation model from Anshrajsingh. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
[](https://huggingface.co/spaces/Anshrajsingh/slm-finetunning) [](https://huggingface.co/Anshrajsingh/qwen2.5-1.5b-ticket-classifier)
Downloads · 30 days
46
16% of all-time downloads
All-time downloads
290
Public
Parameters
1.5B
3.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
From the Hugging Face model README
In enterprise production environments, unstructured text (customer support tickets, invoices, logs) must be mapped to structured databases (SQL/NoSQL) with 100% deterministic reliability.
While massive commercial LLMs (like GPT-4o) achieve high accuracy, they introduce major bottlenecks for high-throughput narrow tasks:
This project demonstrates Cost-Conscious AI Engineering by fine-tuning a 1.5 Billion parameter Small Language Model (SLM) to perform production-grade, schema-bound classification with near-zero latency and fraction of a cent compute cost, making it entirely deployable on the edge or low-cost commodity GPUs.
We evaluated the model on a hidden test dataset of customer support tickets across 4 categorical schema keys: category, urgency, sentiment, and action_required.
| Metric | Base Model (Qwen2.5-1.5B-Instruct) | Fine-Tuned SLM (LoRA Adapted) |
|---|---|---|
| Valid JSON Generation Rate | 100% (Wrapped in Markdown) | 100% (Pure Strict JSON) |
| Schema Compliance | 0.0% (Generated arbitrary tags) | 95.6% (Strictly adheres to enum keys) |
| Exact Match Accuracy | 0.0% | 91.3% |
| Formatting Filler (Yapping) | High | 0.0% (Starts with { ends with }) |
| Deployment Suitability | General Chat | Production-Ready Automated API |
Assumed volume: 1 Million Tickets/Month (~300M Tokens processed)
Qwen/Qwen2.5-1.5B-InstructTrainer pipeline on a single consumer-grade T4 GPU.The model was fine-tuned using custom-engineered synthetic dataset structures following the ChatML format to map arbitrary inputs directly into this immutable JSON schema:
{
"category": "billing | technical | refund | account | general",
"urgency": "low | medium | high",
"sentiment": "positive | negative | neutral",
"action_required": "auto_reply | escalate | close"
}