Bojie Li's Open Textbook Teaches AI Infrastructure Through Hardware Limits

Bojie Li open-sourced a Chinese-language AI infra textbook that derives inference and training system design from first-principles hardware constraints, with 3.4k stars in days.

·
·
Bojie Li's Open Textbook Teaches AI Infrastructure Through Hardware LimitsPRO
  • Bojie Li released ai-infra-book, an Apache 2.0 Chinese textbook on LLM inference and training systems.
  • The book has 3.4k+ GitHub stars and is a sister volume to his 45k-star AI Agent book.
  • Twelve chapters cover model architecture, accelerators, operators, super-nodes, datacenter networks, and distributed training.
  • Design is derived from hardware constraints, centered on five questions about data movement.
  • Ships a Python calculation CLI to recompute per-operator resource costs for any model.
  • Includes ~20 GB of Git LFS experiments, PDF via XeLaTeX, and an online reader.

Open textbook derives AI infrastructure from hardware limits

Bojie Li has released ai-infra-book, an open-source textbook that explains AI systems through compute, memory, bandwidth, and communication constraints. Within weeks, the project passed 3,400 GitHub stars. Its Apache 2.0 repository includes the manuscript, a PDF, a calculation CLI, and reproducible experiments.

Published in Chinese as Understanding AI Infra: Quantitative Analysis and System Design, the book follows the quantitative tradition of Hennessy and Patterson’s Computer Architecture: A Quantitative Approach. It is a companion to Li’s earlier AI agent book, which has passed 45,000 GitHub stars.

Start with the bottleneck

Li’s method begins by defining the task and quality target, listing the required compute, storage, communication, and dependencies, then comparing order-of-magnitude estimates with hardware capacity, bandwidth, and throughput. This process exposes common sizing errors, including counting model-weight reads while omitting the KV cache, projecting performance from peak FLOPs when memory cannot supply data fast enough, and distributing work across accelerators without budgeting for interconnect traffic.

Five recurring questions organize the analysis: what data moves, how much moves, how often it moves, which path it takes, and which components wait. The book applies that framework to operator fusion, runtime scheduling, multi-accelerator servers, and clusters containing thousands of GPUs.

Pro article

This story is for Pro members

You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.

Comments

avatar