It scaled fine up to 33 TPUs (i.e. 33 layers).
Ray is impressive as hell.
By the way, I didn't write the code to do any of that. kindiana, aka "the guy that wrote GPT-J", also happened to write this:
https://github.com/kingoflolz/swarm-jax
I just ran it and it worked. Which is extraordinarily unusual for TPUs, historically speaking.
I'm pushing my luck at this point, since it's crossing the line from enthusiasm to spam. But if you want to try out Ray on TPUs like I did here, I posted a (massive) amount of detail on how to get started, and why: https://news.ycombinator.com/item?id=27728225
That's the last I'll be mentioning it for some time, though.
Ray + JAX is such a killer combo.