
A free book from Google DeepMind on how LLMs run on accelerators, for training and inference.
“It teaches you to reason about speed and memory on paper, the skill behind every fast AI system.”
Excellent free book for ML engineers and researchers who want to reason about LLM performance, memory and parallelism on accelerators.
Derives roofline equations, arithmetic intensity, sharding notation, and collective costs; covers parallelism schemes, KV caches, and LLaMA 3 case studies.
Plain framing with definitions, figures, and inline worked answers, e.g. the sharded fp32[1024,4096] quiz on H100 load time. Assumes Transformer and JAX basics.
Written by Google DeepMind authors, with clear numbers (H100 9.89e14 FLOPs/s, 3.35TB/s HBM) and consistent derivations. No errors seen.
Pop quizzes with click-to-reveal answers and worked problems; 12 code blocks. JAX programming and profiling chapters are listed but were not seen.
12 chapters: rooflines, TPUs, sharding, Transformer math, training, inference, LLaMA 3, profiling, JAX, and a GPU section.
Published Feb 2025, with a new GPU section added and TPU7x specs referenced. It is a living draft, so it is still being revised.
Four parts with a clear outline, prev/next links, and notes on which chapters can be skipped. Chapters build on shared notation.
Free, no sign-up, with zero paywall mentions across the pages read.
No ads or upsell; the content is dense, and the pages read were mostly author lists and substantive text.
AI-assessed on 28 Nov 2026 from 5 pages read. Medium confidence.
Nobody has tagged this on X yet. Reply to a post about it and tag @resourcehivebot to be the first.
Picked by the Hive editors · Report a problem