the pytorch path · 0/12
start the path

a mastery course · the pytorch path · the eager world, landing on tpu

Learn to think in PyTorch.

PyTorch is the other philosophy: state is the model, the tape is dynamic, and compilation is opt-in. Part i builds that model until the museum's errors are predictable. Part ii is the practice, and it ends where this site lives: torch running on TPU, over bridges that lower into the same compiler the XLA path opens.

your progress 0/12 chapters

01 Predict the tape · strides, views, grad_fn, and every museum error
02 Read compile like a contract · guards, breaks, graphs, counted not guessed
03 Land torch on TPU · torchax and torch_xla, into the stack this site teaches
two bridges, one destination: below StableHLO you are on the xla path
your torch model nn.Module · the ch 1-7 world torch_xla lazy tensors record opsa sync point materializes torchax torch ops mapped onto jaxa torch tensor backed by a jax array StableHLO the framework identity ends here XLA · TPU everything below the steel box: the xla path, then the kernel path
the superset rule

Every page of the official Learn-the-Basics series and the intermediate tutorials this path covers is assigned reading somewhere, and the chapters keep going: the stride map, the guard set, the two-bridge ledger, the benchmarking method.

the honesty rule

Every snippet in part i ran before it was printed (torch 2.2.2 on CPU, this machine, 2026-07-27), and printed values are real outputs. The TPU chapters say plainly that their hardware claims await the Colab lab pass; nothing pretends otherwise.

the neighbors

The bridges land on StableHLO, where the XLA path picks up; the JAX path is the philosophy this one contrasts against, named in every chapter that differs; the pytorch gym floor drills the stride map with real torch outputs.