Skip to content

Commit 0550ce8

Browse files
committed
Updates for Pytorch 2.7
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent b58e883 commit 0550ce8

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

.github/workflows/pythonapp-min.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
strategy:
125125
fail-fast: false
126126
matrix:
127-
pytorch-version: ['2.3.1', '2.4.1', '2.5.1', 'latest']
127+
pytorch-version: ['2.4.1', '2.5.1', '2.6.0', 'latest']
128128
timeout-minutes: 40
129129
steps:
130130
- uses: actions/checkout@v4

.github/workflows/pythonapp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
# install the latest pytorch for testing
156156
# however, "pip install monai*.tar.gz" will build cpp/cuda with an isolated
157157
# fresh torch installation according to pyproject.toml
158-
python -m pip install torch>=2.3.0 torchvision
158+
python -m pip install torch>=2.4.1 torchvision
159159
- name: Check packages
160160
run: |
161161
pip uninstall monai

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-f https://download.pytorch.org/whl/cpu/torch-2.3.0%2Bcpu-cp39-cp39-linux_x86_64.whl
2-
torch>=2.3.0
2+
torch>=2.4.1
33
pytorch-ignite==0.4.11
44
numpy>=1.20
55
itk>=5.2

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
requires = [
33
"wheel",
44
"setuptools",
5-
"torch>=2.3.0",
5+
"torch>=2.4.1",
66
"ninja",
77
"packaging"
88
]
99

1010
[tool.black]
1111
line-length = 120
12-
target-version = ['py38', 'py39', 'py310']
12+
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
1313
include = '\.pyi?$'
1414
exclude = '''
1515
(

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
torch>=2.3.0; sys_platform != 'win32'
2-
torch>=2.4.1; sys_platform == 'win32'
1+
torch>=2.4.1
32
numpy>=1.24,<3.0

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ setup_requires =
4242
ninja
4343
packaging
4444
install_requires =
45-
torch>=2.3.0; sys_platform != 'win32'
46-
torch>=2.4.1; sys_platform == 'win32'
45+
torch>=2.4.1
4746
numpy>=1.24,<3.0
4847

4948
[options.extras_require]

0 commit comments

Comments
 (0)