This document is relevant for: Inf1
Install Previous PyTorch Neuron Releases for AL2023 (torch-neuron
)#
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_inf1
# Activate Python venv
source aws_neuron_venv_pytorch_inf1/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_inf1 --display-name "Python (torch-neuron)"
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 PyTorch Neuron
python -m pip install torch-neuron==1.13.1.2.11.13.0 neuron-cc[tensorflow] "protobuf" torchvision
# 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_inf1
# Activate Python venv
source aws_neuron_venv_pytorch_inf1/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_inf1 --display-name "Python (torch-neuron)"
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 PyTorch Neuron
python -m pip install torch-neuron==1.13.1.2.11.7.0 neuron-cc[tensorflow] "protobuf" torchvision
# 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_inf1
# Activate Python venv
source aws_neuron_venv_pytorch_inf1/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_inf1 --display-name "Python (torch-neuron)"
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 PyTorch Neuron
python -m pip install torch-neuron==1.13.1.2.10.12.0 neuron-cc[tensorflow] "protobuf" torchvision
This document is relevant for: Inf1