Skip to content

Commit 1cd0d7b

Browse files
YanxuanLiuwyli
andauthored
upgrade pytorch version (#6228)
Fixes #6221 ### Description Upgrade Pytorch version to 23.02 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: YanxuanLiu <[email protected]> Signed-off-by: Wenqi Li <[email protected]> Co-authored-by: Wenqi Li <[email protected]>
1 parent 104a360 commit 1cd0d7b

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.github/workflows/cron.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
base: "nvcr.io/nvidia/pytorch:21.06-py3" # CUDA 11.3
3131
- environment: PTLATEST+CUDA118
3232
pytorch: "-U torch torchvision --extra-index-url https://download.pytorch.org/whl/cu118"
33-
base: "nvcr.io/nvidia/pytorch:22.12-py3" # CUDA 11.8
33+
base: "nvcr.io/nvidia/pytorch:23.02-py3" # CUDA 11.8
3434
container:
3535
image: ${{ matrix.base }}
3636
options: "--gpus all"
@@ -39,7 +39,6 @@ jobs:
3939
- uses: actions/checkout@v3
4040
- name: apt install
4141
run: |
42-
# FIXME: workaround for https://github.com/Project-MONAI/MONAI/issues/4200
4342
apt-get update
4443
apt-get install -y wget
4544
- name: Install the dependencies
@@ -77,7 +76,7 @@ jobs:
7776
if: github.repository == 'Project-MONAI/MONAI'
7877
strategy:
7978
matrix:
80-
container: ["pytorch:22.09", "pytorch:22.11", "pytorch:22.12"]
79+
container: ["pytorch:22.09", "pytorch:22.11", "pytorch:23.02"]
8180
container:
8281
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
8382
options: "--gpus all"
@@ -122,7 +121,7 @@ jobs:
122121
if: github.repository == 'Project-MONAI/MONAI'
123122
strategy:
124123
matrix:
125-
container: ["pytorch:22.09", "pytorch:22.11", "pytorch:22.12"]
124+
container: ["pytorch:22.09", "pytorch:22.11", "pytorch:23.02"]
126125
container:
127126
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
128127
options: "--gpus all"
@@ -222,7 +221,7 @@ jobs:
222221
if: github.repository == 'Project-MONAI/MONAI'
223222
needs: cron-gpu # so that monai itself is verified first
224223
container:
225-
image: nvcr.io/nvidia/pytorch:22.12-py3 # testing with the latest pytorch base image
224+
image: nvcr.io/nvidia/pytorch:23.02-py3 # testing with the latest pytorch base image
226225
options: "--gpus all --ipc=host"
227226
runs-on: [self-hosted, linux, x64, integration]
228227
steps:

.github/workflows/pythonapp-gpu.yml

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
- environment: PT113+CUDA116
4242
pytorch: "torch==1.13.1 torchvision==0.14.1"
4343
base: "nvcr.io/nvidia/cuda:11.6.1-devel-ubuntu18.04"
44+
- environment: PT114+CUDA120DOCKER
45+
# 23.02: 1.14.0a0+44dac51
46+
pytorch: "-h" # we explicitly set pytorch to -h to avoid pip install error
47+
base: "nvcr.io/nvidia/pytorch:23.02-py3"
4448
container:
4549
image: ${{ matrix.base }}
4650
options: --gpus all --env NVIDIA_DISABLE_REQUIRE=true # workaround for unsatisfied condition: cuda>=11.6

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sphinx:
1818

1919
# Optionally set the version of Python and requirements required to build your docs
2020
python:
21-
version: 3.8
21+
version: 3
2222
install:
2323
- requirements: docs/requirements.txt
2424
# system_packages: true

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# To build with a different base image
1313
# please run `docker build` using the `--build-arg PYTORCH_IMAGE=...` flag.
14-
ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:22.12-py3
14+
ARG PYTORCH_IMAGE=nvcr.io/nvidia/pytorch:23.02-py3
1515
FROM ${PYTORCH_IMAGE}
1616

1717
LABEL maintainer="[email protected]"

tests/test_dynunet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_script(self):
124124

125125
# @skip_if_no_cuda
126126
# @skip_if_windows
127-
@unittest.skip("temporary skip for 22.12")
127+
@unittest.skip("temporary skip for 22.12/23.02")
128128
class TestDynUNetWithInstanceNorm3dNVFuser(unittest.TestCase):
129129
@parameterized.expand([TEST_CASE_DYNUNET_3D[0]])
130130
def test_consistency(self, input_param, input_shape, _):

0 commit comments

Comments
 (0)