1---2name: ml-model-deployment-checklist3enabled: true4description: |5 Use when performing ml model deployment checklist — provides a comprehensive6 checklist for deploying machine learning models to production, covering model7 validation, infrastructure setup, serving configuration, monitoring, A/B8 testing, and rollback procedures. Ensures models are reliable, observable, and9 maintainable in production environments.10required_connections:11 - prefix: ml-platform12 label: "ML Platform"13 - prefix: monitoring14 label: "Monitoring Platform"15config_fields:16 - key: model_type17 label: "Model Type"18 required: true19 placeholder: "e.g., classification, regression, NLP, computer vision, recommendation"20 - key: serving_platform21 label: "Serving Platform"22 required: true23 placeholder: "e.g., SageMaker, Vertex AI, KServe, custom API"24 - key: inference_type25 label: "Inference Type"26 required: false27 placeholder: "e.g., real-time, batch, streaming"28features:29 - DATA30 - ML31 - DEPLOYMENT32metadata:33 source: https://skillmd.com/skills/cloudthinker-ai/ml-model-deployment-checklist34---3536# ML Model Deployment Checklist3738## Phase 1: Model Validation391. Validate model before deployment40 - [ ] Model performance metrics meet acceptance criteria41 - [ ] Evaluated on held-out test set (not training data)42 - [ ] Tested on edge cases and failure modes43 - [ ] Bias and fairness metrics reviewed44 - [ ] Model size and inference latency within requirements45 - [ ] Comparison with current production model (if exists)46 - [ ] Model card/documentation completed472. Get model review sign-off from stakeholders4849### Model Performance Summary5051| Metric | Training | Validation | Test | Production Baseline | Threshold |52|--------|---------|-----------|------|-------------------|-----------|53| Primary metric | | | | | > |54| Secondary metric | | | | | > |55| Latency (P50) | N/A | N/A | ms | ms | < ms |56| Latency (P99) | N/A | N/A | ms | ms | < ms |57| Model size | MB | N/A | N/A | MB | < MB |5859## Phase 2: Infrastructure Setup601. Prepare serving infrastructure61 - [ ] Compute resources provisioned (GPU/CPU, memory)62 - [ ] Auto-scaling configured (min/max replicas)63 - [ ] Load balancer and health checks configured64 - [ ] Model artifact stored in versioned registry65 - [ ] Feature store connected (if real-time features needed)66 - [ ] Caching layer configured (if applicable)67 - [ ] Network security (API authentication, rate limiting)682. Validate infrastructure handles expected load6970### Resource Configuration7172| Resource | Specification | Auto-Scale Min | Auto-Scale Max | Cost/hour |73|----------|-------------|----------------|----------------|-----------|74| Compute | | | | $ |75| GPU | | | | $ |76| Memory | GB | | | |77| Storage | GB | N/A | N/A | $ |7879## Phase 3: Serving Configuration801. Configure model serving81 - [ ] Model serialization format (ONNX, TensorFlow SavedModel, PyTorch, pickle)82 - [ ] Input validation and preprocessing pipeline83 - [ ] Output post-processing and formatting84 - [ ] Batching configuration (dynamic batching for throughput)85 - [ ] Timeout configuration for inference requests86 - [ ] Fallback behavior on model errors87 - [ ] API versioning for model versions882. Test serving endpoint thoroughly8990### API Contract9192| Field | Request | Response | Required | Validation |93|-------|---------|----------|----------|-----------|94| Input features | | N/A | | Type, range checks |95| Predictions | N/A | | | |96| Confidence scores | N/A | | | |97| Model version | N/A | | | |98| Request ID | | | | UUID format |99100## Phase 4: Monitoring Setup1011. Configure model monitoring102 - [ ] Prediction latency (P50, P95, P99)103 - [ ] Prediction throughput (requests/sec)104 - [ ] Error rate and error types105 - [ ] Input data distribution (feature drift detection)106 - [ ] Output distribution (prediction drift detection)107 - [ ] Model performance degradation (if ground truth available)108 - [ ] Resource utilization (CPU, GPU, memory)109 - [ ] Feature store freshness (if applicable)1102. Set up alerts for anomalies111112### Monitoring Alert Configuration113114| Alert | Condition | Severity | Action |115|-------|-----------|----------|--------|116| Latency spike | P95 > threshold | Warning | Investigate |117| Error rate | > 1% | Critical | Page on-call |118| Data drift | Distribution shift > threshold | Warning | Investigate model |119| Prediction drift | Output shift > threshold | Warning | Retrain pipeline |120| Resource saturation | CPU/GPU > 90% | Warning | Scale up |121122## Phase 5: Deployment Strategy1231. Select deployment strategy124 - [ ] Shadow deployment (run alongside, compare outputs)125 - [ ] Canary deployment (gradual traffic shift)126 - [ ] A/B test (controlled experiment with metrics)127 - [ ] Blue-green (instant switch with rollback)1282. Execute deployment129 - [ ] Deploy new model version130 - [ ] Route initial traffic percentage131 - [ ] Monitor metrics during rollout132 - [ ] Gradually increase traffic if healthy133 - [ ] Full rollout or rollback decision134135### Rollout Plan136137| Phase | Traffic % | Duration | Success Criteria | Rollback Trigger |138|-------|----------|----------|-----------------|-----------------|139| Shadow | 0% (duplicate) | 24 hours | Output matches expectations | N/A |140| Canary | 5% | 4 hours | Error rate < 0.5%, latency OK | Error > 2% |141| Expand | 25% | 12 hours | Metrics stable | Performance degradation |142| Expand | 50% | 24 hours | Business metrics OK | Business impact |143| Full | 100% | - | Stable for 72 hours | Any regression |144145## Phase 6: Post-Deployment1461. Post-deployment validation147 - [ ] Verify model version serving correctly148 - [ ] Validate end-to-end prediction quality149 - [ ] Confirm monitoring and alerting working150 - [ ] Document deployment in model registry151 - [ ] Archive previous model version (keep for rollback)152 - [ ] Schedule model retraining pipeline153 - [ ] Set up data pipeline for ground truth collection154155## Counter-Rationalizations156157| Shortcut | Counter | Why |158|----------|---------|-----|159| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |160| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |161| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |162| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |163| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |164165## Output Format166- **Model Card**: Performance, limitations, and intended use167- **Deployment Runbook**: Step-by-step deployment procedures168- **Monitoring Dashboard**: Model health and drift metrics169- **Rollback Procedure**: Steps to revert to previous version170- **Retraining Schedule**: Automated retraining cadence171172## Action Items173- [ ] Validate model meets performance thresholds174- [ ] Provision and test serving infrastructure175- [ ] Configure monitoring and drift detection176- [ ] Execute phased deployment with monitoring177- [ ] Validate post-deployment metrics178- [ ] Set up automated retraining pipeline179- [ ] Document model version and deployment details