Hugging Face has added native TPU support across its libraries through TorchTPU, a native PyTorch backend for Google's Tensor Processing Units, the company said on 20 October 2026.
Transformers, Diffusers and Kernels now run on TPU. Users load a model on a TPU by setting the device map to tpu, and Diffusers pipelines need a single change. Installing TorchTPU on a TPU VM takes one pip command.
Until now, PyTorch on TPU meant going through PyTorch/XLA. With TorchTPU, Hugging Face said its Optimum TPU library is no longer required to run models with Transformers and Diffusers. TorchTPU includes Pallas kernels tuned for TPUs, distributed training support and a torch.compile integration. Models too large for one chip can be split across chips by passing a TensorParallelConfig when loading.
TPUs are Google's own AI accelerators and are available on Google Cloud, from a single chip up to pods of thousands of chips.
"With TorchTPU, a native PyTorch backend, TPU is now just another device," Hugging Face wrote.