-
Notifications
You must be signed in to change notification settings - Fork 4
/
install_torch_sparse.sh
22 lines (18 loc) · 1.29 KB
/
install_torch_sparse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# User-defined variables
PT_VERSION=1.13.1 # PyTorch version
CU_VERSION=cu116 # CUDA version
PYTHON_VERSION=cp38 # Python version
# Create a directory for wheel files
mkdir -p ~/pytorch_wheels
cd ~/pytorch_wheels
# Download the wheel files
wget https://data.pyg.org/whl/torch-${PT_VERSION}+${CU_VERSION}/torch_scatter-2.1.0+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
wget https://data.pyg.org/whl/torch-${PT_VERSION}+${CU_VERSION}/torch_sparse-0.6.15+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
wget https://data.pyg.org/whl/torch-${PT_VERSION}+${CU_VERSION}/torch_cluster-1.6.0+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
wget https://data.pyg.org/whl/torch-${PT_VERSION}+${CU_VERSION}/torch_spline_conv-1.2.1+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
# Install the downloaded wheels
pip install torch_scatter-2.1.0+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
pip install torch_sparse-0.6.15+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
pip install torch_cluster-1.6.0+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.whl
pip install torch_spline_conv-1.2.1+pt${PT_VERSION}-${PYTHON_VERSION}-${PYTHON_VERSION}-linux_x86_64.wh