Skip to content

Commit 3cdf89d

Browse files
authored
Support PyTorch 2.7 (#528)
1 parent 640d2c1 commit 3cdf89d

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

.github/actions/setup/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
default: '3.9'
77
torch-version:
88
required: false
9-
default: '2.6'
9+
default: '2.7'
1010
cuda-version:
1111
required: false
1212
default: cpu

.github/workflows/testing.yml

+23-18
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,29 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- { torch-version: '1.13', python-version: '3.9' }
22-
- { torch-version: '1.13', python-version: '3.11' }
23-
- { torch-version: '2.0', python-version: '3.9' }
24-
- { torch-version: '2.0', python-version: '3.11' }
25-
- { torch-version: '2.1', python-version: '3.9' }
26-
- { torch-version: '2.1', python-version: '3.11' }
27-
- { torch-version: '2.2', python-version: '3.9' }
28-
- { torch-version: '2.2', python-version: '3.12' }
29-
- { torch-version: '2.3', python-version: '3.9' }
30-
- { torch-version: '2.3', python-version: '3.12' }
31-
- { torch-version: '2.4', python-version: '3.9' }
32-
- { torch-version: '2.4', python-version: '3.12' }
33-
- { torch-version: '2.5', python-version: '3.9' }
34-
- { torch-version: '2.5', python-version: '3.13' }
35-
- { torch-version: '2.6', python-version: '3.9' }
36-
- { torch-version: '2.6', python-version: '3.13' }
37-
- { torch-version: 'nightly', python-version: '3.9' }
38-
- { torch-version: 'nightly', python-version: '3.13' }
21+
- {torch-version: '1.13', python-version: '3.9'}
22+
- {torch-version: '1.13', python-version: '3.11'}
23+
# TODO: Enable these if we have more concurrent runners. PyTorch and
24+
# Python are stable enough that we don't need to test against all
25+
# versions.
26+
# - {torch-version: '2.0', python-version: '3.9'}
27+
# - {torch-version: '2.0', python-version: '3.11'}
28+
# - {torch-version: '2.1', python-version: '3.9'}
29+
# - {torch-version: '2.1', python-version: '3.11'}
30+
# - {torch-version: '2.2', python-version: '3.9'}
31+
# - {torch-version: '2.2', python-version: '3.12'}
32+
# - {torch-version: '2.3', python-version: '3.9'}
33+
# - {torch-version: '2.3', python-version: '3.12'}
34+
# - {torch-version: '2.4', python-version: '3.9'}
35+
# - {torch-version: '2.4', python-version: '3.12'}
36+
# - {torch-version: '2.5', python-version: '3.9'}
37+
# - {torch-version: '2.5', python-version: '3.13'}
38+
# - {torch-version: '2.6', python-version: '3.9'}
39+
# - {torch-version: '2.6', python-version: '3.13'}
40+
- {torch-version: '2.7', python-version: '3.9'}
41+
- {torch-version: '2.7', python-version: '3.13'}
42+
- {torch-version: 'nightly', python-version: '3.9'}
43+
- {torch-version: 'nightly', python-version: '3.13'}
3944

4045
steps:
4146
- name: Checkout repository

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ repos:
7878
hooks:
7979
- id: mypy
8080
name: Check types
81-
additional_dependencies: [torch==2.6.*]
81+
additional_dependencies: [torch==2.7.*]
8282
exclude: "^test/|^examples/|^benchmark/"
8383

8484
- repo: https://github.com/executablebooks/mdformat

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
77

88
### Added
99

10+
- Added support for PyTorch 2.7 ([#528](https://github.com/pyg-team/pytorch-frame/pull/528))
1011
- Added a classification example script for TabPFN ([#510](https://github.com/pyg-team/pytorch-frame/pull/510))
1112

1213
### Changed

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
https://download.pytorch.org/whl/cpu/torch-2.6.0%2Bcpu-cp39-cp39-linux_x86_64.whl
1+
https://download.pytorch.org/whl/cpu/torch-2.7.0%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl
22
git+https://github.com/pyg-team/pyg_sphinx_theme.git

0 commit comments

Comments
 (0)