All projects

Interactive books · 2026 · In progress

LLM Book

An interactive guide to LLMs and VLMs, from tokens to production.

The LLM Book home page, beside a live example of the candidates for the next token.
35 of 52
chapters written so far
2
languages, English and Indonesian

A bilingual web book that starts at tokenization and the Transformer and goes on to training, adaptation, inference, applications and agents, Vision-Language Models, evaluation, security and LLMOps. A reader only needs to know Python.

How it teaches

  • From scratch, then the library. Each concept is built from nothing first, and only then mapped to the library that does it for you.
  • A running project. Kancil, a mini GPT in Indonesian, is trained on a CPU and carried all the way through chat, DPO, quantization and local serving.
  • Real runs. Training, fine-tuning and quantization are run for real on a MacBook Air M4, and the results are published with the machine they came from.

The book is still being written: 35 of its 52 chapters are done, with the remaining chapters, six industry case studies and the full set of widgets to follow.

The Tokenization chapter of LLM Book, with the curriculum on the left and a switch between summary and in-depth reading.
Every chapter can be read as a summary or in depth.