ChengRang

TorchNeuron

AI Platforms Open Source

An open-source native PyTorch backend from AWS that runs models directly on Trainium chips through the neuron device, supporting eager execution and torch.compile

open sourcePyTorchTrainiumtraining acceleration
Visit TorchNeuron

Disclaimer: Review content represents our editorial team's views and experience, not commercial recommendation or investment advice. Product info and pricing may change; refer to official sources.

Overview

TorchNeuron is a native PyTorch backend for AWS Trainium chips, released by AWS on October 19, 2026, and opened as a public Beta under the Apache-2.0 license at PyTorch Conference North America on October 20, 2026. Its code repository is located at github.com/aws-neuron/torch-neuronx. This tool adds a neuron device to upstream PyTorch through PyTorch's PrivateUse1 mechanism, so developers only need to move models to neuron for training or inference while continuing to use existing PyTorch APIs. TorchNeuron uses eager mode by default, executing operators one by one on the device without first tracing a computation graph; when performance is needed, the neuron backend of torch.compile can be used to compile the model or part of the model. It is a different technical path from the older XLA-based torch-neuronx, and this repository is positioned as a PyTorch native backend.

Key Features

Use Cases

Pros

Pricing

TorchNeuron is open source under Apache-2.0 with no separate license fee; the cost of use is the Trn2 or Trn3 instance plus related AWS services. Neuron DLAMI and Deep Learning Containers ship with it preinstalled, while other Linux instances need the Neuron driver and runtime installed first. Refer to AWS pricing for instance rates.

Summary

TorchNeuron is a native PyTorch backend launched by AWS for Trainium chips, opened as a public Beta under the Apache-2.0 license. It adds a neuron device through the PrivateUse1 mechanism, uses eager execution by default and supports torch.compile compilation, covers data parallelism, tensor parallelism, and fully sharded parallelism for distributed training, and can also call NKI custom kernels. The runtime environment requires Trn2 or Trn3 instances and specified Python versions, and it is a different path from the older XLA-based torch-neuronx.

Version History

Category
AI Platforms
Pricing
Open Source
Tags
open source · PyTorch · Trainium
Website

Related Tools