Downloads · 30 days
12
100% of all-time downloads
gilangrp/support_ticket_llm
support_ticket_llm is a machine learning model from gilangrp. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tunes an LLM with Unsloth to turn free-text customer complaints/emails into structured JSON: product, category, urgency, sentiment.
Downloads · 30 days
12
100% of all-time downloads
All-time downloads
12
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.3 GB · 100%
From the Hugging Face model README
Fine-tunes an LLM with Unsloth to turn free-text customer complaints/emails
into structured JSON: product, category, urgency, sentiment.
unsloth/Phi-3-mini-4k-instruct-bnb-4bit| File | Description |
|---|---|
Fine-Tuning_Unsloth_SupportTicket.ipynb | Main notebook — load model, dataset, LoRA, training, inference, GGUF export |
support_ticket_data.json | Training data (12 prompt → JSON examples) |
inferece_test.txt | Extra test cases (brands not in training data) to check generalization |
Modelfile | Ollama config auto-generated by Unsloth |
!pip install unslothFastLanguageModel.from_pretrained(...)tokenizer.apply_chat_template)r=64, attention + MLP layers)SFTTrainer (max_steps=60, batch size 2, grad accumulation 4)model.generate()model.save_pretrained_gguf(..., quantization_method="q4_k_m")brew install ollama
ollama create support-ticket-phi3 -f Modelfile
ollama run support-ticket-phi3
Test with multiple cases:
while IFS= read -r line; do
echo "--- Input: $line ---"
ollama run support-ticket-phi3 "$line"
echo ""
done < inferece_test.txt
Result test case:
ollama run support-ticket-phi3
>>> I ordered a MALM bed frame last week and one of the side panels arrived with a big scratch. Not a huge deal but I'd like a replacement panel sent over.
{"category": "product defect", "product": "MALM bed frame", "sentiment": "neutral", "urgency": "low"}
ollama run support-ticket-phi3
>>> Loved how fast your support team replied when I asked about my Adidas Ultraboost order, really appreciated the quick and friendly help.
{"category": "feedback", "product": "Adidas Ultraboost", "sentiment": "positive", "urgency": "low"}
ollama run support-ticket-phi3
>>> The Samsung Galaxy Buds I bought stopped connecting to my phone after only a few days. Pretty frustrating since I use them daily for calls.
{"category": "product defect", "product": "Samsung Galaxy Buds", "sentiment": "negative", "urgency": "medium"}
temperature = 1.5 in the auto-generated Modelfile is too
high for structured extraction — lower it to 0.1–0.3 for consistent JSON.unsloth and bitsandbytes depend on Triton/CUDA. Use Colab's free
T4 GPU or another CUDA cloud..gguf file is lightweight and runs fine on
CPU/Apple Silicon via Ollama or llama.cpp — no GPU needed.