#TorchTPUSprint
PyTorch on a Google TPU in one line:

model.to("cuda") ➜ model.to("tpu")

I tested TorchTPU on a TPU v6e: eager vs torch.compile, Hugging Face with device_map="tpu", and a training loop. torch.compile came out ~15% faster.

11-min tutorial ▶️ www.youtube.com/watch?v=9edV...

#TorchTPUSprint
TorchTPU Tutorial: Run PyTorch on Google Cloud TPU v6e
YouTube video by Kuan Hoong
www.youtube.com
November 12, 2026 at 2:27 PM
Read my latest blog on how to "Get Started with TorchTPU: Run Native PyTorch on Google TPUs" kuanhoong.medium.com/getting-star... #TorchTPUSprint
Getting Started with TorchTPU: Run Native PyTorch on Google TPUs
Change one string, keep your PyTorch code, and run it on a Google TPU.
kuanhoong.medium.com
November 12, 2026 at 2:13 PM