---
title: "Scaling Book — Notes & Solutions"
description: "My chapter-by-chapter notes and worked problems on the Scaling Book. Synced from my notes vault."
author: "Eddie Chen"
url: https://eddiechen.xyz/writing/scaling-book
---

# Scaling Book — Notes & Solutions

Working through the [Scaling Book](https://jax-ml.github.io/scaling-book/). Each chapter below collects my depth notes alongside worked solutions to the chapter problems. Source lives in my [notes vault](https://github.com/0x3ddie/notes/tree/main/One/Scaling%20Book) and is auto-synced here on push.

## [Chapter 1: A Brief Intro to Roofline Analysis](https://eddiechen.xyz/writing/scaling-book/chapter-1)

Intro and Solutions

## [Chapter 2: How to Think About TPUs](https://eddiechen.xyz/writing/scaling-book/chapter-2)

## [Chapter 3: Sharded Matrices and How to Multiply Them](https://eddiechen.xyz/writing/scaling-book/chapter-3)

## [Chapter 4: All the Transformer Math You Need to Know](https://eddiechen.xyz/writing/scaling-book/chapter-4)

## [Chapter 5: How to Parallelize a Transformer for Training](https://eddiechen.xyz/writing/scaling-book/chapter-5)

Overview and Worked Problems

## [Chapter 6: Training LLaMA 3 on TPUs](https://eddiechen.xyz/writing/scaling-book/chapter-6)

## [Chapter 7: All About Transformer Inference](https://eddiechen.xyz/writing/scaling-book/chapter-7)

## [Chapter 8: Serving LLaMA 3 on TPUs](https://eddiechen.xyz/writing/scaling-book/chapter-8)

## [Chapter 9: How to Profile TPU Code](https://eddiechen.xyz/writing/scaling-book/chapter-9)

Practical Tutorials

## [Chapter 10: Programming TPUs in JAX](https://eddiechen.xyz/writing/scaling-book/chapter-10)

JAX Intro & Solutions

## [Chapter 11: Conclusions and Further Reading](https://eddiechen.xyz/writing/scaling-book/chapter-11)

## [Chapter 12: How to Think About GPUs](https://eddiechen.xyz/writing/scaling-book/chapter-12)
