Skip to content

Commit 63f3d85

Browse files
authored
Merge branch 'aws:master' into master
2 parents c71689c + ba9f23b commit 63f3d85

19 files changed

+337
-26
lines changed

huggingface/pytorch/inference/buildspec.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ images:
3535
python_version: &DOCKER_PYTHON_VERSION py3
3636
tag_python_version: &TAG_PYTHON_VERSION py311
3737
os_version: &OS_VERSION ubuntu22.04
38-
transformers_version: &TRANSFORMERS_VERSION 4.46.1
38+
transformers_version: &TRANSFORMERS_VERSION 4.48.0
3939
tag: !join [ *VERSION, '-', 'transformers', *TRANSFORMERS_VERSION, '-', *DEVICE_TYPE, '-', *TAG_PYTHON_VERSION, '-', *OS_VERSION ]
4040
docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ]
4141
context:
@@ -48,8 +48,8 @@ images:
4848
python_version: &DOCKER_PYTHON_VERSION py3
4949
tag_python_version: &TAG_PYTHON_VERSION py311
5050
cuda_version: &CUDA_VERSION cu121
51-
os_version: &OS_VERSION ubuntu20.04
52-
transformers_version: &TRANSFORMERS_VERSION 4.46.1
51+
os_version: &OS_VERSION ubuntu22.04
52+
transformers_version: &TRANSFORMERS_VERSION 4.48.0
5353
tag: !join [ *VERSION, '-', 'transformers', *TRANSFORMERS_VERSION, '-', *DEVICE_TYPE, '-', *TAG_PYTHON_VERSION, '-',
5454
*CUDA_VERSION, '-', *OS_VERSION ]
5555
docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /,

huggingface/pytorch/inference/docker/2.3/py3/Dockerfile.cpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
FROM ubuntu:22.04 AS base_image
22

33
LABEL maintainer="Amazon AI"
4-
LABEL dlc_major_version="1"
4+
LABEL dlc_major_version="2"
55
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
66
LABEL com.amazonaws.sagemaker.capabilities.multi-models=true
77

88
ARG PYTHON=python3
99
ARG PYTHON_VERSION=3.11.9
10-
ARG MINIFORGE3_VERSION=23.11.0-0
10+
ARG MINIFORGE3_VERSION=24.11.0-0
1111
ARG OPEN_MPI_VERSION=4.1.5
1212
ARG MMS_VERSION=1.1.11
1313

huggingface/pytorch/inference/docker/2.3/py3/cu121/Dockerfile.gpu

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM nvidia/cuda:12.1.1-base-ubuntu20.04 AS base_image
1+
FROM nvidia/cuda:12.1.1-base-ubuntu22.04 AS base_image
22

33
LABEL maintainer="Amazon AI"
4-
LABEL dlc_major_version="1"
4+
LABEL dlc_major_version="2"
55
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
66
LABEL com.amazonaws.sagemaker.capabilities.multi-models=true
77
LABEL com.amazonaws.sagemaker.inference.cuda.verified_versions=12.2
88

99
ARG MMS_VERSION=1.1.11
1010
ARG PYTHON=python3
1111
ARG PYTHON_VERSION=3.11.9
12-
ARG MINIFORGE3_VERSION=23.11.0-0
12+
ARG MINIFORGE3_VERSION=24.11.0-0
1313
ARG OPEN_MPI_VERSION=4.1.5
1414

1515
# Nvidia software versions
@@ -85,7 +85,6 @@ RUN apt-get update \
8585
libnuma1 \
8686
libnuma-dev \
8787
libsm6 \
88-
libssl1.1 \
8988
libssl-dev \
9089
libxext6 \
9190
libxrender-dev \

release_images_inference.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ release_images:
149149
framework: "huggingface_pytorch"
150150
version: "2.3.0"
151151
arch_type: "x86"
152-
hf_transformers: "4.46.1"
152+
hf_transformers: "4.48.0"
153153
inference:
154154
device_types: ["gpu" ]
155155
python_versions: [ "py311" ]
156-
os_version: "ubuntu20.04"
156+
os_version: "ubuntu22.04"
157157
cuda_version: "cu121"
158158
example: False
159159
disable_sm_tag: True
@@ -162,7 +162,7 @@ release_images:
162162
framework: "huggingface_pytorch"
163163
version: "2.3.0"
164164
arch_type: "x86"
165-
hf_transformers: "4.46.1"
165+
hf_transformers: "4.48.0"
166166
inference:
167167
device_types: [ "cpu" ]
168168
python_versions: [ "py311" ]

src/patch_helper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,6 @@ def initiate_multithreaded_autopatch_prep(PRE_PUSH_STAGE_IMAGES, make_dummy_boto
305305
f"""pip install -r {os.path.join(os.sep, get_cloned_folder_path(), "test", "requirements.txt")}""",
306306
hide=False,
307307
)
308-
# temporary workaround for breaking boto3 version
309-
run("pip uninstall -y boto3 botocore s3transfer")
310-
run("pip install boto3==1.35.75") # minimum required version for sagemaker dependency currently
311308

312309
folder_path_outside_clone = os.path.join(os.sep, *get_cloned_folder_path().split(os.sep)[:-1])
313310
download_path = os.path.join(os.sep, folder_path_outside_clone, "patch-dlc")

src/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
awscli==1.37.6
2+
boto3==1.36.6
3+
fabric
4+
invoke
15
wheel==0.44.0
26
docker==4.2.0
3-
fabric==2.5.0
4-
#unpin when fabric releases v3.1 Related Issue https://github.com/fabric/fabric/issues/2263
5-
invoke<2.1.0
67
pyfiglet==0.8.post1
78
reprint==0.5.2
89
ruamel.yaml==0.18.10
9-
boto3>=1.33
1010
black==23.3.0
1111
junit-xml==1.9
1212
toml==0.10.2

tensorflow/inference/buildspec-2-18-ec2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK tensorflow
55
version: &VERSION 2.18.0
66
short_version: &SHORT_VERSION 2.18
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

tensorflow/inference/buildspec-2-18-sm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK tensorflow
55
version: &VERSION 2.18.0
66
short_version: &SHORT_VERSION 2.18
77
arch_type: x86
8-
# autopatch_build: "True"
8+
autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"protobuf":{
3+
"version_specifier": ">=3.20.3,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
4+
},
5+
"cython":{
6+
"version_specifier": "<3.0"
7+
},
8+
"awscli":{
9+
"version_specifier": "<2"
10+
},
11+
"tensorflow-serving-api":{
12+
"version_specifier": "==2.18.0",
13+
"skip":"True"
14+
},
15+
"urllib3": {
16+
"version_specifier": ">=2.0.7"
17+
}
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"protobuf":{
3+
"version_specifier": ">=3.20.3,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
4+
},
5+
"cython":{
6+
"version_specifier": "<3.0"
7+
},
8+
"awscli":{
9+
"version_specifier": "<2"
10+
},
11+
"tensorflow-serving-api":{
12+
"version_specifier": "==2.18.0",
13+
"skip":"True"
14+
},
15+
"falcon":{
16+
"version_specifier": "==3.1.0"
17+
},
18+
"gunicorn":{
19+
"version_specifier": ">=22.0.0"
20+
},
21+
"urllib3": {
22+
"version_specifier": ">=2.0.7"
23+
}
24+
}

0 commit comments

Comments
 (0)