Trainium stops demanding rewrites: TorchNeuron runs existing PyTorch code by changing one device name
AWS released TorchNeuron, a native PyTorch backend for Trainium chips, so model code, libraries and tools run without Neuron-specific adaptation. Previously, using Hugging Face models on Trainium required Neuron-specific software and configuration; now the device is simply pointed at neuron. It registers the device through PyTorch's PrivateUse1 extension point, supports eager, torch.compile and custom NKI kernels across Trainium2 and Trainium3, and ships as an Apache 2.0 public Beta on Oct. 20.