.. _torch-setup:


.. meta::
   :description: Pytorch Neuron Setup - AWS Neuron SDK documentation
   :keywords: AWS Neuron, PyTorch, setup
   :date-modified: 2026-03-13


Pytorch Neuron Setup
====================

Install and configure PyTorch for use with AWS Neuron on Trainium and Inferentia instances.

.. grid:: 2
    :gutter: 2

    .. grid-item-card:: PyTorch Neuron (``torch-neuronx``) Setup for Inf2, Trn1, and Trn2 Instances
        :link: setup-torch-neuronx
        :link-type: ref
        :class-header: sd-bg-primary sd-text-white

        Install and configure PyTorch NeuronX for Inf2, Trn1, and Trn2 instances.

    .. grid-item-card:: PyTorch Neuron (``torch-neuron``) Setup for Inf1 Instances (Archived)
        :link: /archive/torch-neuron/setup/pytorch-install
        :link-type: doc
        :class-header: sd-bg-primary sd-text-white

        Legacy setup guide for PyTorch Neuron on Inf1 instances. This package has been archived.

.. toctree::
    :maxdepth: 1
    :hidden:
    :caption: Archived torch-neuronx setup pages

    Install PyTorch NeuronX </archive/frameworks/torch/torch-neuronx/setup/pytorch-install>
    Install with support for C++11 ABI </archive/frameworks/torch/torch-neuronx/setup/pytorch-neuronx-install-cxx11>
    Update on Ubuntu 22.04 </archive/frameworks/torch/torch-neuronx/setup/pytorch-update-u22>
    Update on Ubuntu 20.04 </archive/frameworks/torch/torch-neuronx/setup/pytorch-update-u20>
    Update on the Ubuntu 20.04 PyTorch DLAMI </archive/frameworks/torch/torch-neuronx/setup/pytorch-update-u20-dlami>
    Update on Amazon Linux 2 </archive/frameworks/torch/torch-neuronx/setup/pytorch-update-al2>
    Update on the Amazon Linux 2 PyTorch DLAMI </archive/frameworks/torch/torch-neuronx/setup/pytorch-update-al2-dlami>
