Senior ML Engineer
Production ML engineering patterns for model deployment, MLOps infrastructure, and LLM integration.
Core Capabilities
- Model deployment — export to ONNX/TorchScript/SavedModel, containerize, canary rollout, and serve via FastAPI, Triton, TF Serving, TorchServe, or Ray Serve with p95<100ms / error<0.1% gates.
- MLOps pipelines — feature stores (Feast/Tecton), experiment tracking (MLflow/W&B), model registry, A/B testing, and drift-triggered retraining.
- LLM integration — provider abstraction, retry/fallback with exponential backoff, token counting, response caching, cost tracking, and Pydantic output validation.
- RAG systems — vector database selection, chunking strategies, ingestion, retrieval, and reranking.
- Model monitoring — latency/error tracking, input drift detection (KS test, PSI), prediction-shift alerts, and automated retraining triggers.
When to Use
- Deploying a trained model to production with canary rollout and monitoring.
- Standing up MLOps infrastructure (feature store, registry, retraining).
- Integrating LLM APIs with provider abstraction and cost control.
- Building a RAG pipeline (vector DB + chunking + retrieval + reranking).
- Setting up drift detection and model-health alerting.
Clarify First
Before generating artifacts, confirm these inputs. If any is unknown or vague, ASK — do not assume:
Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
Tools
| Tool |
Purpose |
Command |
model_deployment_pipeline.py |
Generate deployment artifacts (Dockerfile, K8s manifests, health checks) |
python scripts/model_deployment_pipeline.py --input <path> --output <path> [--config <file>] |
rag_system_builder.py |
Scaffold a RAG pipeline with vector store + retrieval logic |
python scripts/rag_system_builder.py --input <path> --output <path> [--config <file>] |
ml_monitoring_suite.py |
Set up drift detection, alerting, and dashboards |
python scripts/ml_monitoring_suite.py --input <path> --output <path> [--config <file>] |
All tools support --verbose/-v and emit JSON (status, start_time, end_time, processed_items) to stdout. See references/tool-reference.md for full flag detail.
References
Load the reference that matches the task — keep this file lean and pull detail on demand:
- references/production-ml-workflows.md — the five step-by-step workflows (model deployment, MLOps setup, LLM integration, RAG, monitoring) with all code templates, serving/vector-DB/chunking/cost tables, the troubleshooting matrix, and success criteria. Read when executing any workflow.
- references/tool-reference.md — full flag/parameter tables and output formats for the three scripts. Read when scripting the tools.
- references/mlops_production_patterns.md — model deployment pipeline with Kubernetes manifests, feature store architecture with Feast examples, model monitoring with drift detection code, A/B testing with traffic splitting, automated retraining with MLflow. Read when building MLOps infra.
- references/llm_integration_guide.md — provider abstraction layer, retry/fallback with tenacity, prompt templates (few-shot, CoT), token optimization with tiktoken, cost calculation and tracking. Read when integrating an LLM.
- references/rag_system_architecture.md — RAG pipeline implementation code, vector database comparison/integration, chunking strategies, embedding model selection, hybrid search and reranking. Read when building a RAG system.
Scope & Limitations
This skill covers:
- End-to-end model deployment pipelines (packaging, containerization, serving, canary rollout)
- MLOps infrastructure setup (feature stores, experiment tracking, model registries, retraining)
- LLM integration patterns (provider abstraction, retries, caching, cost tracking)
- RAG system architecture (vector databases, chunking, retrieval, reranking)
This skill does NOT cover:
- Model training algorithms or hyperparameter tuning (see
senior-data-scientist)
- Raw data pipeline construction and ETL orchestration (see
senior-data-engineer)
- Prompt engineering techniques, few-shot design, or prompt optimization (see
senior-prompt-engineer)
- Image/video model architectures or computer vision inference optimization (see
senior-computer-vision)
Integration Points
| Skill |
Integration |
Data Flow |
senior-data-scientist |
Receives trained models and evaluation metrics for deployment |
Data Scientist exports model artifacts and baseline metrics; ML Engineer packages and deploys |
senior-data-engineer |
Consumes feature pipelines and data quality outputs |
Data Engineer builds ETL and feature pipelines; ML Engineer reads from feature store for serving |
senior-prompt-engineer |
Provides LLM serving infrastructure for prompt workflows |
Prompt Engineer designs prompts; ML Engineer deploys provider abstraction and manages cost/latency |
senior-devops |
Leverages CI/CD and Kubernetes infrastructure for model serving |
DevOps manages cluster and pipelines; ML Engineer defines deployment manifests and health checks |
senior-computer-vision |
Deploys vision models through shared serving infrastructure |
CV Engineer trains and exports models; ML Engineer handles Triton/TorchServe deployment and monitoring |
senior-security |
Applies security scanning to model containers and API endpoints |
Security reviews container images and endpoint auth; ML Engineer remediates findings before promotion |
Last Updated: June 2026
Version: 1.1.0
1---2name: senior-ml-engineer3description: ML engineering skill for productionizing models, building MLOps pipelines, and integrating LLMs. Covers model deployment, feature stores, drift monitoring, RAG systems, and cost optimization.4license: MIT + Commons Clause5---6# Senior ML Engineer
7
8Production ML engineering patterns for model deployment, MLOps infrastructure, and LLM integration.
9
10## Core Capabilities
11
12- **Model deployment** — export to ONNX/TorchScript/SavedModel, containerize, canary rollout, and serve via FastAPI, Triton, TF Serving, TorchServe, or Ray Serve with p95<100ms / error<0.1% gates.
13- **MLOps pipelines** — feature stores (Feast/Tecton), experiment tracking (MLflow/W&B), model registry, A/B testing, and drift-triggered retraining.
14- **LLM integration** — provider abstraction, retry/fallback with exponential backoff, token counting, response caching, cost tracking, and Pydantic output validation.
15- **RAG systems** — vector database selection, chunking strategies, ingestion, retrieval, and reranking.
16- **Model monitoring** — latency/error tracking, input drift detection (KS test, PSI), prediction-shift alerts, and automated retraining triggers.
17
18## When to Use
19
20- Deploying a trained model to production with canary rollout and monitoring.
21- Standing up MLOps infrastructure (feature store, registry, retraining).
22- Integrating LLM APIs with provider abstraction and cost control.
23- Building a RAG pipeline (vector DB + chunking + retrieval + reranking).
24- Setting up drift detection and model-health alerting.
25
26## Clarify First
27
28Before generating artifacts, confirm these inputs. If any is unknown or vague, ASK — do not assume:
29
30- [ ] **Task** — model deployment / RAG pipeline build / monitoring setup (selects the script and workflow)
31- [ ] **Serving target & rollout** — container vs K8s and canary vs direct (drives the generated Dockerfile/manifests and health gates)
32- [ ] **Model or data interface** — the input/output contract, and for RAG the corpus + vector store (shapes the scaffold)
33
34Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
35
36## Tools
37
38| Tool | Purpose | Command |
39|------|---------|---------|
40| `model_deployment_pipeline.py` | Generate deployment artifacts (Dockerfile, K8s manifests, health checks) | `python scripts/model_deployment_pipeline.py --input <path> --output <path> [--config <file>]` |
41| `rag_system_builder.py` | Scaffold a RAG pipeline with vector store + retrieval logic | `python scripts/rag_system_builder.py --input <path> --output <path> [--config <file>]` |
42| `ml_monitoring_suite.py` | Set up drift detection, alerting, and dashboards | `python scripts/ml_monitoring_suite.py --input <path> --output <path> [--config <file>]` |
43
44All tools support `--verbose`/`-v` and emit JSON (`status`, `start_time`, `end_time`, `processed_items`) to stdout. See [references/tool-reference.md](references/tool-reference.md) for full flag detail.
45
46## References
47
48Load the reference that matches the task — keep this file lean and pull detail on demand:
49
50- **[references/production-ml-workflows.md](references/production-ml-workflows.md)** — the five step-by-step workflows (model deployment, MLOps setup, LLM integration, RAG, monitoring) with all code templates, serving/vector-DB/chunking/cost tables, the troubleshooting matrix, and success criteria. Read when executing any workflow.
51- **[references/tool-reference.md](references/tool-reference.md)** — full flag/parameter tables and output formats for the three scripts. Read when scripting the tools.
52- **[references/mlops_production_patterns.md](references/mlops_production_patterns.md)** — model deployment pipeline with Kubernetes manifests, feature store architecture with Feast examples, model monitoring with drift detection code, A/B testing with traffic splitting, automated retraining with MLflow. Read when building MLOps infra.
53- **[references/llm_integration_guide.md](references/llm_integration_guide.md)** — provider abstraction layer, retry/fallback with tenacity, prompt templates (few-shot, CoT), token optimization with tiktoken, cost calculation and tracking. Read when integrating an LLM.
54- **[references/rag_system_architecture.md](references/rag_system_architecture.md)** — RAG pipeline implementation code, vector database comparison/integration, chunking strategies, embedding model selection, hybrid search and reranking. Read when building a RAG system.
55
56## Scope & Limitations
57
58**This skill covers:**
59- End-to-end model deployment pipelines (packaging, containerization, serving, canary rollout)
60- MLOps infrastructure setup (feature stores, experiment tracking, model registries, retraining)
61- LLM integration patterns (provider abstraction, retries, caching, cost tracking)
62- RAG system architecture (vector databases, chunking, retrieval, reranking)
63
64**This skill does NOT cover:**
65- Model training algorithms or hyperparameter tuning (see `senior-data-scientist`)
66- Raw data pipeline construction and ETL orchestration (see `senior-data-engineer`)
67- Prompt engineering techniques, few-shot design, or prompt optimization (see `senior-prompt-engineer`)
68- Image/video model architectures or computer vision inference optimization (see `senior-computer-vision`)
69
70## Integration Points
71
72| Skill | Integration | Data Flow |
73|-------|-------------|-----------|
74| `senior-data-scientist` | Receives trained models and evaluation metrics for deployment | Data Scientist exports model artifacts and baseline metrics; ML Engineer packages and deploys |
75| `senior-data-engineer` | Consumes feature pipelines and data quality outputs | Data Engineer builds ETL and feature pipelines; ML Engineer reads from feature store for serving |
76| `senior-prompt-engineer` | Provides LLM serving infrastructure for prompt workflows | Prompt Engineer designs prompts; ML Engineer deploys provider abstraction and manages cost/latency |
77| `senior-devops` | Leverages CI/CD and Kubernetes infrastructure for model serving | DevOps manages cluster and pipelines; ML Engineer defines deployment manifests and health checks |
78| `senior-computer-vision` | Deploys vision models through shared serving infrastructure | CV Engineer trains and exports models; ML Engineer handles Triton/TorchServe deployment and monitoring |
79| `senior-security` | Applies security scanning to model containers and API endpoints | Security reviews container images and endpoint auth; ML Engineer remediates findings before promotion |
80
81---
82
83**Last Updated:** June 2026
84**Version:** 1.1.0