Google chips gain a native PyTorch route
Google has opened TorchTPU, software that lets applications built with PyTorch run on its Tensor Processing Units (TPUs), the company’s AI accelerators. Hugging Face, which develops model libraries and hosts models, has added native support in Transformers, Diffusers and Kernels. Developers can select a TPU as their device while retaining ordinary PyTorch code. The change connects a widely used model-development framework with Google’s computing hardware.[1], [3]
Until this release, PyTorch users reached these chips through PyTorch/XLA. Hugging Face describes that earlier route as deferring computations, with changes sometimes requiring the computation graph to be compiled again. Its own Optimum TPU package helped models run on that infrastructure. The company says that package is no longer required for the new native path through Transformers and Diffusers.[1]
