# Google open-sources TorchTPU, letting PyTorch models run natively on TPUs

Original title: Google open-sources TorchTPU, a native PyTorch back end for TPUs

> Hacker News story 50169053 · language: en · submitted 2026-10-20
> Web version: https://zeli.app/story/50169053
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 375 · by [ilreb](<https://news.ycombinator.com/user?id=ilreb>) · 💬 89
[original](<https://github.com/google-pytorch/torch_tpu>) · [HN discussion](<https://news.ycombinator.com/item?id=50169053>)

## Summary

Google has released TorchTPU, an open-source PyTorch backend for Tensor Processing Units. It includes custom ATen kernels, a compilation cache for XLA computations, and support for distributed training via data and tensor parallelism. The project integrates with torch.compile() and ships examples for models like Llama, Qwen, ResNet, and minGPT. Installable via pip (version 0.2.0) or built from source with Bazel, it requires Python 3.11+ and is licensed under Apache 2.0.

## Key quote

> This project provides a PyTorch backend for Google's Tensor Processing Units (TPUs), enabling users to run PyTorch models and operations on TPU devices.

## HN discussion (89 comments)

### [pcmoritz](<https://news.ycombinator.com/item?id=50170447>)

> For people interested in this: I've been working on an open-source libtpu implementation for https://tenstorrent.com/ accelerators as a side project, it can already run most of torchtpu, see https://github.com/pcmoritz/libtt (based on the tenstorrent software stack). It shows all the things involved in lowering torch to tile based accelerators.

### [amelius](<https://news.ycombinator.com/item?id=50173682>)

> Soon to be written by AI anyway, so they might as well release it now.

### [npalli](<https://news.ycombinator.com/item?id=50169215>)

> Interesting, Amazon doing the same for AWS Trainium.
>
> https://github.com/aws-neuron/torch-neuronx

### [dalemhurley](<https://news.ycombinator.com/item?id=50172063>)

> Google and Apple are going to move consumers and ordinary business users to edge inference. This is more disruptive to the upcoming IPOs than most investors understand.

### [fancyfredbot](<https://news.ycombinator.com/item?id=50170486>)

> Cool! XLA is pretty good + potentially a better compiler infrastructure than inductor which will lead to improved performance on all hardware.
>
> Also I guess this is the final nail in the coffin of Tensorflow.

---

## Cite

- Page: https://zeli.app/story/50169053
- Date: 2026-10-20
- Source: github.com (https://github.com/google-pytorch/torch_tpu)
- Hacker News: https://news.ycombinator.com/item?id=50169053

## Other languages

- zh: https://zeli.app/zh/story/50169053 · markdown: https://zeli.app/zh/story/50169053.md
- ja: https://zeli.app/ja/story/50169053 · markdown: https://zeli.app/ja/story/50169053.md
- ko: https://zeli.app/ko/story/50169053 · markdown: https://zeli.app/ko/story/50169053.md
- de: https://zeli.app/de/story/50169053 · markdown: https://zeli.app/de/story/50169053.md
- es: https://zeli.app/es/story/50169053 · markdown: https://zeli.app/es/story/50169053.md
- ru: https://zeli.app/ru/story/50169053 · markdown: https://zeli.app/ru/story/50169053.md
