Topic 5 of 5 · 5 min read
Testing open models against a frontier baseline
Goal: Run a small task set on two open models and one frontier model and decide from the results whether an open model is good enough.
Decide whether an open model is good enough by running 20 of your own tasks through it and a frontier model, then comparing the results, not by reading a leaderboard.
Check yourself · 1 of 3
Why compare an open model with a frontier model on your own tasks instead of using a leaderboard rank alone?
Why it matters
Leaderboards test general skills on public questions. Your work is specific: your formats, your jargon, your edge cases. A model can rank high and still fail your task. Some public questions also leak into training data. A small test on your own tasks answers the only question that matters here.
How to run the test
- Collect 20 real tasks. Use real inputs from your product or team, including a few hard and odd ones. Remove private data.
- Write the pass rule for each task before you run anything. For example "valid JSON with all 5 fields" or "mentions the null check".
- Shortlist three open models in different families that fit your hardware, using the hub and an independent comparison.
- Add one frontier baseline, a closed model such as Claude, GPT or Gemini, to show the best you can get.
- Run every task through every model with the same prompt and settings.
- Score each answer pass or fail with your rule, and note cost, speed and failures.
tasks = load_tasks("tasks.jsonl") # 20 items with input and check()
models = ["open-a", "open-b", "open-c", "frontier"]
results = {m: sum(check(t, run(m, t)) for t in tasks) for m in models}
print(results)
Reading the results
| Model | Passed of 20 | Cost per 1k tasks | Notes |
|---|---|---|---|
| Frontier baseline | 19 | high | Best on hard cases |
| Open model A | 17 | low | Fails on long inputs |
| Open model B | 12 | low | Breaks the JSON format |
If the open model is within a margin you accept and fails only on cases you can route elsewhere, it is good enough. Twenty tasks give a rough signal, so grow the set if the results are close.
Before and after
Weak: "The leaderboard puts this model near the frontier, so we will switch."
Better: "On our 20 tasks it passes 17 against the frontier's 19, with all 3 misses on inputs over 10 pages. We switch and send long inputs to the frontier model."
What goes wrong
- Choosing the judge after seeing results, which bends the score.
- Different prompts per model, so you compare prompts, not models.
- Too few or too easy tasks, which hide real gaps.
Examples
A mixed result
Three open models and a frontier model run on 20 contract-summary tasks. The frontier model passes 19, the best open model 16, the others 11 and 9. All of the best open model's failures are contracts over 40 pages. The team uses it for short contracts and sends long ones to the frontier model.
Same prompt, fair test
One engineer tunes the prompt for the open model and leaves the frontier prompt untouched, then reports the open model as better. A reviewer reruns all four models with one shared prompt, and the gap reverses.
Key points
- Test on about 20 of your own real tasks, because leaderboard rank does not show fit for your work.
- Write the pass rule for each task before you run any model.
- Compare two or three open models against one frontier baseline, using the same prompt and settings.
- Record pass count, cost, speed and the kinds of failures, not only a score.
- A good-enough open model can handle most cases while hard ones are routed to a frontier model.
Common mistakes
- Choosing a model from a leaderboard rank without running your own tasks.
- Writing the pass rule after seeing the answers.
- Using different prompts or settings for different models.
- Testing only easy tasks, so hard cases appear only after launch.
Check yourself · 2 of 3
When should you write the pass rule for each test task?
Check yourself · 3 of 3
An open model passes 17 of 20 tasks and the frontier model passes 19. All three open misses are on very long inputs. What is a sound decision?
Practice items, not counted towards your mastery.
Start here
- Hugging Face model hub (opens in a new tab)ToolFree
Search and filter open models by size, task and licence, and open each model card.
- Artificial Analysis: open-weight models (opens in a new tab)ToolFree
Independent quality, speed and price comparisons of open-weight models for shortlisting.
- The Open Source AI Definition (opens in a new tab)StandardFree
The definition that separates open-source AI from models that only publish weights.