TPU Deep Dive
CourseReview SlidesExamsSources

Sources

  • SB3Sharded Matrices and How to Multiply ThemNotation
  • SB3Sharded Matrices and How to Multiply ThemThe four cases
  • SB3Sharded Matrices and How to Multiply ThemCollective costs
  • SB3Sharded Matrices and How to Multiply ThemAllToAll
  • SB3Sharded Matrices and How to Multiply ThemCollective matmul
  • SB3Sharded Matrices and How to Multiply ThemProblems
  • SB10Programming TPUs in JAXCollective matmul in shard_map
  • SB12How to Think About GPUsGPU collectives
  • J-sharding-api`jax.sharding` API
  • J-shmap`shard_map` tutorial
  • P-CollMMWang et al., "Overlap Communication with Dependent Computation via Decomposition in Large Deep Learning Models"
  • X-flagsFlags guidancewindowed einsum, async collectives
  • X-asyncAsync HLO ops
  • P-MegatronShoeybi et al., "Megatron-LM"§3
  • P-SeqParKorthikanti et al., "Reducing Activation Recomputation in Large Transformer Models"
  • PT-asynctp"Introducing Async Tensor Parallelism in PyTorch"
  • P-FluxChang et al., "FLUX: Fast Software-based Communication Overlap on GPUs"
  • N-teoverlapNeMo TP communication overlap
  • N-nccltestsNCCL-tests PERFORMANCE.md
  • D-7xTPU7x (Ironwood)
Chapter 5. Day 3, first block, 55 minutes

Sharded matmuls and collectives on a torus

ReadQuiz12Flashcards21Teach-back6
Question 1 of 12
Derivation: enter a number
An fp32[1024, 4096] array is sharded A[IXY,J]A[I_{XY}, J]A[IXY​,J] on a mesh {X: 8, Y: 2}. How many bytes does each device hold, in MiB?
MiB
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.