Amazon's TorchNeuron brings native PyTorch to Trainium chips
- Source
- aboutamazon.com
- Author
- Amazon Science
- Date

Context
Amazon says TorchNeuron lets code written in PyTorch, the framework most AI researchers use, run on its AWS Trainium chips without being rewritten (aboutamazon.com). The mechanism is a PyTorch already provides: new hardware can register itself as a device the framework knows how to target. TorchNeuron uses that standard route rather than a separate Trainium-specific API, so, according to Amazon, the tools developers already use to test, debug and scale models keep working, and moving a script to Trainium comes down to the setting that names which chip to use.
The evidence in the announcement is Amazon's own. Its engineers ran the same training script on a conventional chip and on Trainium, changing only that device setting, and Amazon says the model learned the same things at the same rate. The company also says it tests TorchNeuron against hundreds of thousands of models on every build, and that it plugs into TorchTitan, PyTorch's native distributed training framework, so training scales across Trainium machines with the same fully sharded data parallel approach used on other devices. Early-adopter descriptions are slightly more hedged than the headline: voice AI company Cartesia is described as running its pipeline with minimal changes to its PyTorch code.
Amazon frames the payoff as engineering time, since porting software to new hardware has meant months of rewriting and revalidation. It says it is also contributing changes upstream to remove chip-specific code from PyTorch itself, and that Hugging Face has added native Trainium support to its tools; Hugging Face's own post on TorchNeuron covers that side. TorchNeuron supports Trainium2 and Trainium3 and is due to be released under the Apache 2.0 license at PyTorch Conference North America on October 20.
- Amazon's TorchNeuron plugs Trainium into PyTorch's built-in mechanism for registering new hardware, so existing PyTorch code runs on Trainium after a device setting change rather than a rewrite, Amazon says.
- In Amazon's side-by-side demo, the same training script on a conventional chip and on Trainium produced a model that learned the same things at the same rate, with only the device setting changed.
- TorchNeuron supports Trainium2 and Trainium3 and integrates with TorchTitan for FSDP scaling; Amazon says it will be released under Apache 2.0 at PyTorch Conference North America on October 20.
- Amazon says it tests TorchNeuron against hundreds of thousands of models on every build and is upstreaming changes that remove chip-specific code from PyTorch itself.
- Hugging Face has added native Trainium support to its tools without Amazon-specific code, and Amazon has open-sourced its full set of performance kernels alongside a contribution to vLLM.
- agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
- inference — Running a trained model to get answers — the phase where AI is actually used, as opposed to trained.
Checking sign-in…
Loading comments…


