Skip to content

Commit 04259f6

Browse files
Updating the torch image in Dockerfile (#4220)
* Update Dockerfile * 4021541 * 4021541 * 4021541 * 4021541 --------- Co-authored-by: utkshukla <utkshukla@microsoft.com>
1 parent 7bcb527 commit 04259f6

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

assets/training/model_management/environments/model-management/context/Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2204-cu118-py310-torch222:{{latest-image-tag:biweekly\.\d{6}\.\d{1}.*}}
1+
FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2204-cu118-py310-torch260:{{latest-image-tag:biweekly\.\d{6}\.\d{1}.*}}
22

33
WORKDIR /
44

@@ -16,17 +16,12 @@ RUN echo "Downloading azcopy to file azcopy.tar ....";\
1616

1717
COPY requirements.txt .
1818

19-
# Switch to python==3.9 to prevent numpy==1.23.5 build failure
20-
# numpy==1.23.5 is a hard dependency in azureml-automl-dnn-vision
21-
# which is not compatible with py310.
22-
# Going forward azureml-automl-dnn-vision needs to update version for torch and numpy
23-
RUN conda install python=3.9 -y
19+
# This line is added because azureml-automl-dnn-vision depends on python 3.9.
20+
# Added ignore python requires to get this installed.
21+
RUN pip install --ignore-requires-python azureml-automl-dnn-vision
2422

2523
RUN pip install -r requirements.txt --no-cache-dir
2624

27-
# Vulnerability fix
28-
RUN pip install torch==2.6.0 torchvision --no-cache-dir
29-
3025
# List pip packages
3126
RUN pip list
3227

assets/training/model_management/environments/model-management/context/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ wget=={{latest-pypi-version}}
1010
applicationinsights=={{latest-pypi-version}}
1111
azureml-automl-core=={{latest-pypi-version}}
1212
azureml-telemetry=={{latest-pypi-version}}
13-
azureml-automl-dnn-vision=={{latest-pypi-version}}
13+
#azureml-automl-dnn-vision=={{latest-pypi-version}}
1414
pyarrow==14.0.2
1515
GitPython=={{latest-pypi-version}}
1616
paramiko=={{latest-pypi-version}}
@@ -22,7 +22,7 @@ onnx==1.17.0
2222
idna
2323
tqdm
2424
requests==2.32.1
25-
tornado==6.4.2
25+
tornado==6.5
2626
certifi==2024.07.04
2727
urllib3==1.26.19
2828
scikit-learn==1.5.1

0 commit comments

Comments
 (0)