Tuesday, 20 October 2026
Anawords
Chips & Compute

Amazon opens TorchNeuron beta so PyTorch code runs on Trainium chips with a one-line device change

The open-source backend supports Trainium2 and Trainium3, works with Hugging Face and vLLM plugins, and starts public beta on 20 October. Some PyTorch features are not supported yet.

Anawords illustration (not a photo): AWS TorchNeuron. PyTorch on Trainium with one device change. Confirmed by official source.Illustration · not a photo
Built by Anawords from the facts in this story. Not an official company image. Graphic: Anawords

How this story was checked

  1. ResearchedWith AI assistance · 2 sources
  2. AI source checkEach sentence matched to its source
  3. Editor approvalMayank Sahu · 20 Oct, 12:49
  4. Published20 Oct, 12:49
Read the research behind this story3 sources read · 2 used · what we could not verify · published 20 Oct, 12:39 →

Verify this story

5 confirmed1 company claim

How this was made: researched, drafted and source-checked by AI (Claude, made by Anthropic), then published under the editor’s standing approval. A person did not read it line by line before it went live. AI policy

In short

Amazon Web Services has released TorchNeuron, an open-source native PyTorch backend that lets existing PyTorch code run on its Trainium AI chips by setting the device to “neuron”. It supports Trainium2 and Trainium3 and entered public beta on 20 October 2026 under the Apache 2.0 licence.

TorchNeuron is an open-source native PyTorch backend for AWS Trainium, Apache 2.0.1
Public beta started on 20 October 2026.1
Existing code mainly needs the device set to “neuron”.1

What TorchNeuron is

TorchNeuron is a native PyTorch backend for AWS Trainium, announced on the PyTorch blog by AWS engineers on 19 October ahead of PyTorch Conference North America in San Jose.12 It is open source under Apache 2.0 and entered public beta on 20 October.12

For most code, the change is moving the model to the new device: `model.to("neuron")`.1 Code written against PyTorch’s `torch.accelerator` API runs unchanged, AWS says.1 It supports Trainium2 and Trainium3.12

How it works

  • Eager mode for research and debugging, where operations run immediately and normal Python debugging works.1
  • torch.compile for production, which hands the model graph to the Neuron compiler.1
  • Distributed training with DDP, FSDP2, tensor and pipeline parallelism.1
  • Custom kernels through the Neuron Kernel Interface, with open-source FlashAttention and mixture-of-experts kernels.1

Hugging Face Transformers and Diffusers support Trainium as an upstream device, and vLLM plugins serve language and diffusion models.1

What is not ready yet

AWS lists gaps in the first release, including sparse tensors, NestedTensor, arbitrary attention masks and dynamic input shapes.12 FP8 and TorchAO are in private beta.1 An experimental adaptive eager mode aims to bring eager speed closer to compiled graphs.1

Early users

AWS says Cartesia and Deepgram are early users; Deepgram reports about 60% more audio processed per dollar than its GPU baselines in its own tests.1 AWS also says about 100,000 Hugging Face models ran in its September tests.1 These are company-reported figures.

Why it matters

Software, not just chips, has kept many teams on Nvidia GPUs. A backend that runs standard PyTorch code with few changes lowers the cost of trying other hardware.

Fact ledger

How labels work
Confirmed · 5
TorchNeuron is an open-source native PyTorch backend for AWS Trainium, Apache 2.0.Source 1
Public beta started on 20 October 2026.Source 1
It supports Trainium2 and Trainium3.Source 1
Existing code mainly needs the device set to “neuron”.Source 1
The first release lacks dynamic shapes, sparse tensors and some other features.Source 1
Company claim · 1
Deepgram reports about 60% more audio seconds per dollar than its GPU baselines.Source 1

Questions readers ask

What is TorchNeuron?

An open-source PyTorch backend from AWS that lets PyTorch models run on Trainium chips using the device name “neuron”.

Which Trainium chips does TorchNeuron support?

Trainium2 and Trainium3.

Is TorchNeuron free?

The software is open source under Apache 2.0. Using Trainium chips on AWS is paid.

Sources

  1. 1PyTorch blog: Introducing TorchNeuron, native PyTorch backend for AWS Trainium
    Checked 20 Oct 2026 · Archived copy (20 Oct 2026)
    OFFICIAL
  2. 2TNW: Amazon’s TorchNeuron lets PyTorch code run on AWS Trainium chips
    Checked 20 Oct 2026 · Archived copy (20 Oct 2026)
    OUTLET

Updates and corrections

v120 Oct 2026, 12:49First published. Research note published first. Sources checked by AI; approved for publication by the editor.

Written and approved by

Mayank Sahu, Founder & Editor

Mayank Sahu is an SEO expert who loves using AI and learning how it works. He started Anawords because he felt the market was missing the best AI articles: clear, sourced and honest about what is confirmed and what is only claimed. He sets the rules every Anawords story must pass, runs its AI-assisted research desk and gives the approval its stories are published under. Each story says how it was checked.

See a mistake, or named in this story? We reply within 24 hours. Report an error