Downloads · 30 days
8
5% of all-time downloads
FarhanAK128/TicketClassificationGPT
TicketClassificationGPT is a text classification model from FarhanAK128. 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.
TicketClassificationGPT is a GPT-2–based text classification model designed entirely from scratct to classify IT support tickets into 8 predefined categories. The model uses the original OpenAI GPT-2 architecture and…
Downloads · 30 days
8
5% of all-time downloads
All-time downloads
168
Public
Parameters
137M
548 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors548 MB · 100%
From the Hugging Face model README
TicketClassificationGPT is a GPT-2–based text classification model designed entirely from scratct to classify IT support tickets into 8 predefined categories.
The model uses the original OpenAI GPT-2 architecture and weights, with the language modeling head replaced by a custom classification head. Only the final layers were fine-tuned for the ticket classification task.
This model is fully compatible with the Hugging Face transformers ecosystem and can be loaded using AutoModel.from_pretrained.
from transformers import AutoModel
import tiktoken
# Load tokenizer
tokenizer = tiktoken.get_encoding("gpt2")
# Load model
model_id = "FarhanAK128/TicketClassificationGPT"
model = AutoModel.from_pretrained(
model_id,
trust_remote_code=True
)
# Example prediction
text = "Need extra space on Google Drive."
prediction = model.predict(text, tokenizer)
print("Predicted class:", prediction) # Predicted class: Storage
Note: This model uses a custom .predict() method defined in the repository and requires trust_remote_code=True to function.
| Class ID | Category |
|---|---|
| 0 | Hardware |
| 1 | HR Support |
| 2 | Access |
| 3 | Miscellaneous |
| 4 | Storage |
| 5 | Purchase |
| 6 | Internal Project |
| 7 | Administrative Rights |
The model was trained on the IT Service Ticket Classification Dataset available on Kaggle.
The dataset was used for supervised multi-class classification after standard text preprocessing and tokenization.


| Dataset Split | Accuracy |
|---|---|
| 🏋️ Training | 76.54% |
| 🧪 Validation | 75.67% |
| 🧠 Test | 73.83% |
This model can be used directly to classify short IT support ticket texts into predefined categories.
Example use cases:
The model may be further fine-tuned on:
Human validation is recommended before using predictions in production systems.
For best results, further fine-tuning on in-domain data is advised.
Farhan Ali Khan
For questions or feedback, please reach out via my Hugging Face profile: FarhanAK128