Choosing Models: Evidence Over Leaderboards
"Which model should we use?" is the question every client asks first and the one an architect should answer last, after the task, the eval set and the constraints are clear. Then it's a measurement, not an opinion.
Learning objectives
- Describe the trade-offs between frontier, mid-size, small and open-weight models.
- Run a model selection on your own eval set, comparing quality, latency, cost and constraints.
- Design for model change: routing, fallbacks and an abstraction that makes swaps cheap.
- Explain when public benchmarks help and when they mislead.
The options
| Tier | Strengths | Weaknesses | Typical use |
|---|---|---|---|
| Frontier (largest proprietary models) | Best reasoning, instruction following, long context, tool use | Highest cost and latency; data goes to a provider | Hard reasoning, agents' planning steps, low-volume high-value tasks |
| Mid-size proprietary | Good quality at a fraction of the cost | Weaker on hard multi-step tasks | Most RAG chat and extraction |
| Small / fast | Cheap, low latency | Struggle with nuance and long instructions | Classification, routing, simple extraction, high volume |
| Reasoning models | Strong on planning, maths, complex analysis | Slow, many hidden tokens, costly | Hard cases routed to them, offline analysis |
| Open-weight (Llama, Mistral, Qwen, Gemma and similar families) | Self-hostable, data stays in your network, fine-tunable, no per-token fee | You run the infrastructure; top open models trail the frontier on the hardest tasks | Data-residency needs, high steady volume, fine-tuned specialists |
Embedding models are a separate choice: retrieval quality depends heavily on them, especially for domain jargon and non-English text. Evaluate them on your retrieval set, not on a general leaderboard alone.
Why leaderboards aren't enough
Public benchmarks measure general skills on public data, which may have leaked into training sets. Your task has your documents, your users' phrasing, your output format and your languages. A model that ranks fifth overall can be first on your extraction task, and much cheaper. Use leaderboards to choose candidates, then decide on your eval set.
A model selection, step by step
- Define the task and the bar. "Answer helpdesk questions with correct citations; at least 85% correct on our golden set, p95 under 3 s, under $0.01 per answer."
- Pick three to five candidates across tiers and deployment options (for example: a frontier model, two mid-size models, one open-weight model).
- Run them on the same eval set, same prompt (lightly adapted per model), several runs for variance.
- Measure together: quality (overall and on the hard slices), latency (TTFT and total), cost per request and per successful task, refusal and format-error rates.
- Check constraints: data residency and processing terms, region availability, quotas, context length, structured output and tool support, licence (for open weights), vendor lock-in.
- Decide and document it in an architecture decision record, including what would make you revisit it.
| Candidate (illustrative results) | Correct | p95 latency | Cost / answer | Notes |
|---|---|---|---|---|
| Frontier A | 91% | 4.8 s | $0.012 | Misses the latency bar |
| Mid-size B | 87% | 2.1 s | $0.002 | Meets every bar |
| Mid-size C | 82% | 1.9 s | $0.0015 | Below the quality bar on policy questions |
| Open-weight D (self-hosted) | 84% | 2.6 s | infra cost | Viable if data must stay on-premises |
Here B wins, and the record notes that A could be routed to for the hardest 10% of questions if hard-slice quality becomes the priority.
Design for change
Models improve and change prices every few months; providers retire versions. Make switching cheap:
- Call models through one interface, usually an LLM gateway (Module 2), never directly from twenty services.
- Keep prompts and model settings in configuration, versioned, not in code.
- Pin model versions and re-run evals before upgrading.
- Route by task: a small model for intent classification, a mid-size model for answers, a reasoning model for the hard cases.
- Fallbacks: a second provider or region for outages, tested regularly.
A provider alias such as "latest" can change behaviour overnight. In regulated or high-stakes uses, pin versions and treat a model upgrade like a code release: evals, approval, gradual rollout.
Open weights vs API: the real comparison
| Factor | Hosted API | Self-hosted open weights |
|---|---|---|
| Time to start | Minutes | Weeks (GPUs, serving stack, ops) |
| Cost shape | Per token, scales with use | Mostly fixed (GPUs), cheap per token when busy |
| Data control | Provider's terms, region options | Fully in your network |
| Quality ceiling | Highest available | A step behind on the hardest tasks |
| Customisation | Prompting, provider fine-tuning | Full fine-tuning, quantisation, distillation |
| Operations | Provider handles it | You handle scaling, upgrades, security patches |
A common enterprise answer is both: hosted models for most work, an open-weight model for a sensitive or high-volume niche.
"I'd shortlist models from different tiers, run them on our golden set measuring quality, p95 latency and cost per successful answer, check residency and quotas, and record the choice in an ADR. Everything goes through a gateway so we can route or switch without code changes."
Self-check
A client asks "which model should we use?" in the first meeting. How do you answer?
- "It depends on the task and our bar, and we'll measure it." Agree the task, quality bar, latency and cost targets and constraints first.
- Shortlist across tiers, test on a golden set from their data, compare quality, latency and cost per successful task, check residency and quotas, and document the decision.
When would you self-host an open-weight model?
- Data must stay in your network, volume is high and steady, you need deep customisation, or per-token costs dominate.
- Accept the trade-offs: GPU capacity, serving and patching, and a lower quality ceiling on the hardest tasks.