# Hugging Face presents TorchTPU for native PyTorch on TPUs

- Published: 2026-10-20T00:00:00.000Z
- Updated: 2026-10-25T10:08:00.822Z
- Section: Development
- Topics: APIs, Hardware
- Page: https://aidailyjournal.com/en/n/2026/10/19/hugging-face-presents-torchtpu-for-native-pytorch-on-tpus/
- Sources: [Hugging Face](https://huggingface.co/blog/hf-torchtpu)

## Summary

Hugging Face presents TorchTPU, a new PyTorch backend for TPUs, Google’s AI accelerators. It lets developers use regular PyTorch code and send models and inputs to the “tpu” device, with support for Transformers, Diffusers and Kernels; the package also includes Pallas kernels, distributed training and torch.compile integration.

According to Hugging Face, TorchTPU removes the need for Optimum TPU to run Transformers and Diffusers models on TPUs. Transformers can load models directly onto the chips, while Diffusers offers eager and compiled execution modes, as well as sharding large models across multiple chips through TensorParallelConfig. Installation on a TPU VM requires a single pip command.

## Why it matters (editorial interpretation)

The native PyTorch interface could reduce the adaptation required for developers who want to run Transformers and Diffusers models on TPUs, according to Hugging Face. Support for compilation, kernels, and distributed execution puts more deployment options in the backend itself.

_Summary written by AI Daily Journal in its own words, based on the sources above. For details, read the original articles._
