🔍 Read the full analysis: Hugging Face ❤️ TorchTPU: TPUs, Natively on ThorstenMeyerAI.com
Get business pricing on monitors, keyboards and dev gear
- Business-only prices and quantity discounts
- Tax-exempt purchasing
- Multiple users, one account, clear invoices
TL;DR
Hugging Face announced TorchTPU, a PyTorch backend that lets supported Transformers, Diffusers and Kernels workflows run on Google TPUs through familiar device-selection APIs. The company reports substantial speedups for selected decoding kernels, but has not supplied full benchmark methods, broad compatibility details or independent results.
Hugging Face has announced TorchTPU, a PyTorch backend that lets supported workflows in its Transformers, Diffusers and Kernels libraries use Google Tensor Processing Units. The release offers developers familiar ways to select a TPU device, while the company’s performance claims remain limited to selected configurations and its announcement does not provide a full compatibility list or detailed benchmark methodology.
Hugging Face describes TorchTPU, as explained in the original analysis, as a native PyTorch backend for directing models and tensors to TPU hardware. Its examples use existing library interfaces: Transformers can load a model with device_map=”tpu”, while a Diffusers pipeline can be moved with pipe.to(“tpu”). Compiled execution is available as an option, according to the announcement.
The release also includes Pallas kernels tuned for TPUs, distributed training support and integration with torch.compile. Hugging Face says large models can be split across chips during loading with a TensorParallelConfig. Its installation instructions target a TPU virtual machine and use a CPU PyTorch wheel rather than a CUDA build.
Hugging Face reports faster decoding with selected kernels from its Kernels Hub and Tokamax. On a TPU v6e-8 at batch size 64, it reports decoding 21.5 times faster for Qwen3-30B-A3B and 12.8 times faster for Gemma 4 26B-A4B than each model’s default implementation. The announcement also lists example image-generation timings on a TPU v6e-4. These are company-reported results, not independent comparisons, and the supplied material does not set out full measurement procedures or results across other workloads.
A Familiar Route to Google TPUs
TorchTPU could make it easier for teams with PyTorch-based code to try Google’s TPU infrastructure without maintaining a separate implementation for every supported model workflow. Using familiar library interfaces may reduce the changes needed to direct a workload to a TPU, and could help developers compare TPU capacity with other accelerators using tools they already use.
That convenience does not establish that every PyTorch model or operation will work, or that a TPU will be faster or less expensive for a particular deployment. The reported gains are tied to named models, a specific batch size and a specified TPU setup. Developers will still need to test their own model versions, workload patterns and software configuration before drawing conclusions about throughput, reliability or cost.
Products Worth Considering

Samsung Odyssey G3 G30D 27-Inch FHD Gaming Monitor

Jackery Explorer 1000 v2 Portable Power Station

Jackery Solar Generator 1000 v2 with Two 100W Solar Panels, 1024Wh LiFePO4 Battery
As an affiliate, we earn on qualifying purchases.
From PyTorch/XLA to TorchTPU
Before this announcement, Hugging Face says PyTorch users generally ran workloads on TPUs through PyTorch/XLA, also known as torch_xla. The company describes that route as workable, while saying lazy tensor execution, graph recompilations after code changes and more difficult debugging could complicate development. Those are Hugging Face’s stated reasons for introducing a different backend; the announcement does not provide a comparative evaluation of the two approaches.
Hugging Face previously offered Optimum TPU for inference and training with its models. The company says that package is no longer required to run Transformers and Diffusers models using the new native support. Google’s TPUs are specialized accelerators available through Google Cloud, ranging from individual chips to large pods. TorchTPU is presented as a connection between that hardware and Hugging Face’s PyTorch tools, not as confirmation that all models are supported.
““With TorchTPU, a native PyTorch backend, TPU is now just another device.””
— Hugging Face
Coverage and Results Still Need Testing
The announcement does not specify which models, operators or workloads are unsupported, and it does not provide a complete compatibility matrix. It also lacks independent benchmark results, detailed measurement procedures and a cost comparison for the cited performance figures. Results may vary with model version, batch size, TPU generation and software configuration.
Hugging Face says it is running the Transformers test suite on TPU and working to add nightly continuous integration. The announcement does not give a date for that testing to become available or say what results will be published. Until more evidence is available, the reported kernel gains should be treated as specific vendor-reported examples, not a general performance guarantee.
More TPU Tests and Guidance
Hugging Face says it is working toward nightly TPU testing for Transformers. As that work progresses, a published test record and clearer coverage information could help developers determine which models and operations are ready for use. The company also points users to its Diffusers TPU guide for distributed and compiled workflows, alongside installation instructions for TPU virtual machines.
For now, the next practical step for teams interested in TorchTPU is to check the available guidance and test their own workloads on the target hardware. Further details on compatibility, test coverage and reproducible performance remain pending; the announcement does not specify when those details will be released.
Key Questions
What is TorchTPU?
TorchTPU is a PyTorch backend that Hugging Face says allows supported PyTorch workflows to use Google TPU devices.
Which Hugging Face libraries are named?
The announcement names Transformers, Diffusers and Kernels. It does not confirm that every model or operation in those libraries is supported.
Does TorchTPU replace PyTorch/XLA?
Hugging Face presents TorchTPU as a native backend and says Optimum TPU is no longer required for running Transformers and Diffusers models with the new support. The announcement does not provide a complete comparison with PyTorch/XLA or establish that all existing TPU workflows should switch.
Are the reported speedups independently verified?
No independent verification is included in the supplied announcement. Hugging Face reports speedups for selected kernels and specified model and TPU configurations, but does not provide full benchmark methodology or broad results across workloads.
What is still unknown about support?
The announcement does not give a full model and operator compatibility list, detailed independent benchmarks or cost comparisons. Hugging Face says TPU test coverage is being developed.
Primary source: Hugging Face · via ThorstenMeyerAI.com
