/mlops-skills:model-serving-and-scalingfrom mlops-skills
Guides deploying ML/LLM models for online inference with autoscaling, latency budgets, batching, canary/shadow rollout, and cost control. Use when serving a model, setting up autoscaling, reducing inference latency/cost, or rolling out new model versions.
Ships in mlops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A model that scores well offline still has to be served: it needs to handle production traffic patterns within a latency budget, scale up and down with demand without wasting money on idle GPUs, and roll out new versions without a single bad deploy taking down the whole user base. Model serving and scaling is the operational layer between "we have a good model" and "users get fast, reliable, cost-effective predictions" — and it is where most of the recurring infrastructure cost and the highest-blast-radius incidents (a bad rollout to 100% of traffic) actually live.
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: fraud-scorer-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: fraud-scorer-serving
minReplicas: 2
maxReplicas: 20
metrics:
- type: Pods
pods:
metric:
name: inference_requests_in_flight
target:
type: AverageValue
averageValue: "10"
behavior:
scaleDown:
stabilizationWindowSeconds: 300 # avoid flapping on brief dips
scaleUp:
stabilizationWindowSeconds: 0
policies:
- type: Percent
value: 100
periodSeconds: 60
minReplicas: 2 above) sized to
avoid cold-start latency for the baseline traffic level — scale-to-zero
is attractive for cost but reintroduces cold-start latency on the next
request, which may violate latency SLOs for user-facing paths.Symptom: A new model version is rolled out to 100% of traffic and an hour later a subtle regression (e.g. a schema mismatch causing garbage predictions on 3% of requests) is discovered, after it has already affected the full user base. Fix: Always canary or shadow a new version before full cutover, with automated health checks (error rate, latency, and where available a prediction-quality proxy) gating each ramp-up stage — never treat "deploy straight to 100%" as a safe default, and always keep the previous version's deployment ready for immediate rollback rather than tearing it down on cutover.
Symptom: An endpoint scaled to zero (or a very low minimum) during off-peak hours causes the first request after an idle period to take several seconds to multiple times longer than steady-state latency (cold start), breaching the latency SLO intermittently and unpredictably. Fix: Keep a warm minimum replica count sized to the lowest expected traffic level rather than scaling to zero for latency-sensitive online serving; reserve scale-to-zero for genuinely latency-tolerant batch/async workloads.
Symptom: Autoscaling is configured on CPU utilization for a GPU-bound model server, so the autoscaler never triggers even though GPU is saturated and request queues are growing, causing latency to degrade silently under load. Fix: Scale on a signal that reflects the actual bottleneck — GPU utilization, requests-in-flight, or queue depth for GPU/I/O-bound workloads — not CPU utilization, which is frequently a poor proxy for inference server load.
Symptom: Someone runs a cleanup that deprovisions the prior model version's serving deployment immediately after cutover to save cost, and the team then can't roll back quickly when the new version has issues a day later. Fix: Keep the previous version's deployment scaled down (not deleted) for a defined soak period after cutover; treat immediate deprovisioning of the last-known-good serving deployment as a destructive action requiring explicit confirmation, not routine cleanup.
Rolling out fraud-scorer version 14 (from
model-packaging-and-versioning)
to replace version 13 in production.
minReplicas: 4 (covers steady-state
traffic with no cold start), maxReplicas: 20, scaling on
inference_requests_in_flight.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Kubernetes, AWS, GCP, Azure, Ollama, vLLM, Hugging Face
model-serving, autoscaling, inference, llm-serving, canary-deployment, mlops
22 skills in this plugin
/complete-mlops-platform-deployment-on-aws-from-scratchSequences a complete, end-to-end MLOps platform deployment on AWS from a bare AWS Organization to a production-ready platform serving a first retrained model — AWS landing zone, the SageMaker-vs-EKS+Kubeflow platform decision (EKS+Kubeflow is the worked path here), GPU node pools via the NVIDIA GPU Operator, MLflow experiment tracking on S3, a Kubeflow Pipelines retraining DAG, model registry/packaging with gated promotion, KServe canary/shadow serving, and drift monitoring. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on AWS from scratch," "build the full ML training-to-serving pipeline on EKS/SageMaker," "give me the end-to-end sequence from AWS account to a retrained, monitored production model," or "decide between SageMaker and EKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-azure-from-scratchSequences a complete, end-to-end MLOps platform deployment on Azure from a bare tenant to a production-ready platform serving a first retrained model — Azure landing zone, the Azure-ML-vs-AKS+Kubeflow platform decision (Azure ML is the worked path), GPU compute clusters/quota, MLflow-compatible experiment tracking, an Azure ML pipeline retraining DAG, Model Registry with gated promotion, managed online endpoints with traffic-split canary rollout, and data-drift monitoring. An integration/ orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on Azure from scratch," "build the full ML training-to-serving pipeline on Azure ML/AKS," "give me the end-to-end sequence from Azure tenant to a retrained, monitored production model," or "decide between Azure ML and AKS+Kubeflow for our ML platform."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin mlops-skillsOther plugins' skills for the same job