Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

MLOps and LLMOps cheat sheet (Classic ML)

Opens with credits

For ML engineers shipping tabular and deep learning models: packaging a training script, versioning data with DVC, tracking runs and aliases in MLflow, orchestrated pipelines, batch and online serving, quality gates, drift monitoring with Evidently and retraining. Snippets use Python, scikit-learn, Prefect, FastAPI and GitHub Actions.

Curated by Tauseef Fayyaz10 chapters70 concepts137 glossary terms

Chapters

10 chapters · 70 concepts

  1. 1From notebook to packageThe shape of the whole lifecycle, the tools that fill each step, and how to turn notebook code into a tested, locked, containerised Python project that anyone can run.9 concepts
    1. 1The MLOps lifecycleThe loop a production model lives in: data is collected and validated, a model is trained and evaluated, approved and deployed, served to users, monitored, and…
    2. 2Tool map per stageA reference of common open source tools for each step of the lifecycle.
    3. 3Project layout and pyproject.tomlA repository where notebook code becomes importable modules under src/<package>/, with dependencies, entry points and tool settings declared in one…
    4. 4Dependencies and lockfilesA lockfile records the exact version of every package, including indirect ones, that your project resolved to. uv, a fast Python package and project manager…
    5. 5Config and secretsSettings that change between runs or environments, such as paths, hyperparameters, model names and API keys, kept out of the code: parameters in a versioned…
    6. 6Training entry pointOne command that trains the model from start to finish: it reads config, loads data, fixes random seeds, fits the pipeline and saves the artefact, with no…
    7. 7Model artefact formatsThe file a trained model is saved as: joblib or pickle for scikit-learn objects, skops for a safer scikit-learn format, the framework's own format for PyTorch…
    8. 8Tests for ML codeFast tests with pytest for the deterministic parts: feature functions, data loading, schemas and output shapes, plus a smoke test that trains on a tiny sample…
    9. 9Container imageA packaged file system with your code, a Python runtime and locked dependencies, built from a Dockerfile, that runs the same way on a laptop, in CI and in the…
    9 in this chapterOpen this chapter
  2. 2Data and model versioningGit for code, DVC for large data and model files, validation before training, and a frozen evaluation set, so any model can be traced back to the exact data that made it.5 concepts
  3. Experiment tracking and the registryRecording every run so results can be compared and reproduced, and a registry that names which model version is live. The standalone MLflow sheet goes deeper into the tool itself.6 conceptsOpens with credits
  4. Pipelines and orchestrationBreaking training into steps, running them as a graph on a schedule or trigger, and making every step safe to retry and rerun.7 conceptsOpens with credits
  5. Serving: batch, real time and GPUsChoosing how predictions reach users, wrapping a model in a validated API, packaging it as a container, and the latency, batching and scaling ideas that decide cost.7 conceptsOpens with credits
  6. CI/CD for MLAutomated checks on code, data and model quality before anything ships, and release strategies that make a bad model cheap to catch and undo.7 conceptsOpens with credits
  7. Monitoring, drift and retrainingWatching the service and the model separately, detecting when live data stops looking like training data, and deciding when and how to retrain.8 conceptsOpens with credits
  8. LLMOps: prompts, evals, tracing, costRunning LLM features like production software: versioned prompts, eval sets and metrics, judges you can trust, traces of every call, caching, token budgets and defences against prompt injection.10 conceptsOpens with credits
  9. Fine-tuning and serving open modelsWhen to fine-tune, how LoRA makes it affordable, shrinking models with quantisation, serving them efficiently, and the GPU memory and cost arithmetic behind every choice.6 conceptsOpens with credits
  10. Capstone: a monitored model in productionThe documents and habits that turn a deployed model into a service someone can own: targets, a model card, a runbook, cost numbers and an honest write-up.5 conceptsOpens with credits
  11. 11Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.137 terms

About this sheet

Ship, serve and monitor models.

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com