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-engineer
3description: >
4 ML engineering skill for productionizing models, building MLOps pipelines, and
5 integrating LLMs. Covers model deployment, feature stores, drift monitoring,
6 RAG systems, and cost optimization.
7license: MIT + Commons Clause
8metadata:
9 version: 1.1.0
10 author: borghei
11 category: engineering
12 domain: machine-learning
13 updated: 2026-06-17
14 tags: [ml-pipelines, model-deployment, mlops, rag]
15---
16
17# Senior ML Engineer
18
19Production ML engineering patterns for model deployment, MLOps infrastructure, and LLM integration.
20
21## Core Capabilities
22
23- **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.
24- **MLOps pipelines** — feature stores (Feast/Tecton), experiment tracking (MLflow/W&B), model registry, A/B testing, and drift-triggered retraining.
25- **LLM integration** — provider abstraction, retry/fallback with exponential backoff, token counting, response caching, cost tracking, and Pydantic output validation.
26- **RAG systems** — vector database selection, chunking strategies, ingestion, retrieval, and reranking.
27- **Model monitoring** — latency/error tracking, input drift detection (KS test, PSI), prediction-shift alerts, and automated retraining triggers.
28
29## When to Use
30
31- Deploying a trained model to production with canary rollout and monitoring.
32- Standing up MLOps infrastructure (feature store, registry, retraining).
33- Integrating LLM APIs with provider abstraction and cost control.
34- Building a RAG pipeline (vector DB + chunking + retrieval + reranking).
35- Setting up drift detection and model-health alerting.
36
37## Clarify First
38
39Before generating artifacts, confirm these inputs. If any is unknown or vague, ASK — do not assume:
40
41- [ ] **Task** — model deployment / RAG pipeline build / monitoring setup (selects the script and workflow)
42- [ ] **Serving target & rollout** — container vs K8s and canary vs direct (drives the generated Dockerfile/manifests and health gates)
43- [ ] **Model or data interface** — the input/output contract, and for RAG the corpus + vector store (shapes the scaffold)
44
45Stop 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.
46
47## Tools
48
49| Tool | Purpose | Command |
50|------|---------|---------|
51| `model_deployment_pipeline.py` | Generate deployment artifacts (Dockerfile, K8s manifests, health checks) | `python scripts/model_deployment_pipeline.py --input <path> --output <path> [--config <file>]` |
52| `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>]` |
53| `ml_monitoring_suite.py` | Set up drift detection, alerting, and dashboards | `python scripts/ml_monitoring_suite.py --input <path> --output <path> [--config <file>]` |
54
55All 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.
56
57## References
58
59Load the reference that matches the task — keep this file lean and pull detail on demand:
60
61- **[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.
62- **[references/tool-reference.md](references/tool-reference.md)** — full flag/parameter tables and output formats for the three scripts. Read when scripting the tools.
63- **[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.
64- **[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.
65- **[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.
66
67## Scope & Limitations
68
69**This skill covers:**
70- End-to-end model deployment pipelines (packaging, containerization, serving, canary rollout)
71- MLOps infrastructure setup (feature stores, experiment tracking, model registries, retraining)
72- LLM integration patterns (provider abstraction, retries, caching, cost tracking)
73- RAG system architecture (vector databases, chunking, retrieval, reranking)
74
75**This skill does NOT cover:**
76- Model training algorithms or hyperparameter tuning (see `senior-data-scientist`)
77- Raw data pipeline construction and ETL orchestration (see `senior-data-engineer`)
78- Prompt engineering techniques, few-shot design, or prompt optimization (see `senior-prompt-engineer`)
79- Image/video model architectures or computer vision inference optimization (see `senior-computer-vision`)
80
81## Integration Points
82
83| Skill | Integration | Data Flow |
84|-------|-------------|-----------|
85| `senior-data-scientist` | Receives trained models and evaluation metrics for deployment | Data Scientist exports model artifacts and baseline metrics; ML Engineer packages and deploys |
86| `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 |
87| `senior-prompt-engineer` | Provides LLM serving infrastructure for prompt workflows | Prompt Engineer designs prompts; ML Engineer deploys provider abstraction and manages cost/latency |
88| `senior-devops` | Leverages CI/CD and Kubernetes infrastructure for model serving | DevOps manages cluster and pipelines; ML Engineer defines deployment manifests and health checks |
89| `senior-computer-vision` | Deploys vision models through shared serving infrastructure | CV Engineer trains and exports models; ML Engineer handles Triton/TorchServe deployment and monitoring |
90| `senior-security` | Applies security scanning to model containers and API endpoints | Security reviews container images and endpoint auth; ML Engineer remediates findings before promotion |
91
92---
93
94**Last Updated:** June 2026
95**Version:** 1.1.0