TorchNeuron introduces a native PyTorch backend for AWS Trainium

News PyTorch Blog · Source account, not independently verified by us.

PyTorch has announced TorchNeuron, an open-source backend that lets AWS Trainium chips be used as standard PyTorch devices. The aim is to support research and the move from models into production while keeping familiar PyTorch APIs in use.

The backend supports Trainium2 and Trainium3. Developers can run models in eager mode, which the announcement describes as suited to research and debugging, or compile them with torch.compile. An experimental adaptive eager mode is intended to reduce execution overhead. The Neuron Kernel Interface (NKI) is also available for custom hardware operators.

PyTorch features for distributed training and inference, along with torch.profiler, are supported. Used with Neuron Explorer, profiling is intended to trace activity from the framework through to the hardware. The announcement also lists support for common data types and parallelism approaches, but gives no specific performance measurements.

TorchNeuron is scheduled for public beta on October 20 under the Apache 2.0 license. The announcement does not specify the year. Adaptive eager mode is marked experimental, while TorchAO and FP8 are described as being in private beta. The PyTorch blog post provides further technical details and examples.

🇬🇧 https://pytorch.org/blog/introducing-torchneuron-native-pytorch-backend-for-aws-trainium

Leave a Comment

The weekly brief: selected developments, projects and videos