TorchTPU enables native PyTorch use on Google TPU hardware
TorchTPU - A Hybrid Eager/Compiled Architecture for Native PyTorch Execution on TPU
Artificial Intelligence
Summary
Running machine learning models on specialized hardware like TPUs can be tricky when using popular tools like PyTorch. The authors present TorchTPU, a system that lets PyTorch work smoothly and efficiently with Google’s TPUs right away. It combines fast on-the-fly execution with compiled optimizations to speed up both training and making predictions. This makes it easier to move models to TPU hardware without complicated setup.
What this means in practice
- •For machine learning engineers: Run and optimize PyTorch models directly on Google TPU devices with improved performance and simpler deployment.
- •For cloud infrastructure teams: Support easy TPU migration and integration for PyTorch workloads across different services and platforms.
Authors
Claudio Basile, Michael Voznesensky, Gunhyun Park, Ben Wilson, Parker Holloway, Zhanyong Wan, Vlad Belous, Manish Khanna, Paul Ganssle, Kevin Gleason, Andrew Dame, Brendan Folie, Bhavya Bahl, Haifeng Jin, Pedro Goncalves Mokarzel, Arian Arfaian, Luke Boyer, Chi Zhang, Yiling Yuan, Adam Mainz, Aditya Patel, Huangze Tang, Jay Gan, Lizzie Liang, Will Froom, Tushar Agarwal, Karlo Basioli, Theotime Combes, Emilio Cota, Minos Papadopoulos, Tudor Pipernea, Yarong Mu, Qi Zhou, Yaoshiang Ho, Aleksey Vlasenko, Alexander Brauckmann, Ziyin Huang, Jack Oh, Jerry Hsu, Tanvi Bajpai, Jialei Chen, Wenjun Gu, Chintan Shah, Chris Chan, Sayce Falk, Chris Jones, Rob Torres, Kat Ko, Lee Howes, Freya Azad, Andi Gavrilescu, Joe Pamer, Bill Jia
Abstract
TorchTPU is an open-source collaboration between Google and Meta that introduces a native and principled PyTorch backend for Google TPUs. It enables seamless out-of-the-box model execution and TPU migration while delivering industry-competitive inference and training performance through eager execution optimizations, torch.compile integration, and native hardware acceleration.