Topic 3 of 5 · 4 min read
Re-evaluating on model upgrades
Goal: Run and read a side-by-side comparison of two model versions and decide whether to switch.
Treat a model change as a code change: pin the version you ship, and run the same suite on the old and new model side by side before you switch. A newer model is not automatically better for your task, and an old one will not stay available forever.
Check yourself · 1 of 3
Why pin a dated model snapshot instead of a floating alias in production?
Why it matters
Models change in three ways. You choose to upgrade. The provider retires a version on a published date, so you must move. Or an alias such as a "latest" name starts pointing at a different snapshot, and your behaviour changes with no commit on your side. Providers publish deprecation schedules (see the Anthropic deprecations page), so the deadline is known months ahead. Your evals are how you learn what the move costs you.
Pin, then plan
- Pin a dated snapshot in config, not a floating alias, so production behaviour changes only when a commit says so.
- Record the model id with every logged production call and every eval run.
- Track deprecation dates in your task list. When a retirement notice arrives, start the comparison early, not the week before the cutoff.
- If you must use an alias, run the nightly suite against it so a silent change shows up as a score drop.
Run a side-by-side comparison
- Run the full suite on the current model and on the candidate with the same prompts, dataset, graders and settings.
- Compare three things, not one: quality (overall and per category), cost (price per task, including output length, since a more verbose model costs more), and latency (median and slow tail).
- Look at per-case differences, as with prompt edits. A model can win overall and lose a category you care about.
- Test your prompt as is, then with light tuning for the new model. Prompts written for one model often carry habits (heavy formatting rules, repeated emphasis) that another model does not need.
- Check output format: JSON validity, refusal rate, and length. Format drift breaks parsers before it breaks quality scores.
Decide
Write the decision down: which categories improved, which dropped, cost and latency change, and the rule you used. Roll out gradually behind a flag if you can, and keep the old model available until online metrics agree.
What goes wrong
- Switching because the provider's benchmark chart looks better. Public benchmarks do not measure your task.
- Comparing only the average and missing a drop in the one category that matters, such as refusals on medical questions.
- Ignoring cost and latency, then finding the better model is twice as slow.
- Finding out about a retirement date after it passed.
Examples
A side-by-side table
| Metric | Current model | Candidate |
|---|---|---|
| Overall pass rate | 84% | 88% |
| Billing questions | 91% | 85% |
| Median latency | 2.1 s | 3.4 s |
| Cost per 1,000 tasks | $4.10 | $6.80 |
The candidate wins overall, but it loses 6 points on billing, runs slower and costs more. The team does not switch yet. They tune the billing prompt for the candidate and rerun.
The floating alias
A service calls a model by an alias. One morning, invoice-field extraction accuracy drops 5 points in the nightly run with no code change. The team checks the logged model id and sees a new snapshot behind the alias. They pin the old snapshot until the comparison is done.
Key points
- Pin a dated model snapshot and log the model id with every run and every production call.
- Provider deprecation schedules give you a deadline, so start the comparison early.
- Run the same prompts, dataset and graders on the old and new model and compare quality, cost and latency together.
- Read per-category and per-case differences, because a model can win overall and lose a category that matters.
- Check output format, refusals and length, since format drift can break parsers before quality scores move.
Common mistakes
- Using a floating alias in production, so behaviour changes with no commit.
- Choosing a model from public benchmark scores instead of running your own suite.
- Comparing quality alone and ignoring cost, latency and output length.
- Starting the migration after the retirement notice period is nearly over.
Check yourself · 2 of 3
A candidate model scores higher overall but lower on one category you care about. What should you do?
Check yourself · 3 of 3
The provider announces your model version retires in 90 days. When should you run the comparison with its successor?
Practice items, not counted towards your mastery.
Start here
- promptfoo: Testing prompts with GitHub Actions (opens in a new tab)DocsFree
A working CI recipe that runs an eval on every pull request that touches a prompt and comments the results.
- Evaluation best practices (OpenAI) (opens in a new tab)DocsFree
Vendor guidance on building evals, running them continuously and checking them against real usage.
- GitHub Actions documentation (opens in a new tab)DocsFree
Triggers, path filters, caching and scheduled workflows: the parts of CI this skill relies on.
More for this topic
- Model deprecations (Claude docs) (opens in a new tab)DocsFree
An example of a published retirement schedule that makes the migration deadline known in advance.