12 / 16
MLOps & ML Systems
The classical ML plumbing every AI architect is still expected to know.
ML is a loop, not a project: frame the problem, get labeled data, build features, train, evaluate, deploy, monitor and retrain. The model code is the small part; the pipeline around it is the system.
LLMOps is MLOps where you mostly compose instead of train: the release unit is a pinned model plus prompts, retrieval index and tools, gated by eval suites, priced per token, and exposed to vendor deprecations.
A feature store defines each feature once and serves it two ways: an offline store for point-in-time-correct training sets and an online store for millisecond lookups at inference, so training and serving agree.
The model sees different data or logic in production than it saw in training, so quality drops silently with no error. Fix it with one shared transformation path, logged serving features and automated skew checks.
Data drift is when inputs change, P(X); concept drift is when the input-to-outcome relationship changes, P(Y|X). Detect the first with PSI or KS on features, the second mainly by tracking outcomes.
A versioned catalog of deployable models with their lineage, metrics and approval state, so deploying and rolling back means moving a pointer, not retraining and hoping.
Log every run's code commit, data version, config, metrics and artifacts automatically, so any result can be compared, explained and rebuilt months later.
Watch five layers (service health, input data quality, drift, model quality via proxies until labels arrive, business KPIs) and page only on the few that predict user harm.
Batch precomputes predictions on a schedule (cheap, stale); online computes them per request (fresh, latency-bound); streaming keeps features fresh from events. Choose by how fresh the decision must be, and usually mix them.
A funnel: cheaply retrieve hundreds of candidates from millions (two-tower embeddings + ANN), rank them with a heavy model on rich features, then re-rank for diversity and business rules.
Models are only as good as the data plumbing: a lakehouse with ACID tables, orchestrated pipelines, contracts, quality tests and lineage gives AI reproducible training data, fresh RAG sources and auditable evals.