Let’s Get Certified
Module 10 / 15 · Serve and scale models

Release a model version safely

Select a serving container, register its artifact and design a rollout with a measurable stopping rule.

Release a model version safely

Work through the decision

A delivery predictor runs from a notebook and has better average test error. The online service has a 150 ms p95 budget. How can the team try the candidate without losing a working version?

Check your reasoning

Register an identifiable model version with its serving image, input signature and preprocessing. Run contract tests against the intended prediction and health routes. Deploy the candidate alongside the current version and send a limited share of traffic to it. Watch tail latency, errors and later label-based quality per version. Establish the rollback condition before increasing traffic.

Watch the source lesson at 1:33:18

Compare the choices

Prebuilt serving container
Use a supported prebuilt image when model format, framework version and expected input contract match. Validate serialization and output on a fixture.
Custom serving container
Implement a prediction route and health handling and package required runtime dependencies when standard images cannot serve the model correctly.
Model Registry version
Associate an immutable model artifact and its serving configuration with a tracked version. Record the version that receives traffic.
Canary release
Expose a limited traffic share to a candidate while monitoring guardrails, then expand or roll back. Choose enough traffic to observe meaningful signals.
Randomized A/B experiment
Assign comparable experimental units to variants, hold assignment stable and evaluate a defined outcome over a sufficient duration.
Serving transformation contract
Package feature encoding and output interpretation with the version. Contract-test incoming types, category fallbacks and score-to-action conversion.

Test the decision

For a long-term comparison of user outcomes, randomize consistently by user or store and check balance between groups. A small traffic split protects a release, but a causal business comparison also needs an experimental design.

Practice the guide skills

  1. Choose a batch job or online endpoint for two prediction deadlines. Include the serving platform’s uptime and cost implications. Watch 1:33:18
  2. Test whether a prebuilt serving image accepts the artifact and input signature. Specify the prediction and health behavior needed in a custom container. Watch 1:35:18
  3. Register two model versions with their artifact locations and container versions. Trace an individual prediction back to the version that served it. Watch 1:38:53
  4. Write a canary rollback threshold for latency and errors. For an A/B comparison, define the randomization unit and business outcome. Watch 1:40:25
  5. Use a golden raw input to check preprocessing, prediction and score-to-action conversion across two model versions. Watch 1:41:45

Official objectives for this lesson

Related lesson · Promote a tested pipeline without losing its place

Knowledge check

Release a model version safely quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Release a model version safely