Amazon announced TorchNeuron on Oct. 19, aiming to make its Trainium AI chips easier to use with existing PyTorch code. The tool is a PyTorch backend: it lets developers direct code written for the AI framework to Amazon’s chips. GeekWire reported that developers previously had to modify PyTorch code to call interfaces specific to Trainium. Amazon’s goal is to reduce that porting work to a basic configuration change.
The technical announcement on PyTorch’s site shows what that can look like: one example switches a model to Trainium with .to('neuron'). It says code using PyTorch’s torch.accelerator API can run unmodified, while compiled models need the Neuron backend selected. TorchNeuron supports Trainium2 and Trainium3, according to the announcement.
That does not mean every PyTorch workload is covered. The same technical announcement lists unsupported operators and features excluded from the first release. Its account of an August test run includes roughly 39,000 deliberate Neuron-specific skips, rather than a clean pass across PyTorch’s tests.
On Oct. 19, Amazon and the PyTorch-site authors scheduled the open-source public beta for Oct. 20 under the Apache 2.0 license. As of Oct. 19, that was a planned release, not a confirmed launch.
Comments