What it does
It reads one short message and picks what the customer is asking about from a fixed list of 77 request types, such as a card that has not arrived, a wrong exchange rate or a pending cash withdrawal. A support system can use the answer to send the message to the right team or the right help article.
Table with columns: Message, Answer| Message | Answer |
|---|
| I still have not received my new card, I ordered over a week ago. | card_arrival |
| The rate applied to my foreign purchase was incorrect | card_payment_wrong_exchange_rate |
| Why does my account have a pending cash withdrawal? | pending_cash_withdrawal |
On a test it had never seen, it picks the right request type for about 86 of every 100 messages.
Why it exists
Large AI models can already do this well, but they are expensive to run, slow, and usually mean sending your users' text to someone else's server. This model is about 50 times smaller than the large model it learned from, so it is cheap enough to run on your own hardware, and the test below shows it is about as accurate. This version is a small 40 MB add-on for the free, open Qwen/Qwen3-0.6B model.
How it was made
- A large model, Qwen3-30B-A3B (an open model with 30 billion parameters), answered 8,222 example customer messages. Its answers became the lessons, so no one had to label the examples by hand.
- The small model,
Qwen/Qwen3-0.6B, studied those answers until it gave the same ones. Only a small add-on was trained (LoRA), not the whole model, so this fits on one free GPU.
- A fair test, with the rule fixed in advance. Before any training, we wrote down a pass rule: the small model passes if, with 95% confidence, it is at most 2 points less accurate than the large model. Both were then tested once on 3,080 customer messages with answers checked by people, which neither had seen. Result: 85.6% against the large model's 85.6%, so it passed.
Which version to pick
All versions below do the same job. The score is the accuracy on the same 3,080-item test
(the large model: 85.6%).
Table with columns: Version, Base model, What it is, Pick it if, Score| Version | Base model | What it is | Pick it if | Score |
|---|
mikan-research/banking77-qwen3-0.6b-gguf | Qwen3-0.6B | Single 4-bit file (397 MB) for llama.cpp on a CPU | you want to run it on a laptop or any computer without a GPU | 84.9% |
mikan-research/banking77-qwen3-0.6b-w4a16 | Qwen3-0.6B | 4-bit model (850 MB) for vLLM on a GPU | you answer many requests from a GPU server | 85.0% |
mikan-research/banking77-qwen3-0.6b-lora (this model) | Qwen3-0.6B | Add-on (LoRA adapter, 40 MB) for the open Qwen/Qwen3-0.6B model | you want to train it further or work in Python with transformers | 85.6% |
Not sure? Start with mikan-research/banking77-qwen3-0.6b-gguf: it runs on a laptop and you can try it in the demo Space first. Larger 1.7B and 4B students scored about the same on this task; their test predictions are in mikan-research/banking77-distill.
How to use it
Needs Python with transformers and peft (pip install transformers peft torch). The script loads the open base
model, adds this adapter and classifies one message. The prompt is a short system message with no label list;
thinking is off.
from peft import PeftModelfrom transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mikan-research/banking77-qwen3-0.6b-lora")model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B", torch_dtype="auto"), "mikan-research/banking77-qwen3-0.6b-lora")messages = [{"role": "system", "content": "Classify the online-banking customer message into exactly one intent. Reply with the intent label only."}, {"role": "user", "content": "I still have not received my new card"}]ids = tok.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False, return_tensors="pt")print(tok.decode(model.generate(ids, max_new_tokens=24, do_sample=False)[0, ids.shape[1]:], skip_special_tokens=True))
Technical details
LoRA adapter for Qwen/Qwen3-0.6B, trained on 8,222 Banking77 training messages with teacher labels (Qwen3-30B-A3B-Instruct-2507-FP8, 10-shot).
Part of Mikan, a pipeline that distils a large model's behaviour on one narrow task into a small
model and tests non-inferiority with a pre-registered margin. How to reproduce or train: contributing guide.
Training data and predictions: mikan-research/banking77-distill.
Merged 4-bit versions, each evaluated on the same test split: mikan-research/banking77-qwen3-0.6b-w4a16 for vLLM and mikan-research/banking77-qwen3-0.6b-gguf (GGUF) for llama.cpp on CPU.
Results (Banking77 test split, 3,080 items, ground truth)
Table with columns: Accuracy | Accuracy |
|---|
| This adapter | 85.6% |
| Teacher (Qwen3-30B-A3B-Instruct-2507-FP8, 10-shot) | 85.6% |
Gap (teacher − student): 0.1 points, 95% paired bootstrap CI [-0.8, 0.9].
Non-inferiority margin δ = 2 points: PASS. Valid-label rate 99.8%.
The checkpoint (epoch 3 of 3) was chosen on a held-out validation split; the test split was predicted once.
Training
LoRA r=16, alpha=32, all linear projections; lr 0.0002, cosine schedule, 3 epochs,
batch 32, fp16, 8-bit AdamW; loss on the completion only. Unsloth 2026.11.12 + TRL 1.19.0 on one Tesla T4
(14 min). meta.json has the per-epoch validation accuracy and loss log.
Banking77 (PolyAI, CC-BY-4.0): Casanueva et al., 2020, "Efficient Intent Detection with Dual Sentence Encoders".