Back to Hub

Is a model router worth it? Measuring tool use on local models

What this is

AI models are good at different things, so it is tempting to add a router that picks a model for each task. This project gives every model the same tasks, lets the router learn from the results, and then checks whether it does better than using one model.

Every model does the same practice tasks, then a router is compared with using one model
How the router is tested.

The question

A common design for local agents sends each task to whichever model suits it. That is only worth the complexity if it measurably beats picking one model and keeping it. I wanted to find out on my own hardware.

How the test works

The harness runs 30 tasks in three groups: single lookups, multi-step questions and error recovery, where tools fail on purpose, names are wrong or the answer does not exist. The tools are a calculator, search over invented documents and a read-only SQL database. Each task has a reference solution that the tests execute, so every task is known to be solvable. Four models of 26B to 30B each attempted every task 3 times: 360 attempts, scored by exact or numeric match.

Routers are fitted on half of the tasks and scored on the other half. They see only the task's category, and fall back to another model if one gives no usable answer.

Results

Bar charts of success rate and median seconds per task for four models
All 30 tasks. Intervals resample whole tasks.
Policy (test tasks)CorrectMean secondsMean Wh
Always Qwen Q4_K_M45/451.80.252
Always Qwen Q6_K45/452.20.327
Always Muse Glimmer42/454.70.656
Always Inkling43/454.90.430
Learned router45/451.90.274

Routing gained no accuracy: the router and either Qwen model alone answered 45 of 45. On time and energy the answer depends on what you compare it with. If you choose one model from the training tasks, as you would in practice, you pick Q6_K, and the router beats it: 1.9 seconds against 2.2, and less GPU energy. But using Q4_K_M for everything, which only looks like the obvious choice with hindsight, beats them both and needs no router. The replay also ignores the seconds it takes to swap models on a single card, which counts heavily against routing in practice.

What I learned

Every tool call from every model was valid. The problem was behaviour: in 13 of the 14 failures, the model kept trying tool calls until it hit the step limit, mostly on tasks where something was broken or missing.

The test itself turned out to be too easy at the top. When the best model scores full marks, a router has little room to show value, so this result says "not much on these tasks", and no more than that. A result like this is still useful, because it shows what to improve next.

Disclosure: this project, including the tasks, was written with AI coding agents. The first version reported perfect scores from a stand-in that only repeated the question; an audit found this and led to the rebuild.

What's next

Harder tasks that the strongest model sometimes fails, a genuinely small model so that routing has a cheap option, a hosted model for comparison, and a router that classifies the prompt itself instead of being told the category.

Source code