Skip to content

Latest commit

 

History

160 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning System Design

A practical collection of end-to-end ML system design documents, templates, and checklists — a companion to the book Machine Learning System Design (Manning).

License: MIT PRs Welcome Book

This repository provides structure and a variety of design documents you can use as references and starting points for your own work. It doesn't aim to replace the full teaching experience of the book — instead, it gives you concrete, worked examples of what good ML system design documents look like in practice.

Repository Structure

├── templates/                       # Templates and guidelines
│   ├── basic_ml_design_doc.md       # Template for ML design docs
│   └── design_doc_checklist.md      # Review checklist for design docs
├── Design_Doc_Examples/             # Example design documents
│   ├── Examples/                    # Real-world–inspired examples
│   │   └── EN/                      # English examples
│   └── Mock/                        # Educational mock examples
│       └── EN/                      # English mock examples
├── skills/                          # Agent skills (ml-system-design-review)
├── BookOutline.md                   # Book chapter summaries and key concepts
├── CONTRIBUTING.md                  # Contribution guidelines
├── LICENSE                          # MIT License
└── README.md                        # This file

Getting Started

  1. New to ML System Design?

  2. Writing your own design doc?

  3. Looking for examples?

New: Agent Skill For Design Review

This repository now ships ml-system-design-review — an agent skill that applies the book's framework to review ML/AI system designs: a verdict, a stage-aware gradecard, severity-ranked findings, and a prioritized fix plan for a design doc, a repo, or both.

npx skills add ML-SystemDesign/MLSystemDesign

See skills/README.md for details and usage.

Templates

We provide two main artifacts:

  1. basic_ml_design_doc.md — a section-by-section template for ML system design documents.
  2. design_doc_checklist.md — a review checklist to sanity-check a design doc before sign-off.

How the Template Maps to the Book

Each section of the design document template corresponds to one or more chapters of the book:

Template section Book chapter(s)
I. Problem Definition 2 (Is there a problem?), 3 (Preliminary research), 4 (Design document)
II. Metrics and Losses 5 (Loss functions and metrics)
III. Dataset 6 (Gathering datasets)
IV. Validation Schema 7 (Validation schemas)
V. Baseline Solution 8 (Baseline solution)
VI. Error Analysis 9 (Error analysis)
VII. Training Pipeline 10 (Training pipelines)
VIII. Features 11 (Features and feature engineering)
IX. Measuring and Reporting 12 (Measuring and reporting results)
X. Integration 13 (Integration)
XI. Monitoring 14 (Monitoring and reliability)
XII. Serving and Inference 15 (Serving and inference optimization)
(cross-cutting) 16 (Ownership and maintenance)

Contributing

We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines. Key areas for contribution:

  • New design document examples
  • Template improvements
  • Best-practices documentation
  • Reviews and feedback

License

This repository is licensed under the MIT License — see the LICENSE file for details.

Acknowledgments

About

No description, website, or topics provided.

Resources

Contributing

Stars

876 stars

Watchers

22 watching

Forks

Releases

Packages

Contributors