#3232nd of 88 in Learning and cookbooks

ai-infra-book

A quantitative book on AI infrastructure design, with calculation tools

Stars
7.5k
License
Apache-2.0
Last commit
Oct 2026
Last release
Oct 2026
Language
Python
Stars, last 12 weeks+7,473
18 Aug 2026: 17 stars25 Aug 2026: 17 stars1 Sept 2026: 17 stars8 Sept 2026: 17 stars15 Sept 2026: 3,610 stars22 Sept 2026: 4,999 stars29 Sept 2026: 5,635 stars6 Oct 2026: 5,935 stars13 Oct 2026: 6,445 stars20 Oct 2026: 6,809 stars27 Oct 2026: 7,078 stars3 Nov 2026: 7,314 stars10 Nov 2026: 7,490 stars

17 on 18 Aug 20267,490 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

This repository holds an open-source book (Chinese original, plus English, Traditional Chinese and Russian translations) deriving AI infrastructure design from hardware constraints: memory, compute and bandwidth across model architectures, accelerators, networking, inference and training. It ships a Python CLI to recompute the book's quantitative examples for a chosen model and token count, plus chapter-indexed experiments, some needing GPUs. Static calculations need only Python 3.10+ stdlib.

Who it is for: Engineers and researchers building LLM inference/training systems and infra

Strengths

  • Companion CLI lets readers recompute every quantitative example with their own model and hardware
  • Static calculations need only Python 3.10+ stdlib, no GPU or model weights
  • Covers the full inference/training stack: accelerators, networks, superpods, scheduling, edge-cloud
  • Available in four languages with auto-published PDF and EPUB per release

Weaknesses

  • Manuscript is explicitly a draft still under revision
  • Experiments directory needs GPUs and large Git LFS downloads (~20GB) for full reproduction
  • Primarily a book/learning resource, not a deployable tool or service
  • PDF build requires Pandoc, XeLaTeX and fonts, no Docker setup provided

What it needs

  • GPU optional
  • Needs Git LFS, Pandoc, XeLaTeX
  • Models: Qwen3-8B
  • port 8000

Quick answers

Is ai-infra-book open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Does ai-infra-book need a GPU?

No. It runs on a CPU and can use a GPU when you have one.

Also in Learning and cookbooks

See all 88
Also in Learning and cookbooks
RankProjectScore
1ai-engineering-from-scratchHands-on AI engineering curriculum with 542 lessons across 20 phases78.5k stars+10,997 (+16%) in 30 daysMIT91 out of 100
2generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript123.4k stars+2,347 (+1.9%) in 30 daysMIT83 out of 100
3rag_techniquesCollection of 42 runnable notebooks implementing RAG techniques30.3k stars+563 (+1.9%) in 30 dayscustom license81 out of 100
#4cs249r_bookOpen textbook and course materials for machine learning systems engineering30.1k stars+1,266 (+4.4%) in 30 dayscustom license81 out of 100
#5ai-for-beginners24-lesson AI curriculum with notebooks in PyTorch and TensorFlow Live demo ↗ (opens in a new tab)70.7k stars+1,156 (+1.7%) in 30 daysMIT80 out of 100