Downloads · 30 days
4
10% of all-time downloads
saketgarodia1/bert-it-ticket-student
bert-it-ticket-student is a text classification model from saketgarodia1. Use it when you need a label for a piece of text. It is set up for transformers.
This is a DistilBERT student model fine-tuned via knowledge distillation from the teacher model:
Downloads · 30 days
4
10% of all-time downloads
All-time downloads
40
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
This is a DistilBERT student model fine-tuned via knowledge distillation from the teacher model:
👉 saketgarodia1/bert-IT-ticket-classifier-full
The goal is to create a lighter, faster IT ticket classifier while retaining high performance.
⚠️ Replace the
Xvalues below once you finalize the test metrics.
| Model | Accuracy | Macro F1 | Notes |
|---|---|---|---|
| Teacher (BERT Base) | 0.9374 | 0.9362 | ~110M params |
| Student (DistilBERT) | 0.93X | 0.93X | ~67M params, ~40% smaller & faster |
The student is trained using a combined loss:
[ \mathcal{L} = \alpha \cdot \text{CE}(\text{student}, \text{labels}) ;+; (1 - \alpha) \cdot \text{KL}(\text{student}, \text{teacher}) ]
Key settings:
0.3 → more weight on hard labels2 → KL on softened logits10%AdamW
2e-50.01316 / 32from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "saketgarodia1/bert-it-ticket-student"
model = AutoModelForSequenceClassification.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
text = "VPN not connecting to corporate WiFi"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
pred_class_id = logits.argmax(dim=-1).item()
print("Predicted class id:", pred_class_id)