AI & Data
Getting machine learning models into production and keeping them healthy there.
A path for engineers who take models from notebooks to production: programming and version control, CI/CD, cloud and containers, ML and data engineering fundamentals, orchestration, experiment tracking, infrastructure as code, monitoring, edge deployment and explainability. Each subject links the official documentation.
The subjects follow the roadmap.sh MLOps roadmap.
MLOps engineers write glue code all day: training scripts, pipeline steps, deployment tooling and small services. Solid Python is non-negotiable, shell scripting runs everything around it, and a compiled language like Go helps when you build infrastructure tools.
The language of the ML ecosystem. Beyond syntax, learn virtual environments and dependency pinning (venv, uv or Poetry), packaging, type hints, logging and testing with pytest — the things that turn a notebook into maintainable code.
Much cloud-native tooling — Kubernetes, Docker, Terraform, Prometheus — is written in Go. Knowing it helps you read that code, write operators and CLIs, and build fast, single-binary services.
Shell scripts run containers, CI jobs and servers. Learn pipes, exit codes, environment variables, set -euo pipefail, quoting rules and core tools like grep, sed, jq and curl.
MLOps applies DevOps practice to machine learning, where a release depends on code, data and a trained model at once. Its goal is to make training, deployment and monitoring repeatable and automated, so models reach production faster and keep working once there.
Version everything (code, data, models, config), automate the pipeline from data to deployment, make experiments reproducible, test data and models as well as code, and monitor production for drift. Maturity grows from manual notebooks to fully automated retraining.
Every pipeline, model config and infrastructure file belongs in version control, so changes are reviewed, traceable and reversible. Git is the standard; a hosting platform adds pull requests, CI and access control.
Commits, branches, merging and rebasing, plus .gitignore to keep datasets, checkpoints and secrets out of the repository. Large binary files belong in DVC or Git LFS, not plain Git.
Hosts repositories with pull requests, code review, branch protection and Actions for CI/CD. Model and pipeline changes should go through the same review flow as application code.
Continuous integration runs tests on every change; continuous delivery packages and deploys automatically. For ML that also means validating data, training or evaluating models in the pipeline, and promoting a model only when it beats the current one.
YAML workflows in .github/workflows triggered by pushes, pull requests or schedules. Use the marketplace actions, caching, matrix builds and self-hosted GPU runners when training needs them.
An all-in-one platform whose CI/CD is defined in .gitlab-ci.yml with stages, jobs and runners, plus a built-in container registry. Common in companies that self-host.
The long-running self-hosted automation server, configured with a Jenkinsfile pipeline and a large plugin ecosystem. Flexible, but you operate and secure it yourself.
Continuous Machine Learning from the DVC team: runs training in GitHub or GitLab CI, provisions cloud runners, and posts metrics and plots as comments on pull requests so reviewers see model impact.
Training and serving usually run in the cloud, where GPUs, storage and managed services are available on demand. Understand compute, object storage, networking, IAM and cost controls before reaching for the ML-specific services on top.
The three major providers offer equivalent building blocks — VMs, object storage (S3, Blob Storage, Cloud Storage), managed Kubernetes and IAM. Learn one deeply; concepts transfer.
Amazon SageMaker, Azure Machine Learning and Google Vertex AI bundle notebooks, training jobs, registries, pipelines and endpoints. They speed you up at the price of lock-in and less control.
Containers freeze code, libraries and system dependencies into an image that runs the same on a laptop, CI and a GPU cluster — the cure for "it worked in my notebook". Orchestrators then schedule those containers at scale.
Write a Dockerfile with a pinned base image, use multi-stage builds to keep images small, and use the NVIDIA Container Toolkit for GPU access. Tag images with the commit so deployments are traceable.
Runs containers across a cluster with Deployments, Services, Jobs and autoscaling. It is the base for Kubeflow, KServe and most self-hosted ML platforms; GPUs are requested as resources through device plugins.
You cannot operate models you do not understand. Know how models are trained and evaluated, which frameworks produce them and what can go wrong — overfitting, leakage, skew — so you can design pipelines and monitoring that catch it.
Linear algebra, calculus for gradients, probability and statistics for distributions, sampling and hypothesis tests. Statistics is what drift detection and A/B comparison of models are built on.
Supervised and unsupervised learning, features and labels, train/validation/test splits, regularisation and the bias-variance trade-off. Most production value still comes from classical models on tabular data.
Neural networks trained by backpropagation: CNNs for images, transformers for text and beyond. Operationally they mean GPUs, large checkpoints, mixed precision and distributed training.
The standard Python library for classical ML, with a consistent fit/predict API. Wrap preprocessing and model in a Pipeline so the exact same transforms run in training and serving.
The dominant deep learning framework in research and increasingly production. Learn tensors, nn.Module, data loaders and saving models, plus export paths such as TorchScript or ONNX for serving.
Google's framework with Keras as its high-level API and a mature deployment story: SavedModel, TensorFlow Serving and TFX pipelines. Still common in existing production systems.
Pick metrics that match the business goal — precision/recall, ROC AUC, RMSE — evaluate on held-out data split the same way production data arrives, and check slices for hidden regressions before promoting a model.
Models are only as good as the data that feeds them, and most MLOps failures are data failures. Understand how data is collected, moved, stored and transformed so training and serving read the same, validated features.
Chains of steps that extract, validate, transform and load data on a schedule or stream. Make each step idempotent and testable, and fail loudly on schema or quality violations.
Lakes store raw files cheaply in object storage (often as Parquet with table formats like Delta Lake or Iceberg); warehouses such as BigQuery or Snowflake hold modelled, queryable tables. Lakehouses blend the two.
Batch loads versus streaming, ETL versus ELT, change data capture from databases, and where validation happens. The choice sets how fresh features can be and how much infrastructure you run.
Still the main way to explore and shape data: joins, aggregations, window functions and CTEs. Many feature pipelines are just well-tested SQL in a warehouse.
Distributed processing for data too large for one machine, with DataFrame and SQL APIs (PySpark in Python) and MLlib. Learn partitioning, lazy evaluation and shuffles to keep jobs fast.
A durable, partitioned event log for streaming data between systems. Used to feed real-time features, capture prediction logs and decouple producers from consumers.
A stream processor with event-time windows, exactly-once state and low latency, for computing features or aggregations continuously over Kafka streams.
Orchestrators run multi-step workflows — ingest, validate, train, evaluate, deploy — as dependency graphs with scheduling, retries and logs. They are what turns a sequence of scripts into a reliable, repeatable pipeline.
Defines pipelines as Python DAGs of tasks with schedules, retries and backfills. Keep heavy work out of the scheduler by running tasks in containers or external compute.
A Kubernetes-native ML platform: Kubeflow Pipelines for containerised workflows, plus components for notebooks, distributed training and hyperparameter tuning. Powerful but operationally heavy.
A working ML platform is built from a few parts: versioning for code and data, CI/CD, orchestration, experiment tracking, lineage, training and serving infrastructure, and monitoring. You can assemble them from open-source tools or buy a managed platform.
In ML, versioning covers datasets, features, model artefacts and configuration as well as code, so any model can be traced back to exactly what produced it and rebuilt.
Data Version Control keeps large files in remote storage (S3, GCS, SSH) while Git tracks small pointer files, and defines reproducible pipelines in dvc.yaml that rerun only changed stages.
Log parameters, metrics, code version and artefacts for every training run so results can be compared and reproduced. Without it, the best model is whichever notebook someone remembers.
Open-source platform for tracking experiments, packaging models in a standard format and managing them in a model registry with versions and aliases. Works with any framework and most clouds.
A record of where each dataset came from and which jobs and models consumed it. It answers "which models used this broken table?" and supports audits; OpenLineage is a common open standard.
Training runs as reproducible jobs on scalable compute; serving exposes models as batch jobs or low-latency APIs with versioned rollouts, canaries and autoscaling, using tools such as KServe or BentoML.
Define clusters, buckets, networks and permissions in versioned files instead of console clicks, so environments are reproducible, reviewable and easy to tear down — important when GPU instances cost real money.
Declarative HCL describing cloud resources; terraform plan shows the diff and apply makes it so. Keep state in a remote backend with locking and split configuration into modules.
Agentless configuration management over SSH using YAML playbooks — useful for setting up GPU drivers, users and services on machines Terraform has created.
A deployed model degrades silently as the world changes. Monitor service health (latency, errors, resources) like any API, and also model health: input data drift, prediction distribution, and accuracy once ground-truth labels arrive.
A pull-based metrics system with a time-series database and PromQL. Expose counters and histograms for request latency, errors and prediction values, and define alerting rules on them.
Dashboards and alerts over Prometheus and many other data sources. Build one view per model showing traffic, latency, drift scores and business metrics side by side.
Running models on phones, cameras and embedded boards rather than servers, for low latency, offline use and privacy. It requires shrinking models through quantisation and pruning and shipping updates to a fleet of devices.
TensorFlow Lite, now renamed LiteRT, converts models into a compact format for Android, iOS and microcontrollers, with quantisation and hardware delegates for GPUs and NPUs.
PyTorch's original on-device runtime, now superseded by ExecuTorch, which exports models ahead of time and runs them on mobile and embedded hardware with pluggable backends.
NVIDIA's embedded GPU modules for robotics and vision, running the JetPack SDK with CUDA and TensorRT for optimised inference at the edge.
Techniques that show why a model made a prediction, needed for debugging, stakeholder trust and regulations that demand explanations. Global explanations describe overall behaviour; local ones explain a single prediction.
Attributes each prediction to features using Shapley values from game theory, with fast explainers for tree models and plots for both individual predictions and whole datasets.
Explains one prediction by perturbing the input and fitting a simple surrogate model around it. Works with any black-box model, but explanations can vary between runs.