Who it is for
For readers with Python, linear algebra and systems foundations.
What you can learn
Study models and workloads, estimate capacity, bandwidth, compute and latency, then explore inference and scheduling.
Try it first
For a model inference task, estimate memory for weights, KV cache and working space.
Free access and conditions
The book is free to read online; the author provides PDF and EPUB. The manuscript is being revised and translations may lag. Experiments may incur costs.
Source and rights
Bojie Li licenses original text, figures and accompanying code under Apache-2.0; third-party material has separate terms. This page links to the original.
Source: Bojie Li
Related learning resources
- Zero to SGLang: A Hands-on LLM Inference Course — Study inference fundamentals and KV cache, then explore engine design through mini-sglang.
- Datawhale Diy-LLM: Building Language Models from Scratch — Follow the language model development workflow from tokenization and architecture to training, data, evaluation and systems.
- Happy-LLM: Learn and Build Language Models — Learn NLP foundations, Transformers, pretraining and fine-tuning with hands-on exercises.
Continue learning: Free courses on AI MOOC