Banking77 intent classifier · Qwen3-0.6B · 4-bit for GPU servers (vLLM)
Reads a message a customer sent to an online bank and says what they want. Made with Mikan, an open-source project that teaches a small model one narrow job from a large model, then checks fairly that it does the job about as well.
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.
| 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 85 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. On a GPU server this version costs about 9 times less per request than the large 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. - Its numbers were stored with 4 bits instead of 16, shrinking it from 1.19 GB to 850 MB, at a cost of 0.6 points of accuracy.
- 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.0% 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%).
| 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 (this model) | 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 | 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
Serve it with vLLM and call it like any OpenAI-compatible API. The prompt is a short system message with no label list; thinking is off. Decoding is constrained to the 77 labels, as in the evaluation.
vllm serve mikan-research/banking77-qwen3-0.6b-w4a16 --max-model-len 1024
from huggingface_hub import hf_hub_download
from openai import OpenAI
labels = open(hf_hub_download("mikan-research/banking77-distill", "banking77/labels.txt", repo_type="dataset")).read().split()
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
r = client.chat.completions.create(
model="mikan-research/banking77-qwen3-0.6b-w4a16", temperature=0, max_tokens=24,
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"}],
extra_body={"structured_outputs": {"choice": labels}, "chat_template_kwargs": {"enable_thinking": False}})
print(r.choices[0].message.content)
Technical details
The LoRA adapter mikan-research/banking77-qwen3-0.6b-lora merged into Qwen/Qwen3-0.6B and quantized to 4-bit weights
(GPTQ, W4A16, group size 128) in compressed-tensors format, for serving with vLLM. 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. Data and predictions:
mikan-research/banking77-distill.
A GGUF version for llama.cpp on CPU is mikan-research/banking77-qwen3-0.6b-gguf. Try the GGUF version in your browser in the demo Space.
Results (Banking77 test split, 3,080 items, ground truth)
| Accuracy | |
|---|---|
| This model (4-bit, vLLM, constrained decoding) | 85.0% |
| Unquantized adapter | 85.6% |
| Teacher (Qwen3-30B-A3B-Instruct-2507-FP8, 10-shot) | 85.6% |
Gap (teacher - this model): 0.6 points, 95% paired bootstrap CI [-0.2, 1.5].
Non-inferiority margin 2 points: PASS. Cost of quantization (unquantized adapter - this model):
0.6 points [0.1, 1.1], McNemar p = 0.03.
The quantization recipe and the decision rule were fixed before the test split was predicted, once; see
configs/phase4.json in the repository.
Serving
Measured with vllm serve (vLLM 0.13) on one GPU on Modal, with validation inputs. Cost is Modal's hourly rate for
the container (GPU, CPU and memory) times the time to answer 768 requests at 64 concurrent, excluding start-up.
| GPU | Latency p50 / p95, one request at a time | Requests per second, 64 concurrent | $ per 1,000 calls | |
|---|---|---|---|---|
| This model | L4 | 33 / 42 ms | 255 | 0.0012 |
Teacher (Qwen/Qwen3-30B-A3B-Instruct-2507-FP8) | L40S | 140 / 168 ms | 66 | 0.0109 |
The teacher's prompt is 18,063 tokens on average (a shared prefix of labels and examples, cached); this model's is 51.
Quantization
LoRA merged into the bf16 base with PEFT merge_and_unload, then GPTQ W4A16 (group size 128, lm_head kept in
bf16) with llm-compressor 0.8.1 (compressed-tensors 0.12.2). Calibration: 512 training
items in the training format (the student prompt plus the teacher's label), never validation or test
items. Weights: 1.19 GB in bf16, 0.85 GB quantized (the embedding matrix stays bf16).
recipe.yaml is the llm-compressor recipe.
Banking77 (PolyAI, CC-BY-4.0): Casanueva et al., 2020, "Efficient Intent Detection with Dual Sentence Encoders".