Deployment Strategy

A deployment strategy defines how a trained model version becomes available to users, jobs, or downstream workflows. It connects model serving, inference contract, model versioning, and observability.

Deployment is not only copying weights into a runtime. It is a controlled change to a system:

where is a model-parameter change, is preprocessing, is postprocessing, is the runtime environment, and is routing or request policy.

Common Patterns

  • Direct replacement: simplest, but highest risk if rollback is weak.
  • Blue-green deployment: keep old and new stacks separate, then switch traffic.
  • Canary deployment: send a small traffic fraction to the new version first.
  • Shadow deployment: run the new version on copied requests without affecting responses.
  • Offline batch rollout: score a fixed dataset or queue before online exposure.

For a canary rollout, traffic routing can be written as:

where is the rollout fraction.

Checks

  • Is the new version tied to its preprocessing, postprocessing, config, and environment?
  • Is the acceptance criterion defined before rollout?
  • Are quality, latency, error rate, and invalid-output rate monitored separately?
  • Is rollback a documented action rather than an improvised fix?
  • Does the rollout avoid logging private requests or unpublished results?
  • Does the deployment preserve the same assumptions used in evaluation protocol?