Back to Business & Economics

Google open-sources TorchTPU and joins Amazon in the push for Nvidia's app layer

Google open-sourced TorchTPU on Tuesday, Oct 20, its long-awaited version of PyTorch for its TPU hardware. According to the company, existing PyTorch apps can move to TPUs "with a simple configuration change and no rewriting of their apps." One day earlier, Amazon shipped TorchNeuron for its Trainium chips. The two releases land back-to-back, aimed at the same target: the application layer of the AI stack, the part Nvidia has effectively owned.

The layer Nvidia owns

Most AI apps are written by default to run on Nvidia's chips, its GPUs. PyTorch sits underneath most of that code. By some accounts, it is used by 85% of AI apps. The framework was developed by Meta, then Facebook, in 2016, with features built around Nvidia GPUs. It was turned over to the Linux Foundation in 2022, but the default did not move: write in PyTorch, run on Nvidia.

The 85% figure carries its own hedge in the article, and exact usage numbers are not public. It is still a good measure of how central the framework is to the ecosystem.

For a developer, that default was a kind of lock-in. The model code itself is portable, but the ecosystem around it, kernels, parallelism strategies, serving stacks, was shaped around the GPU.

What Google shipped

TorchTPU is Google's answer to that default. The company says porting an existing PyTorch app is a simple configuration change, no rewriting. To make the first run work, Google says it worked directly with Meta, Hugging Face, Inferact (maker of vLLM), RadixArk (maker of SGLang), and others, so that TorchTPU interops with tools those teams already use.

Alongside the library, Google launched the "TPU agent suite," a dedicated tool to help developers move their apps to TPU and Google Cloud and "fix errors along the way." The company also updated LiteRT, its stack for running AI on phones, laptops, and embedded devices, to work better with PyTorch apps.

Amazon moved first

Amazon released TorchNeuron on Monday, its PyTorch version that ports apps to Trainium without rewriting. The company is additionally submitting code upstream to mainline PyTorch to decouple features from Nvidia's chips, making the framework "more open to any hardware by default," according to the company.

What changes, and what does not

For someone running PyTorch workloads, the practical change is this: moving to TPU or Trainium no longer means rewriting model code. Google's TPU agent suite is aimed at the remaining friction, the errors that surface once the configuration points at new hardware.

For teams choosing compute for PyTorch workloads, the practical question both companies are raising is simple: if moving to another chip takes a configuration change instead of a rewrite, the argument for staying on the incumbent becomes one of cost, not of code.

The TechCrunch article itself is careful about how far that goes. "None of this means AI app developers will automatically ditch Nvidia's hardware en masse just because they can now easily move to alternative chips and clouds. But Amazon and Google are clearly working to end Nvidia's advantage."

The Linux Foundation stewardship of PyTorch is what makes the two-front effort possible at all: Google and Amazon can both push features into a framework that belongs to no single vendor, something that would be harder inside a closed stack.

Source: techcrunch.com

More news

Back to Business & Economics

Have something in mind?

Start a conversation