Skip to content

Commit 103424d

Browse files
prateekdesai04UbuntuUbuntu
authored
[Draft] Add AutoGluon v1.1.1 (#4029)
* inital commit * initial commit * removing debug prints * fix vulnerabilities * revert * fix vulnerability * adding fix message * fix * Addressing comments * revert toml --------- Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Ubuntu <[email protected]>
1 parent 3c58cd7 commit 103424d

21 files changed

+548
-1157
lines changed

autogluon/inference/buildspec.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
account_id: &ACCOUNT_ID <set-$ACCOUNT_ID-in-environment>
22
region: &REGION <set-$REGION-in-environment>
33
framework: &FRAMEWORK autogluon
4-
version: &VERSION 1.1.0
4+
version: &VERSION 1.1.1
55
short_version: &SHORT_VERSION 1.1
66
arch_type: x86
77

@@ -31,7 +31,7 @@ images:
3131
image_size_baseline: 6399
3232
device_type: &DEVICE_TYPE cpu
3333
python_version: &DOCKER_PYTHON_VERSION py3
34-
tag_python_version: &TAG_PYTHON_VERSION py310
34+
tag_python_version: &TAG_PYTHON_VERSION py311
3535
os_version: &OS_VERSION ubuntu20.04
3636
tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION ]
3737
docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ]
@@ -44,8 +44,8 @@ images:
4444
image_size_baseline: 19456
4545
device_type: &DEVICE_TYPE gpu
4646
python_version: &DOCKER_PYTHON_VERSION py3
47-
tag_python_version: &TAG_PYTHON_VERSION py310
48-
cuda_version: &CUDA_VERSION cu118
47+
tag_python_version: &TAG_PYTHON_VERSION py311
48+
cuda_version: &CUDA_VERSION cu121
4949
os_version: &OS_VERSION ubuntu20.04
5050
tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION ]
5151
docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., *DEVICE_TYPE ]

autogluon/inference/docker/1.1/py3/Dockerfile.cpu

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG PYTHON_VERSION=3.10.8
1+
ARG PYTHON_VERSION=3.11.9
22

3-
FROM 763104351884.dkr.ecr.us-west-2.amazonaws.com/pytorch-inference:2.1.0-cpu-py310-ubuntu20.04-sagemaker
3+
FROM 763104351884.dkr.ecr.us-west-2.amazonaws.com/pytorch-inference:2.3.0-cpu-py311-ubuntu20.04-sagemaker
44

55
# Specify accept-bind-to-port LABEL for inference pipelines to use SAGEMAKER_BIND_TO_PORT
66
# https://docs.aws.amazon.com/sagemaker/latest/dg/inference-pipeline-real-time.html
@@ -19,7 +19,7 @@ RUN apt-get update \
1919
&& apt-get clean \
2020
&& rm -rf /var/lib/apt/lists/*
2121

22-
ARG AUTOGLUON_VERSION=1.1.0
22+
ARG AUTOGLUON_VERSION=1.1.1
2323

2424
# Upgrading pip and installing/updating Python dependencies
2525
# Comments are added to explain the reason behind each update
@@ -34,8 +34,8 @@ RUN pip install --no-cache-dir -U --trusted-host pypi.org --trusted-host files.p
3434
&& mim install -q mmcv==2.1.0 --timeout 600 \
3535
&& pip install --no-cache-dir -U mmdet>=3.0.0 \
3636
&& pip install --no-cache-dir -U "mmengine" \
37-
# Update transformers to secure versions that fixes CVE-2023-7018
38-
&& pip install --no-cache-dir -U setuptools>=65.5.1 \
37+
# Capping setuptools to 69.5.1 to fix AutoMM tests
38+
&& pip install --no-cache-dir setuptools==69.5.1 \
3939
# Update pillow to a secure version that fixes CVE-2023-50447
4040
&& pip install --no-cache-dir -U pillow>=10.2.0 \
4141
# Update Jinja2 to a secure version that fixes vulnerability id 64227
@@ -47,7 +47,9 @@ RUN pip install --no-cache-dir -U --trusted-host pypi.org --trusted-host files.p
4747
&& pip install --no-cache-dir -U scipy==1.12.0 \
4848
&& pip install --no-cache-dir -U joblib==1.4.2 \
4949
# update tqdm to a secure version that fixes CVE-2024-34062
50-
&& pip install --no-cache-dir -U tqdm>=4.66.3
50+
&& pip install --no-cache-dir -U tqdm>=4.66.3 \
51+
# update urllib3 to fix vulnerability id 71608
52+
&& pip install --no-cache-dir -U urllib3
5153

5254

5355

autogluon/inference/docker/1.1/py3/Dockerfile.cpu.os_scan_allowlist.json

+119-264
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"50916": "Pydantic 1.10.2 prevents long strings as int inputs to fix CVE-2020-10735 - upstream dependencies are still not patched",
3-
"51358": "Safety 2.2.0 updates its dependency 'dparse' to include a security fix. - not packaged with container, result of security scanning process",
42
"65213": "PyOpenSSL doesn't have this fix yet - the issue only applicable to PowerPC architecture and not applicable to this container",
5-
"67599": "pip - No fix for this yet",
63
"70612": "jinja2 3.1.4 - The maintainer and multiple third parties believe that this vulnerability isn't valid.",
74
"65189": "Ray - autogluon uses ray < 2.11",
8-
"70485": "Ray - autogluon uses ray < 2.11"
5+
"70485": "Ray - autogluon uses ray < 2.11",
6+
"71805": "onnx - this package is required by autogluon multimodal",
7+
"71596": "scikit-learn - this package is required by autogluon",
8+
"71670": "torch 2.3 is used in the base image and is required by autogluon"
99
}

autogluon/inference/docker/1.1/py3/cu118/Dockerfile.gpu.os_scan_allowlist.json

-296
This file was deleted.

autogluon/inference/docker/1.1/py3/cu118/Dockerfile.gpu.py_scan_allowlist.json

-9
This file was deleted.

0 commit comments

Comments
 (0)