PUBLIC EDITION
Engineering
Large Language
Models.
Advanced engineering of model execution and behavior.
A systems guide to training, inference, accelerators, distributed infrastructure, and the decisions that connect them.
68 chapters9 parts56 original diagrams
For engineers familiar with transformers and ML systems. Start with semantic invariants, then choose training, serving, accelerators, or application architecture. Elementary refreshers are separate companions; the four detailed telemetry chapters form an optional reading track at the end of Part VI.
EXPLORE THE BOOK
One system. Nine perspectives.
- 08Designing a Training Recipe
- 09Data Contracts, Provenance, and Normalization
- 10Deduplication, Quality, and Contamination
- 11Synthetic Data and Mixture Design
- 12Training Data Platform and Release Engineering
- 13Applied Data-System Casework
- 14Distillation, KL Divergence, and Model Sizing
- 15Supervised Adaptation and Low-Rank Training
- 16Post-Training and Alignment
- 17Reinforcement Learning for Reasoning and Tool Use
- 18Request Lifecycle, Metrics, and Workload Models
- 19Prefill, Decode, and Performance Modeling
- 20KV Cache, Paging, and Prefix Reuse
- 21Scheduling, Batching, and Admission Control
- 22Sampling, Structured Output, and Speculative Decoding
- 23Parallel, Replicated, and Disaggregated Serving
- 24Quantization, Compression, and Adapter Serving
- 25Production Architecture, Capacity, and Reliability
- 26Serving Engines and Cache Backends in Practice
- 27GPU Execution, Memory, and Resource Accounting
- 28Host-Device Orchestration, Streams, and CUDA Graphs
- 29Hierarchical Matrix Multiplication
- 30Reductions, Prefix Scans, and Histograms
- 31Softmax, Normalization, Top-K, and Sampling
- 32FlashAttention and IO-Aware Exact Attention
- 33Blackwell Pipelines and Modern Attention Kernels
- 34CUDA Kernels for LLM Inference
- 35Kernel Engineering, Profiling, and Correctness
- 36Accelerator Ecosystems Beyond CUDA and NVIDIA
- 37Model Portability and Compiled State
- 38Communication Models, Collectives, and Topology
- 39Data Parallelism, ZeRO, and Fully Sharded Training
- 40Tensor, Sequence, and Context Parallelism
- 41Pipeline Parallelism and Hybrid Plans
- 42Mixture-of-Experts and Sparse Communication
- 43Distributed Inference and Stateful Placement
- 44Distributed Reinforcement Learning and Policy Freshness
- 45Distributed Checkpoints, Recovery, and Elasticity
- 46Cluster Scheduling, Observability, and Distributed Diagnosis