Skip to content

Commit cdbf561

Browse files
authored
Add PyTorch 2.5 support (#389)
update
1 parent bd56751 commit cdbf561

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

.github/workflows/building-conda.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
matrix:
1313
os: [ubuntu-20.04, macos-14, windows-2019]
1414
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
15-
torch-version: [2.4.0] # [2.3.0, 2.4.0]
15+
torch-version: [2.5.0] # [2.3.0, 2.4.0, 2.5.0]
1616
cuda-version: ['cpu', 'cu118', 'cu121', 'cu124']
1717
exclude:
18+
- torch-version: 2.5.0
19+
python-version: '3.8'
1820
- torch-version: 2.3.0
1921
cuda-version: 'cu124'
2022
- os: macos-14

.github/workflows/building.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ jobs:
1212
matrix:
1313
os: [ubuntu-20.04, macos-14, windows-2019]
1414
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
15-
torch-version: [2.4.0] # [2.3.0, 2.4.0]
15+
torch-version: [2.5.0] # [2.3.0, 2.4.0, 2.5.0]
1616
cuda-version: ['cpu', 'cu118', 'cu121', 'cu124']
1717
exclude:
18+
- torch-version: 2.5.0
19+
python-version: '3.8'
1820
- torch-version: 2.3.0
1921
cuda-version: 'cu124'
2022
- os: macos-14

.github/workflows/testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os: [ubuntu-latest, windows-2019]
18-
python-version: [3.8]
19-
torch-version: [2.3.0, 2.4.0]
18+
python-version: [3.9]
19+
torch-version: [2.4.0, 2.5.0]
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -47,7 +47,7 @@ jobs:
4747
bash .github/workflows/metis-${{ runner.os }}.sh
4848
4949
- name: Install scipy
50-
if: ${{ matrix.python-version == '3.8' }}
50+
if: ${{ matrix.python-version == '3.9' }}
5151
run: |
5252
pip install scipy==1.10.1
5353

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ conda install pytorch-sparse -c pyg
4343

4444
We alternatively provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://data.pyg.org/whl).
4545

46-
#### PyTorch 2.4
46+
#### PyTorch 2.5
4747

48-
To install the binaries for PyTorch 2.4.0, simply run
48+
To install the binaries for PyTorch 2.5.0, simply run
4949

5050
```
51-
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.4.0+${CUDA}.html
51+
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.5.0+${CUDA}.html
5252
```
5353

5454
where `${CUDA}` should be replaced by either `cpu`, `cu118`, `cu121`, or `cu124` depending on your PyTorch installation.
@@ -59,24 +59,23 @@ where `${CUDA}` should be replaced by either `cpu`, `cu118`, `cu121`, or `cu124`
5959
| **Windows** |||||
6060
| **macOS** || | | |
6161

62+
#### PyTorch 2.4
6263

63-
#### PyTorch 2.3
64-
65-
To install the binaries for PyTorch 2.3.0, simply run
64+
To install the binaries for PyTorch 2.4.0, simply run
6665

6766
```
68-
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.3.0+${CUDA}.html
67+
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.4.0+${CUDA}.html
6968
```
7069

71-
where `${CUDA}` should be replaced by either `cpu`, `cu118`, or `cu121` depending on your PyTorch installation.
70+
where `${CUDA}` should be replaced by either `cpu`, `cu118`, `cu121`, or `cu124` depending on your PyTorch installation.
7271

73-
| | `cpu` | `cu118` | `cu121` |
74-
|-------------|-------|---------|---------|
75-
| **Linux** ||||
76-
| **Windows** ||||
77-
| **macOS** || | |
72+
| | `cpu` | `cu118` | `cu121` | `cu124` |
73+
|-------------|-------|---------|---------|---------|
74+
| **Linux** |||||
75+
| **Windows** |||||
76+
| **macOS** || | | |
7877

79-
**Note:** Binaries of older versions are also provided for PyTorch 1.4.0, PyTorch 1.5.0, PyTorch 1.6.0, PyTorch 1.7.0/1.7.1, PyTorch 1.8.0/1.8.1, PyTorch 1.9.0, PyTorch 1.10.0/1.10.1/1.10.2, PyTorch 1.11.0, PyTorch 1.12.0/1.12.1, PyTorch 1.13.0/1.13.1, PyTorch 2.0.0/2.0.1, PyTorch 2.1.0/2.1.1/2.1.2, and PyTorch 2.2.0/2.2.1/2.2.2 (following the same procedure).
78+
**Note:** Binaries of older versions are also provided for PyTorch 1.4.0, PyTorch 1.5.0, PyTorch 1.6.0, PyTorch 1.7.0/1.7.1, PyTorch 1.8.0/1.8.1, PyTorch 1.9.0, PyTorch 1.10.0/1.10.1/1.10.2, PyTorch 1.11.0, PyTorch 1.12.0/1.12.1, PyTorch 1.13.0/1.13.1, PyTorch 2.0.0/2.0.1, PyTorch 2.1.0/2.1.1/2.1.2, PyTorch 2.2.0/2.2.1/2.2.2, and PyTorch 2.3.0/2.3.1 (following the same procedure).
8079
For older versions, you need to explicitly specify the latest supported version number or install via `pip install --no-index` in order to prevent a manual installation from source.
8180
You can look up the latest supported version number [here](https://data.pyg.org/whl).
8281

conda/pytorch-sparse/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
```
2-
./build_conda.sh 3.11 2.4.0 cu118 # python, pytorch and cuda version
2+
./build_conda.sh 3.11 2.5.0 cu118 # python, pytorch and cuda version
33
```

0 commit comments

Comments
 (0)