TPU Deep Dive
CourseReview SlidesExamsSources

Sources

  • SB9How to Profile TPU ProgramsThe TPU software stack
  • SB10Programming TPUs in JAXAuto, explicit, manual
  • J-shardSharding guide
  • J-jaxprjaxpr language
  • J-aotAhead-of-time lowering
  • J-logJAX changelogShardy default 0.7.0; jax.shard_map 0.8.0
  • X-archXLA architecture
  • X-passesHLO passes
  • X-dumpsHLO dumps
  • X-flagsFlags guidance
  • X-shardy-jaxUsing Shardy from JAX
  • P-GSPMDXu et al., "GSPMD: General and Scalable Parallelization for ML Computation Graphs"§3–4
  • N-graphsCUDA Programming Guide §4.2, CUDA Graphs§4.2
  • T-howTorchTPU docs: How TorchTPU works
  • T-execTorchTPU docs: Execution model
  • T-distTorchTPU docs: Distributed support
  • T-kernTorchTPU docs: Custom kernels
  • T-ptPyTorch blog, "Introducing TorchTPU"
  • T-blog1Google Developers Blog, "TorchTPU: Running PyTorch Natively on TPUs at Google Scale"
  • T-ossGoogle Cloud Blog, "TorchTPU is now open source"
  • D-pytorchPyTorch on TPU
  • T-xlaPyTorch/XLA repo
  • R-torchaxtorchax (moved here 2025-10-06)
  • A-torchPyTorch on Neuron / TorchNeuron
  • A-nkiNKI programming model
Chapter 9. Day 5, first block, 55 minutes

From Python to the MXU

ReadQuiz12Flashcards21Teach-back6
Question 1 of 12
Recall
In what order does a jax.jit function pass through these representations on its way to a TPU?
Press 1–4 to choose.
TPU Deep Dive

A free course on TPU hardware and software for GPU engineers.

Course

Course mapSlidesExamsReview flashcardsMoving off PyTorch/XLA

About

AboutSourcesPrivacy policyTerms of use

Project

Source on GitHubReport an errorYour data

An independent educational project, not affiliated with or endorsed by Google, NVIDIA or AWS. Product names are trademarks of their owners. Sources accessed October 2026; figures marked provisional, derived or unverified are explained where they appear. Written with AI assistance and may contain errors: report one on GitHub.

© 2026 learntpu.dev. Content CC BY 4.0, code MIT.