This document is relevant for: Inf2
, Trn1
, Trn2
Install Previous PyTorch NeuronX Releases for AL2023#
This section will assist you to install previous Neuron releases.
# Install External Dependency
sudo dnf install -y libxcrypt-compat
# Install Python venv
sudo dnf install -y gcc-c++
# Create Python venv
python3.9 -m venv aws_neuron_venv_pytorch
# Activate Python venv
source aws_neuron_venv_pytorch/bin/activate
python -m pip install -U pip
# Install Jupyter notebook kernel
pip install ipykernel
python3.9 -m ipykernel install --user --name aws_neuron_venv_pytorch --display-name "Python (torch-neuronx)"
pip install jupyter notebook
pip install environment_kernels
# Set pip repository pointing to the Neuron repository
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com
# Install wget, awscli
python -m pip install wget
python -m pip install awscli
# Install Neuron Compiler and Framework
python -m pip install neuronx-cc==2.20.9961.0 torch-neuronx==2.7.0.2.9.9357
# Install External Dependency
sudo dnf install -y libxcrypt-compat
# Install Python venv
sudo dnf install -y gcc-c++
# Create Python venv
python3.9 -m venv aws_neuron_venv_pytorch
# Activate Python venv
source aws_neuron_venv_pytorch/bin/activate
python -m pip install -U pip
# Install Jupyter notebook kernel
pip install ipykernel
python3.9 -m ipykernel install --user --name aws_neuron_venv_pytorch --display-name "Python (torch-neuronx)"
pip install jupyter notebook
pip install environment_kernels
# Set pip repository pointing to the Neuron repository
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com
# Install wget, awscli
python -m pip install wget
python -m pip install awscli
# Install Neuron Compiler and Framework
python -m pip install neuronx-cc==2.19.8089.0 torch-neuronx==2.7.0.2.8.6734
# Install External Dependency
sudo dnf install -y libxcrypt-compat
# Install Python venv
sudo dnf install -y gcc-c++
# Create Python venv
python3.9 -m venv aws_neuron_venv_pytorch
# Activate Python venv
source aws_neuron_venv_pytorch/bin/activate
python -m pip install -U pip
# Install Jupyter notebook kernel
pip install ipykernel
python3.9 -m ipykernel install --user --name aws_neuron_venv_pytorch --display-name "Python (torch-neuronx)"
pip install jupyter notebook
pip install environment_kernels
# Set pip repository pointing to the Neuron repository
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com
# Install wget, awscli
python -m pip install wget
python -m pip install awscli
# Install Neuron Compiler and Framework
python -m pip install neuronx-cc==2.18.121.0 torch-neuronx==2.6.0.2.7.5413
This document is relevant for: Inf2
, Trn1
, Trn2