Skip to content
mentoor

Topic 5 of 5 · 5 min read

Pinned model snapshots and provider deprecations

Goal: Plan a migration off a model being retired, with a date, an eval comparison and a fallback.

Pin production to a dated model snapshot, track the provider's retirement dates, and migrate with a side-by-side eval well before the shutdown. Providers retire models. The only choice you have is whether it happens on your schedule or theirs.

Check yourself · 1 of 3

What is the main risk of calling a model alias in production?

Choose one answer

Aliases and snapshots

Most providers offer two kinds of name. A snapshot such as claude-sonnet-4-5-20250929 or gpt-4o-2024-08-06 is a fixed model that does not change. An alias such as claude-sonnet-4-5 or gpt-4o points at a snapshot the provider chooses and may move. Aliases are fine for experiments. In production they mean your behaviour can change on a date you did not pick, with no deploy on your side and no entry in your history.

Why deprecations matter

Retired models stop answering. Calls return errors after the retirement date. The providers publish schedules: Anthropic's model deprecations page and OpenAI's deprecations page list each model's status, retirement date and a suggested replacement. Dates vary, and notice periods are not guaranteed to be generous, so you read the pages regularly rather than wait for an email.

How to migrate

  1. Inventory. Which prompts, services and scheduled jobs use which snapshot? A search through config and the trace stamps answers this.
  2. Set a calendar date a few weeks before the provider's retirement date as your own deadline.
  3. Pick the candidate from the provider's suggested replacement and one or two alternatives.
  4. Run the eval side by side. Same test set, same prompt, old and new model. Look at quality, format errors, latency and cost. A different model often needs prompt changes, because instruction-following, length and style differ.
  5. Roll out in stages (shadow, small share, widen) and keep rollback available.
  6. Plan a fallback. If the new model fails or is rate limited, which second model takes over, and has that path been evaluated too?

Before and after

Weak plan: "We use gpt-4o. Switch when it stops working."

Better plan: "Inventory shows 4 prompts on this snapshot. Retirement date is in the provider's table; our deadline is three weeks earlier. Eval old vs two candidates on the 300-case set, adapt prompts, shadow for 2 days, roll out in stages, keep the old version until it is retired."

What goes wrong

  • Alias in production. Behaviour shifts without a deploy and nobody sees it in version control.
  • No inventory. An old batch job still calls the retired model and fails on the date.
  • Swap without eval. The new model passes a smoke test and fails on a format the old one produced reliably.
  • Fallback never tested. The second model is configured but never run, and breaks on the first outage.

Examples

A migration plan with dates

Model:      claude-3-5-sonnet-20241022 (retiring; see provider table)
Our deadline: 3 weeks before retirement date
Users:     support-reply, ticket-summary, nightly-digest job
Candidates: provider's replacement, one cheaper alternative
Eval:      300 cases, old vs 2 candidates; compare quality, format errors, p95, cost
Rollout:   shadow 2 days -> 5% -> 25% -> 100%
Fallback:  second provider's model, eval run included

The nightly job is on the list because the search of the config found it, not the trace stamps of live traffic.

Silent alias move

A service calls the alias gpt-4o. The provider repoints the alias to a newer snapshot. Replies get longer, and a downstream parser that expects three bullet points starts failing. A pinned snapshot with a planned upgrade would have kept the behaviour fixed until the team tested the new one.

Key points

  • Pin production calls to a dated snapshot, and use moving aliases only for experiments.
  • Read the provider's deprecation page on a schedule and record each model's retirement date.
  • Keep an inventory of every prompt, service and job that calls each model snapshot.
  • Compare old and candidate models side by side on the same eval set, and expect to adapt prompts.
  • Set your own deadline well before the retirement date and test the fallback path.

Common mistakes

  • Using a moving alias in production and learning about the change from user complaints.
  • Forgetting scheduled jobs and internal tools when listing who calls a retiring model.
  • Swapping the model without rerunning the eval or adjusting the prompt.
  • Planning to migrate in the last week before retirement.

Check yourself · 2 of 3

A provider's table says your model retires in 10 weeks. What should you do first?

Choose one answer

Check yourself · 3 of 3

You test the provider's replacement model with your existing prompt and its format-valid rate drops. What is the best next step?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic