sagelearnai

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

TierStrengthsWeaknessesTypical use
Frontier (largest proprietary models)Best reasoning, instruction following, long context, tool useHighest cost and latency; data goes to a providerHard reasoning, agents' planning steps, low-volume high-value tasks
Mid-size proprietaryGood quality at a fraction of the costWeaker on hard multi-step tasksMost RAG chat and extraction
Small / fastCheap, low latencyStruggle with nuance and long instructionsClassification, routing, simple extraction, high volume
Reasoning modelsStrong on planning, maths, complex analysisSlow, many hidden tokens, costlyHard 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 feeYou run the infrastructure; top open models trail the frontier on the hardest tasksData-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

  1. 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."
  2. Pick three to five candidates across tiers and deployment options (for example: a frontier model, two mid-size models, one open-weight model).
  3. Run them on the same eval set, same prompt (lightly adapted per model), several runs for variance.
  4. 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.
  5. Check constraints: data residency and processing terms, region availability, quotas, context length, structured output and tool support, licence (for open weights), vendor lock-in.
  6. Decide and document it in an architecture decision record, including what would make you revisit it.
Candidate (illustrative results)Correctp95 latencyCost / answerNotes
Frontier A91%4.8 s$0.012Misses the latency bar
Mid-size B87%2.1 s$0.002Meets every bar
Mid-size C82%1.9 s$0.0015Below the quality bar on policy questions
Open-weight D (self-hosted)84%2.6 sinfra costViable 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.
Silent model updates

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

FactorHosted APISelf-hosted open weights
Time to startMinutesWeeks (GPUs, serving stack, ops)
Cost shapePer token, scales with useMostly fixed (GPUs), cheap per token when busy
Data controlProvider's terms, region optionsFully in your network
Quality ceilingHighest availableA step behind on the hardest tasks
CustomisationPrompting, provider fine-tuningFull fine-tuning, quantisation, distillation
OperationsProvider handles itYou 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.

The sentence to say

"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.

Last reviewed 2026-11-05.