AI Infra in Depth: Quantitative Analysis and System Design, an Open-Source Book
"AI Infra in Depth: Quantitative Analysis and System Design" is an open-source book in Simplified Chinese by Li Bojie (bojieli on GitHub). It explains the infrastructure behind large language models (LLMs) and derives system designs from hardware limits and model architecture. It is a sister volume to "Deep Dive into AI Agent," which has over 50k stars on GitHub, and the manuscript is still a first draft that is being revised.
The book's core method is to derive designs from constraints: list computation, storage, communication and dependencies, then make order-of-magnitude estimates against hardware capacity, bandwidth and compute. Forgetting the KV cache[1] when counting weight reads is one example of an error it warns about. The twelve chapters cover model architecture, accelerators, operators, data-center networks, inference optimization, distributed inference, training systems and edge-cloud collaboration.
The repository contains the full text, PDF and EPUB in four languages (Simplified Chinese original, English, Traditional Chinese and Russian), plus calculation tools and experiments. Static calculations need only the Python 3.10+ standard library, with no GPU or model weights; the example estimates Qwen3-8B under an 8192-token prefill[2]. Papers and large data are stored with Git LFS[3], about 20 GB in total, so cloning does not download them by default.
Sources
-
GitHub Trending
bojieli/ai-infra-book


