Downloads · 30 days
18
62% of all-time downloads
MCMZ10/Qwen2.5-7B-Banking77-Router-QLoRA
Qwen2.5-7B-Banking77-Router-QLoRA is a text generation model from MCMZ10. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A QLoRA (4-bit NF4 + LoRA) fine-tune of Qwen/Qwen2.5-7B-Instruct that classifies a banking customer message into one of the 77 Banking77 intents.
Downloads · 30 days
18
62% of all-time downloads
All-time downloads
29
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 91%
From the Hugging Face model README
A QLoRA (4-bit NF4 + LoRA) fine-tune of
Qwen/Qwen2.5-7B-Instruct that
classifies a banking customer message into one of the 77 Banking77 intents.
It is the cheap, high-volume router component of Aegis, a governed Kubernetes-native multi-agent platform: offloading intent classification to a small local fine-tune keeps a frontier model free for hard reasoning.
| Metric | Base Qwen2.5-7B-Instruct (prompted) | This model (QLoRA) |
|---|---|---|
| Accuracy | 60.0% | 93.5% |
| Macro-F1 | 0.493 | 0.935 |
| Invalid-label rate | 2.1% | 0.0% |
| Mean latency / query | 125 ms | 163 ms |
+33.5 accuracy points over the prompted base (an ~84% reduction in error rate), a balanced macro-F1 of 0.935, and it never emits an out-of-taxonomy label. This matches published Banking77 SOTA (~93%). Same base model, same prompt — the only change is this adapter.
Qwen/Qwen2.5-7B-Instructpeft, trl, bitsandbytes, transformers.vLLM (OpenAI-compatible), adapter loaded dynamically:
vllm serve Qwen/Qwen2.5-7B-Instruct \
--enable-lora --lora-modules router=MCMZ10/Qwen2.5-7B-Banking77-Router-QLoRA \
--max-lora-rank 16
# then POST /v1/chat/completions with model="router"
peft + transformers:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct", device_map="auto")
model = PeftModel.from_pretrained(base, "MCMZ10/Qwen2.5-7B-Banking77-Router-QLoRA")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
The system prompt lists the 77 intents and instructs the model to reply with a
single intent label (see the Aegis repo's ml/prepare_data.py).
Banking77: Casanueva et al., Efficient Intent Detection with Dual Sentence Encoders (2020).