This document is relevant for: Trn2, Trn3

TorchNeuron API reference#

API reference material for TorchNeuron on AWS Neuron.

torch.neuron and torch.accelerator reference

Device, random number generation, stream, event, memory, and compilation-metrics functions of the torch.neuron module, and the torch.accelerator functions that TorchNeuron supports.

Supported PyTorch APIs and operators

How the torch-neuronx compatibility table classifies each API, support counts by namespace, fallback behavior in eager mode and torch.compile, and how to find the operators that run on CPU in your model.

Operator compatibility table

Per-API support status, dtype coverage, and CPU fallbacks for TorchNeuron, maintained in the torch-neuronx repository.

torch.compile backend reference

torch.compile parameter and torch.compiler API support, graph breaks, environment variables, and caching.

This document is relevant for: Trn2, Trn3