Applied AI

Updated Nov 2026 by Mangesh Kashid

Fine-tuning a small model to route banking support tickets

I fine-tuned with to classify banking support tickets. I ran the model locally and checked both the predicted intent and whether its response could be parsed by other software.

Role

Creator & Maintainer

Duration

2025 project

Evaluation results

  • 50/50 Correct intents on held-out tickets
  • 50/50 Schema-valid responses on the same tickets
  • 93.4% Intent accuracy on a separate 2,600-example evaluation
  • ~0.5% Model weights trained with LoRA

The larger evaluation is self-reported. The 50-ticket evaluation is available with per-ticket results.

Background and problem

Support tickets arrive in natural language. Routing systems need structured intent labels.

The public Bitext dataset had 25,545 rows in November 2026 and covers about 27 intents. I used 90% of the data for training and reserved 10% for evaluation.

The classifier returns a fixed JSON object so downstream code can parse the result.

When the output doesn’t fit

In the repo’s password-reset example, the classifier returns get_password. The next system can use that label to route the request.

The response has a fixed format so other code can check it.

IntentConfidenceReasonJSON schema

The opportunity

I wanted one pipeline for training and running the model locally:

Start with public support tickets, fine-tune a small model, export it to and classify tickets locally.

Building the pipeline

I formatted the Bitext examples as chat prompts with structured target responses, then fine-tuned Qwen3-0.6B with and .

Data prep, training, conversion and inference each run on their own. The classifier runs locally, so tickets don’t go to a third-party API.

Fine-tuned on Apple Silicon

I trained the LoRA adapter locally on using the , without a cloud GPU.

Validating the response

Each result contains an intent, a confidence number and a one-line reason. The evaluation checks that outputs are valid JSON with the expected keys and types.

I use a rule-based confidence score from data preparation. It isn’t a calibrated probability.

Checking held-out results

I tested the local GGUF model on , checking the intent and independently.

From a ticket to structured data

The classifier takes a plain-text ticket and returns its intent, confidence and a short reason as JSON. The README shows a password-reset example.

I strip Qwen’s reasoning blocks before parsing the classifier response.

Showing why a label was chosen

The reason field explains why the classifier chose the label.

Applications can use the intent field to route the ticket.

From training to local inference

I trained a LoRA adapter, merged it into the base model, exported a GGUF f16 checkpoint and ran it locally with . The repo documents each step.

Six steps from public data to a local model. Step through them, or read all six at once.

Check accuracy and schema validity on a held-out slice.

The repo includes a per-sample evaluation report.

Trying the classifier

The repo shows how to pass a ticket to the classifier and read its parsed response. The trained weights are not bundled; the README documents how to reproduce them.

The public evaluation report includes the metrics and individual test predictions.

Reflections

I published the individual held-out predictions so you can check where the labels came from. This test doesn’t tell us how the classifier would handle all banking support traffic.

View source · Read the evaluation report