This document is relevant for: Trn2, Trn3

TorchNeuron resources#

Links to the source code, examples, profiling tools, upstream PyTorch documentation, and support channels for TorchNeuron (torch-neuronx).

Source code#

aws-neuron/torch-neuronx contains the TorchNeuron native PyTorch backend: the PrivateUse1 device backend, ATen operator implementations, and the TorchDynamo backend for torch.compile.

Examples#

The examples/ directory contains ready-to-run scripts, each with its own README. Start with the torch.compile quickstart, the GPT-2 training loop in eager mode, fused attention with NKI kernels, or tensor parallelism with FSDP.

Profile with Neuron Explorer#

Libraries built on TorchNeuron#

PyTorch community resources#

Get help#

Migrating from XLA-based torch-neuronx#

Earlier torch-neuronx releases were built on PyTorch/XLA and are a separate product lineage from TorchNeuron. The XLA-based documentation is in the archive.

This document is relevant for: Trn2, Trn3