Last week I traced Splash Attention through the TPU compiler stack.
But before that, I had to figure out how JAX actually compiles to TPU machine code.
Google's TPU compiler is closed-source. The IRs are undocumented. So I rented a v6e for $1 and traced every layer: JAX → HLO