Results (Banking77 test split, 3,080 items, ground truth)
Table with columns: Accuracy | Accuracy |
|---|
| This adapter | 85.4% |
| Teacher (Qwen3-30B-A3B-Instruct-2507-FP8, 10-shot) | 85.6% |
Gap (teacher − student): 0.3 points, 95% paired bootstrap CI [-0.6, 1.1].
Non-inferiority margin δ = 2 points: PASS. Valid-label rate 99.6%.
The checkpoint (epoch 3 of 3) was chosen on a held-out validation split; the test split was predicted once.
Usage
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-1.7b-lora")model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B", torch_dtype="auto"), "mikan-research/banking77-qwen3-1.7b-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))
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
(20 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".