← All mindmapsMAIN TOPIC · 12 / 14MLOps
Reproducible training, deployment and monitoring
Explore full topic ↗ Readable revision notes (18 concepts)
The same content as the visual sheet, optimized for mobile and assistive technology.
01 · Lifecycle
- Version data, code, configs and environment
- Track experiments: params, metrics, artifacts
- Register validated models with lineage
02 · Data pipelines
- Validate schema, ranges, missingness, duplicates
- Feature store aligns offline and online transformations
- Avoid leakage and training-serving skew
03 · CI / CD / CT
- CI tests code, data and model contracts
- CD deploys approved services/pipelines
- CT retrains on schedule or validated drift triggers
04 · Model validation
- Compare against baseline and acceptance thresholds
- Check fairness, calibration, slices and robustness
- Promote only after quality + operational gates
05 · Serving strategies
- Batch for offline jobs; online for low latency
- Shadow observes without impacting users
- Canary sends small traffic share; rollback if degraded
06 · Monitoring
- Data drift: P(X) changes; concept drift: P(Y|X) changes
- Monitor quality when labels arrive; drift alone not failure
- Track p95 latency, error rate, throughput and resources
07 · LLMOps
- Version prompts, embeddings, models and eval sets
- Track TTFT, inter-token latency, token cost
- Redact traces; sample groundedness and safety
08 · Reproducibility
- Lock versions; record seeds and split definitions
- Immutable artifacts; containerize dependencies
- Document nondeterminism and hardware assumptions
09 · Incident response
- Alerts → diagnose → mitigate → verify → postmortem
- Rollback model + compatible preprocessing
- Use feedback loops; avoid automatic unsafe promotions
10 · Experiment tracking & lineage
- Record code commit, dataset version, split, hyperparameters, metrics and seed.
- Registry stores immutable model artifacts and metadata; stage promotion reviewed.
- Reproduce environment, hardware and dependency versions; nondeterminism documented.
11 · Feature store & pipelines
- Offline features for train; online store low-latency inference.
- Point-in-time correct joins avoid future leakage.
- Data contracts, freshness, missingness and schema validation in pipelines.
12 · CI/CD/CT gates
- CI validates software, schema and model contracts; CD rolls out approved pipeline/model.
- CT retrains on policy, data change or schedule; quality gates before promotion.
- Separate dev/staging/prod; immutable artifacts and rollback.
13 · Serving patterns
- Batch high throughput offline; online synchronous low latency.
- Async queue for long jobs; streaming partial outputs for interactive LLMs.
- Package preprocessing/model together; version API/model compatibility.
14 · Canary, shadow & blue-green
- Shadow copies traffic without returning new model output; control side effects.
- Canary serves small proportion, checks quality and SLOs; expand gradually.
- Blue-green switch between environments; preserve rollback compatibility.
15 · Drift & quality
- Data drift P(X); label shift P(Y); concept drift P(Y|X).
- PSI/KL/KS or other tests detect distribution shifts; thresholds context-specific.
- Delayed ground truth: monitor proxy + labeled quality by slices; don't equate drift to failure.
16 · Monitoring & SLO
- Monitor p50/p95/p99 latency, throughput, errors, CPU/GPU/memory.
- Track model accuracy/calibration/fairness as labels arrive.
- SLO error budget guides rollout; alert on sustained actionable symptoms.
17 · LLMOps & evaluation
- Version prompt, retriever, embedding model, tool schema, model and eval set.
- TTFT, decode rate, token costs, retrieval recall and groundedness.
- Redact sensitive traces; online sampling and offline regressions.
18 · Rollback & governance
- Rollback model + compatible features/tokenizer/prompt versions.
- Audit access, data lineage, approval history; retention and deletion policies.
- Runbooks, on-call ownership, postmortem; test rollback before incident.
References & further study
Original schematics illustrate concepts, not measured data. Review these references for full derivations and implementation details.