Class 1 Decider: A 0.6B Router for LLM Requests
An internal showcase build: a fine-tuned Qwen3-0.6B that reads one request and picks one of four routes, so a large model is not paid to make that choice.
- Industries
- Healthcare, Legal, Fintech, Biotech
- Author
- Solvren AI Engineering
- Published
- Last updated
Internal showcase build: Solvren AI built and measured this on public or synthetic data. There is no client.
Problem
Many AI systems ask a large LLM to decide what to do with each request before any real work starts. That first call adds latency and cost to every request, and a routing choice needs far less capability than the large model has.
In regulated work the routing choice also has a safety side: some requests should go to a qualified human, not to any model. We wanted to know whether a very small model could make that call, and which way it fails when it is wrong.
This is an internal showcase build, not a client engagement. We built it on synthetic data to test the pattern, and published the model, data, and code.
What we built
- A request router that replies with exactly one of four routes: small-model, frontier-model, retrieval, or refuse-or-escalate.
- Qwen3-0.6B (Apache-2.0) with a rank-8 LoRA adapter on the last 8 transformer layers: 1.44M trainable parameters, 0.24% of 596M. The adapter is fused into the base weights.
- Trained with mlx-lm on a MacBook Pro (Apple M5, 16 GB) in 110 seconds (400 iterations).
- Training data: 1,536 template-generated synthetic requests across healthcare, legal, fintech, and biotech, with no real PII or PHI, plus a separate 50-request hand-written test set.
- Published on Hugging Face as SolvrenAI/class1-router-qwen3-0.6b-mlx, with code at github.com/solvren-ai/class1-router.
How it works
-
1Request arrives
One user request, sent with the fixed routing system prompt.
-
2Class 1 Decider
The fused Qwen3-0.6B replies with a single route name.
-
3Model or retrieval
small-model, frontier-model, or retrieval handles the request.
-
4Human path
refuse-or-escalate hands the request to a human-in-the-loop queue.
One route, before the LLM
The router receives a fixed system prompt that defines the four routes, plus the user request, and replies with only the route name. The prompt is part of the input contract: change the route definitions and the model needs retraining.
Two test sets, no leakage
The synthetic data is split by core request, so no test request appears in training in any phrasing. A second set of 50 requests was written by hand in a different style: typos, lowercase, mixed lengths, and general business requests outside the four training domains.
What we compared
Every model got the same prompt and greedy decoding: the untuned 0.6B base (zero-shot and with 8 examples), the tuned adapter, the fused model, and an untuned Qwen3-4B (4-bit), zero-shot and few-shot, as a bigger-model reference.
Which way it fails
Five of the fused model’s 6 hand-written errors sent a harmless request to refuse-or-escalate, such as asking who the on-call pharmacist is. The 4B model instead routed 4 of 12 real escalation cases to retrieval, including another patient’s results and releasing an out-of-spec batch. Over-escalation costs a human hand-off. A missed escalation is the more dangerous error.
Controls
- refuse-or-escalate is a routing hint for a human-in-the-loop path, not a safety classifier. It must not be the only control on regulated or unsafe requests.
- A reply that is not one of the four route names counts as wrong in evaluation. The fused model gave 0 such replies on both test sets.
- Synthetic data only, with no real PII or PHI. Escalation examples are built from benign triggers, not harmful instructions.
- Runs locally on Apple Silicon with mlx-lm; requests are not sent to an external routing API.
- Metric files, confusion matrices, and every hand-written prediction are published with the code.
Results
Note: Small n and noisy latency. At n=50 one error moves accuracy by 2 points, so 0.88 against 0.90 is one request apart. The 0.996 template score mostly shows the model learned our generator; the hand-written number is the one to read. Latency is single-request p50 on a shared 16 GB laptop running other ML jobs, so treat it as approximate. Training data is synthetic, from one template family: expect lower accuracy on real traffic.
| Measure | Result |
|---|---|
| Accuracy, 50 hand-written requests (fused 0.6B) | 0.88 |
| Accuracy, same set, untuned Qwen3-4B (4-bit) | 0.90 |
| Accuracy, 256 held-out template requests (fused 0.6B) | 0.996 |
| p50 latency, hand-written set (0.6B vs 4B) | 137 ms vs 382 ms |
| Hand-written errors that over-escalated | 5 of 6 |
| Training time (Apple M5, 16 GB) | 110 s |
We publish only numbers we measured.
Why it fits regulated teams
In regulated work the dangerous routing error is a missed escalation. This build shows a small local model making the routing call at a third to a half of a larger model’s p50 latency, and shows that the direction of its errors has to be measured, not assumed. Before any real use it needs evaluating on a labelled sample of real requests.
Related industries: Healthcare, Legal, Fintech, Biotech
FAQ
What is an LLM router?
A decision layer that reads each incoming request and sends it to the right model, tool, or path, so a large model is not paid just to make that choice. This one picks one of four routes: small-model, frontier-model, retrieval, or refuse-or-escalate.
Was this built for a client?
No. It is an internal showcase build on synthetic data. The model, dataset, and code are public so anyone can check the numbers.
Can a 0.6B model route as well as a 4B model?
On our 50 hand-written requests, nearly: 0.88 accuracy against 0.90 for an untuned Qwen3-4B, one request apart, at a third to a half of the p50 latency. The test set is small, so treat that as directional.
Is refuse-or-escalate a safety filter?
No. It is a routing hint that sends a request to a human. The model leans toward it on short, unfamiliar requests, which fails safe but adds traffic to the human queue. It must not be the only control on regulated or unsafe requests.