This is a small, real fine-tuning run from Boole Inference (Boole AI, Inc.). We built it as a worked example of our fine-tuning workflow. It is a demonstration artifact, not a production model.
Qwen/Qwen2.5-0.5B-Instruct was LoRA-fine-tuned to classify banking customer-support messages into 10 intents from BANKING77. The model answers with exactly one label.
This repo contains:
adapter/scripts/eval/| Model | Exact-match accuracy (n=400) | Output is a valid label |
|---|---|---|
| Qwen2.5-0.5B-Instruct (base, zero-shot) | 60.75% (243/400) | 82.75% |
| This model (LoRA, merged) | 97.75% (391/400) | 100% |
Correct answers per intent (out of 40 each):
| Intent | Base | Fine-tuned |
|---|---|---|
| card_arrival | 25 | 36 |
| lost_or_stolen_card | 38 | 39 |
| exchange_rate | 38 | 40 |
| top_up_failed | 35 | 38 |
| cash_withdrawal_charge | 17 | 40 |
| change_pin | 39 | 40 |
| declined_transfer | 6 | 40 |
| refund_not_showing_up | 29 | 38 |
| passcode_forgotten | 6 | 40 |
| terminate_account | 10 | 40 |
Refund_not_showing_up was lowercased.scripts/eval.py runs both models through the same chat-templated prompt with greedy decoding. A prediction counts as correct only if the stripped output exactly matches the gold label string. You can reproduce the numbers with:
python scripts/eval.py Qwen/Qwen2.5-0.5B-Instruct eval_base.json
python scripts/train.py
python scripts/eval.py out/merged eval_finetuned.json
(The scripts expect train.csv and test.csv from the PolyAI repo in the working directory.)
model.safetensors 2.0 GBadapter/adapter_model.safetensors 35 MBQwen/Qwen2.5-0.5B-Instruct