KnowML
53 chapters · 5 labs · free

Machine learning, explained from the ground up

The maths, classical ML, neural networks, transformers and LLMs, and the systems that train and serve them, taught step by step for engineers who want to know why a model works, not just which library call to make.

Taught like a course

One running example per chapter, every term explained before it's used, and a summary at the end.

Code you can run

Small numpy and PyTorch experiments whose printed numbers are the ones the text quotes.

Built on primary sources

Papers, engineering blogs and measured numbers, dated, with the claims that didn't hold up corrected.

The course

53 chapters in 12 parts, from linear algebra up to serving LLMs at scale, plus 5 interactive labs.

Every chapter

ML system design

Real products, designed the way an engineer would: the naive version first, then every place it breaks and what the company did about it.

All case studies

The labs

Step through backpropagation, attention or sampling one operation at a time, on numbers small enough to check by hand.

All labs