Advanced · module A13
MLOps, Deployment and AI Infrastructure
By the end: Deploy, monitor and scale ML and LLM systems, with automated pipelines and cost control
- Covers
- Taking models to production and keeping them working at scale
- Contents
- 4 chapters, 17 topics
- Time
- About 4 hours
- Level
- Advanced
- Your progress
- 0 / 17
This module builds on Supervised Machine Learning in Depth. We suggest looking at it first, but the choice is yours.
Chapter 1 Python Engineering for AI
- 1.115 minBeing written
Advanced Python for AI Engineers
Decorators, generators, context managers and type hints
Code: refactor a script with these features
- 1.215 minBeing written
Object-Oriented Design for AI Applications
Classes, dataclasses and composition in ML code
Code: wrap a model in a clean class
- 1.315 min Read
Testing, Logging and Configuration
pytest, logging and configuration files
Code: test and log a pipeline
- 1.412 min Read
APIs, JSON and Asynchronous Calls
Calling external services reliably and in parallel
Code: an async API client
Chapter 2 Deployment
- 2.112 minBeing written
From Notebook to Production Code
Project structure, configuration and reproducibility
Lab: refactor a notebook into a package
- 2.215 min Activity
- 2.315 minBeing written
Containers with Docker
Images, containers and reproducible environments
Lab: containerise the API
- 2.415 minBeing written
Cloud Deployment and GPUs
Cloud services, GPU instances and serverless options
Lab: deploy to the cloud
Chapter 3 MLOps
- 3.112 min Activity
- 3.212 minBeing written
Data and Pipeline Versioning
DVC, feature stores and orchestration
Lab: a versioned pipeline
- 3.315 minBeing written
CI/CD for Machine Learning
Testing data, code and models automatically
Lab: a GitHub Actions pipeline
- 3.412 minBeing written
Monitoring and Drift
Data drift, concept drift, alerts and retraining
Code: drift detection
Chapter 4 Scale and Cost
- 4.115 minBeing written
Distributed Training
Data, tensor and pipeline parallelism
Reading and demo
- 4.212 minBeing written
Inference Optimisation
Batching, caching, quantisation and compilation
Lab: speed up inference
- 4.312 minBeing written
LLMOps and Observability
Tracing, prompt versioning and evaluation in production
Lab: trace an LLM app
- 4.410 minBeing written
Cost Management
Estimating and controlling compute and API costs
Exercise: a cost model
- 4.520 minBeing written
Module Review and Assessment
Practical tasks and a scored quiz
Graded deployment