Skip to content

Commit de4ef3f

Browse files
committed
Upgrade PyTorch version to v2.2.1
Signed-off-by: Yuki Iwai <[email protected]>
1 parent 61406a5 commit de4ef3f

File tree

7 files changed

+10
-12
lines changed

7 files changed

+10
-12
lines changed

examples/v1beta1/trial-images/darts-cnn-cifar10/Dockerfile.cpu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ADD examples/v1beta1/trial-images/darts-cnn-cifar10 ${TARGET_DIR}
66

77
WORKDIR ${TARGET_DIR}
88

9+
RUN pip install --prefer-binary --no-cache-dir torch==2.2.1 torchvision==0.17.1
910
RUN pip install --prefer-binary --no-cache-dir -r requirements.txt
1011
RUN chgrp -R 0 ${TARGET_DIR} \
1112
&& chmod -R g+rwX ${TARGET_DIR}

examples/v1beta1/trial-images/darts-cnn-cifar10/Dockerfile.gpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# We need to use the nvcr.io/nvidia/pytorch image as a base image to support both linux/amd64 and linux_arm64 platforms.
2-
# PyTorch=1.13.0, cuda=11.8.0
3-
# Ref: https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-22-11.html#rel-22-11
4-
FROM nvcr.io/nvidia/pytorch:22.11-py3
2+
# PyTorch=2.2.0, cuda=12.3.2
3+
# Ref: https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-01.html#rel-24-01
4+
FROM nvcr.io/nvidia/pytorch:24.01-py3
55

66
ENV TARGET_DIR /opt/darts-cnn-cifar10
77

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
torch==1.13.1
2-
torchvision==0.14.1
31
Pillow>=9.1.1

examples/v1beta1/trial-images/pytorch-mnist/Dockerfile.cpu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ WORKDIR /opt/pytorch-mnist
66

77
# Add folder for the logs.
88
RUN mkdir /katib
9-
RUN pip install --prefer-binary --no-cache-dir -r requirements.txt
9+
RUN pip install --prefer-binary --no-cache-dir torch==2.2.1 torchvision==0.17.1
10+
RUN pip install --prefer-binary --no-cache-dir -r requirements-cpu.txt
1011

1112
RUN chgrp -R 0 /opt/pytorch-mnist \
1213
&& chmod -R g+rwX /opt/pytorch-mnist \

examples/v1beta1/trial-images/pytorch-mnist/Dockerfile.gpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# We need to use the nvcr.io/nvidia/pytorch image as a base image to support both linux/amd64 and linux_arm64 platforms.
2-
# PyTorch=1.13.0, cuda=11.8.0
3-
# Ref: https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-22-11.html#rel-22-11
4-
FROM nvcr.io/nvidia/pytorch:22.11-py3
2+
# PyTorch=2.2.0, cuda=12.3.2
3+
# Ref: https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-01.html#rel-24-01
4+
FROM nvcr.io/nvidia/pytorch:24.01-py3
55

66
ADD examples/v1beta1/trial-images/pytorch-mnist /opt/pytorch-mnist
77

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
cloudml-hypertune==0.1.0.dev6
2-
torch==1.13.1
3-
torchvision==0.14.1
42
Pillow>=9.1.1

sdk/python/v1beta1/kubeflow/katib/constants/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# TODO (andreyvelich): Implement list_base_images function to get each image description.
5353
BASE_IMAGE_TENSORFLOW = "docker.io/tensorflow/tensorflow:2.13.0"
5454
BASE_IMAGE_TENSORFLOW_GPU = "docker.io/tensorflow/tensorflow:2.13.0-gpu"
55-
BASE_IMAGE_PYTORCH = "docker.io/pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime"
55+
BASE_IMAGE_PYTORCH = "docker.io/pytorch/pytorch:2.2.1-cuda12.1-cudnn8-runtime"
5656
BASE_IMAGE_MXNET = "docker.io/mxnet/python:1.9.1_native_py3"
5757

5858
DEFAULT_DB_MANAGER_ADDRESS = "katib-db-manager.kubeflow:6789"

0 commit comments

Comments
 (0)