What TorchNeuron supports
TorchNeuron supports standard PyTorch workflows on Trainium, including eager execution, torch.compile, and standard PyTorch APIs, with minimal code changes. [1]
The extension point
The Neuron backend uses PyTorch's PrivateUse1 extension point. [2]
What torch_neuronx does
The torch_neuronx package works with upstream PyTorch to register Neuron as a native backend for PyTorch code. [3]
Sources
- The AWS source says: TorchNeuron supports standard PyTorch workflows on Trainium, including eager execution, torch.compile, and standard PyTorch APIs, with minimal code changes. Profiling TorchNeuron (Part 1)
- The AWS source says: The Neuron backend uses PyTorch's PrivateUse1 extension point. Profiling TorchNeuron (Part 1)
- The AWS source says: The torch_neuronx package works with upstream PyTorch to register Neuron as a native backend for PyTorch code. Profiling TorchNeuron (Part 1)