From CUDA and Jax to TorchTPU: Lessons from a Cayley Graph Solver
|
A researcher compared Google's new TorchTPU (native PyTorch backend for TPUs) against existing GPU and JAX implementations for solving Cayley graph puzzles. After extensive optimization work, TorchTPU training achieved performance comparable to A100 GPUs, while the beam search became 25% faster per level than the JAX equivalent on the same hardware. The investigation uncovered bugs and led to upstream improvements in TorchTPU, with all code available on free TPU resources.