12 / 16

MLOps & ML Systems

The classical ML plumbing every AI architect is still expected to know.

0/11 studied
01The ML lifecycle

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.

Core◇ Diagram</> Code
02LLMOps vs MLOps

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.

Core◇ Diagram</> Code
03Feature stores

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.

Advanced◇ Diagram</> Code
04Training–serving skew

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.

Core◇ Diagram</> Code
05Data drift & concept drift

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.

Core◇ Diagram</> Code
06Model registry & versioning

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.

Core◇ Diagram</> Code
07Experiment tracking & reproducibility

Log every run's code commit, data version, config, metrics and artifacts automatically, so any result can be compared, explained and rebuilt months later.

Core◇ Diagram</> Code
08Monitoring models in production

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.

Core◇ Diagram</> Code
09Batch vs real-time inference

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.

Core◇ Diagram</> Code
10Recommendation systems

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.

Advanced◇ Diagram</> Code
11Data platform for AI

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.

Advanced◇ Diagram</> Code