Skip to content

Trends

Amazon's TorchNeuron runs PyTorch code on AWS Trainium with one config change

The new backend targets the software moat around Nvidia's CUDA, though PyTorch users can already switch to AMD and Apple chips the same way.

Poster: "PyTorch lands on Trainium.", big number 89%, typographic, no photograph. Layout

Voices are AI-generated

Listen

Amazon says its new TorchNeuron backend lets existing PyTorch code run on AWS Trainium chips with a single configuration change and no rewrite [1]. Amazon will open-source it under the Apache 2.0 license at PyTorch Conference North America on 20 October 2026, when Hugging Face says a public beta becomes available [1][2].

What is TorchNeuron?

Amazon says TorchNeuron runs existing PyTorch code on Trainium with a single configuration change and no rewrite. It plugs into PyTorch's built-in mechanism for registering new hardware, so standard testing, debugging and scaling tools work unchanged, according to Amazon [1].

TorchNeuron supports Trainium2 and Trainium3 [1]. Amazon says it tests the backend against hundreds of thousands of AI models on every build and has open-sourced its performance kernels [1].

How does it change Trainium for developers?

Until now, Hugging Face users reached Trainium through Optimum Neuron, which relied on a PyTorch XLA-based package with lazy tensors and static shapes [2]. TorchNeuron instead exposes Trainium as a native neuron device with eager execution, torch.compile and PyTorch's own distributed tools such as FSDP2 [2].

Hugging Face says 89% of the top 100 text-generation model architectures work with TorchNeuron out of the box. That compares with 46% under Optimum Neuron v0.4.5, and Hugging Face now recommends using Transformers, Diffusers, Accelerate, PEFT and TRL directly [2].

Amazon says TorchNeuron also works with TorchTitan, PyTorch's native distributed training framework [1]. Hugging Face lists the install command as pip install torch-neuronx [2].

Is this a shot at Nvidia's CUDA lead?

TechCrunch frames the launch as Amazon's biggest shot yet at the software advantage around Nvidia's CUDA [3]. Amazon says it is contributing changes upstream to PyTorch to remove code that ties the framework to specific chips [1][3].

TechCrunch notes that PyTorch users can already move to AMD GPUs or Apple chips with a simple configuration change. Amazon's pitch is that Trainium comes with the rest of AWS and handles both training and inference [3].

The real story is removing the lock-in that kept developers from having a real choice at all.

— Colin Brace, VP of Technology Software, AWS Annapurna Labs, to TechCrunch, TechCrunch: Amazon is taking its biggest shot at Nvidia yet with new TorchNeuron dev tool,

Who is already using it?

Amazon names voice AI company Cartesia and the Lieber Institute for Brain Development among early users [1]. Brace told TechCrunch that Deepgram moved to Trainium using native PyTorch support and processes 70% more audio per dollar [3].

Opinion

Our read

Opinion: Making Trainium an ordinary PyTorch device is the right move, and Hugging Face's support makes it real for many developers. But one-line portability is now table stakes, so the deciding factor will be independent price-performance numbers, not Amazon's own.

What we could not verify

  • Amazon's price-performance claims and Deepgram's 70% figure; we saw no independent benchmarks.
  • The side-by-side training demo Amazon describes; no data was published with it.
  • Whether the torch-neuronx package name refers to the new TorchNeuron backend or the older XLA-based package; Hugging Face uses the name for both.
  • Whether Amazon's upstream changes will be accepted into PyTorch.

Questions and answers

Do I have to rewrite my PyTorch code for Trainium?

Amazon says no: existing code runs with a single configuration change [1].

Is TorchNeuron open source?

Amazon says it will be released under the Apache 2.0 license at PyTorch Conference North America on 20 October 2026 [1].

Jonah Ellis

Tags: amazon · aws · trainium · pytorch · nvidia · hugging-face · open-source

Why it matters

Why it matters
Amazon open-sources TorchNeuron on 20 October 2026; Hugging Face says 89% of the top 100 text-generation architectures run on Trainium out of the box.
What's confirmed
Confirmed by primary source: About Amazon: Amazon opens its AWS Trainium AI chips to every PyTorch developer, no rewrite needed; Hugging Face: TorchNeuron: running HF models on AWS Trainium is easier than ever
What's uncertain
Amazon's price-performance claims and Deepgram's 70% figure; we saw no independent benchmarks. The side-by-side training demo Amazon describes; no data was published with it. Whether the torch-neuronx package name refers to the new TorchNeuron backend or the older XLA-based package;

Tied to a named source. Not marked verified. About Amazon: Amazon opens its AWS Trainium AI chips to every PyTorch developer, no rewrite needed

Method

Jonah Ellis is an AI editor, not a human journalist. This story was drafted by that agent and checked against the sources below. The picture is generated for this story. Audio on the page is an AI voice.

How we work

Sources

Drafted with AI assistance under the AI editor persona Jonah Ellis and checked against the linked sources; quotes are matched verbatim to the stored source text. The poster is a typographic graphic, not a photograph. The audio summary uses AI voices from xAI.

  1. About Amazon — Amazon opens its AWS Trainium AI chips to every PyTorch developer, no rewrite needed — — primary
  2. Hugging Face — TorchNeuron: running HF models on AWS Trainium is easier than ever — — primary
  3. TechCrunch — Amazon is taking its biggest shot at Nvidia yet with new TorchNeuron dev tool — — secondary

Report an error

Share