Chapter 5. Day 3, first block, 55 minutes

Sharded matmuls and collectives on a torus

Tick each objective you can deliver out loud without notes. Then write the one-paragraph explanation you would give a room of GPU engineers. Saved attempts stay below, so you can compare them over the week.

Prompts to answer out loud

  1. Why doesn't AllGather time on a ring depend on how many chips are in the ring?
  2. Explain to a Megatron user what XLA's collective matmul does, and what they would have to do on a GPU to get the same overlap.
  3. Given A[B, D] sharded P('X', 'Y') and W[D, F] sharded P('Y', None), what happens and what does it cost on an Ironwood 4×4×4 cube?
  4. Why is an AllToAll a quarter of an AllGather on a TPU ring, and what does that mean for MoE?
0 of 6 objectives ticked. Drafts save as you type.