kev-banking77

Kev-4B fine-tuned to answer one question about a text:

Which customer-support intent does this message express?

It chooses one of 77 labels from PolyAI/banking77 and gives a probability for each.

Trained on Hugging Face Jobs with the decision-model recipe: 78 min on one GPU Job, from a labelled Hub dataset to this repo.

Results

On 500 development records (PolyAI/banking77, held out from training):

model accuracy calibration error (ECE)
fine-tuned (this model) 87.6 % 0.077
released Kev-4B 82.8 % 0.123
fine-tuned, temperature fitted on other folds (out-of-fold check) 87.6 % 0.022

Fine-tuned minus released, on the same 500 records: +4.8 points (95 % bootstrap interval +2.2 to +7.4); 35 answers became correct and 11 became wrong.

One training run, one seed.

The checkpoint runs at temperature 1.0. Kev's calibration step fitted one temperature, 1.91, on all development records. Row 3 checks the method out-of-fold: each fold's temperature is fitted on the other folds. It lowers the calibration error from 0.077 to 0.022. To use the fitted value, set KEV_TEMPERATURE=1.91 when you serve the model with Kev's commands.

Training

data PolyAI/banking77 at 1846984189f2bc0ac51c6fc3a600fa9e1714e0c6; 2,000 training and 500 development records; texts cut at 2,000 characters
started from jaredpalmer/kev-4b@6cfce5c2fa4b4bd64026336ab649c5ca78857d52
Kev code commit 6b719c3c3f367295f6ef336f4f751cf5ff970abc
base model Qwen/Qwen3.5-4B-Base at 1001bb4d826a52d1f399e183466143f4da7b741b
run time 78 min on one GPU Job (training and both evaluations)

Trained with train-kev.py from uv-scripts/classification on Hugging Face Jobs. prepare.json, run.json and the Kev reports in reports/ are in this repo.

Use

Serve it with the Kev repository, as Kev-4B:

git clone https://github.com/jaredpalmer/kev.git && cd kev && uv sync --extra serve
uv run --extra serve python -m kev.serve --run davanstrien/kev-banking77 --port 8008

Then ask the question with the same instruction and the same labels as in training (see prepare.json).

Licence

Read the licences of the base model (jaredpalmer/kev-4b) and of the training data (PolyAI/banking77) before you use or share this model. The training data's licence can ask for attribution.

Downloads last month
22
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for davanstrien/kev-banking77

Adapter
(12)
this model

Dataset used to train davanstrien/kev-banking77