Skip to content

Commit cbba542

Browse files
Patch 2025 02 07 (#4541)
* remove emacs * Update ['dlc_developer_config.toml'] dlc_developer_config.toml: { 'build': { 'build_frameworks': ['huggingface_pytorch'], 'build_inference': False, 'build_training': True}, 'buildspec_override': { 'dlc-pr-huggingface-pytorch-training': 'huggingface/pytorch/training/buildspec.yml'}, 'dev': { 'arm64_mode': False, 'deep_canary_mode': False, 'graviton_mode': False, 'neuronx_mode': False}, 'test': { 'ec2_tests': True, 'ecs_tests': True, 'eks_tests': True, 'sagemaker_local_tests': True, 'sagemaker_remote_tests': True, 'sanity_tests': True, 'security_tests': True}} * use RUN * try using apt-get remove * just remove emacs * combine the calls * bump transformers * bump pip too * just fix emacs for now * should test transformers w/ v2 version actually * upgrade pip * bump ninja to 1.11.1.2 * remove test since we upgraded pip * try setting ninja version * bring test back * remove emacs test * added 2.1 change by accident, reverting * fix flake8, bump release training version * Revert "Update ['dlc_developer_config.toml']" This reverts commit 9dfa272.
1 parent 13285af commit cbba542

File tree

4 files changed

+9
-22
lines changed

4 files changed

+9
-22
lines changed

huggingface/pytorch/training/buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ images:
2424
tag_python_version: &TAG_PYTHON_VERSION py311
2525
cuda_version: &CUDA_VERSION cu121
2626
os_version: &OS_VERSION ubuntu20.04
27-
transformers_version: &TRANSFORMERS_VERSION 4.46.1
27+
transformers_version: &TRANSFORMERS_VERSION 4.48.0
2828
datasets_version: &DATASETS_VERSION 3.1.0
2929
tag: !join [ *VERSION, '-', 'transformers', *TRANSFORMERS_VERSION, '-', *DEVICE_TYPE, '-', *TAG_PYTHON_VERSION, '-',
3030
*CUDA_VERSION, '-', *OS_VERSION ]

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
# docker image region us-west-2
55
FROM 763104351884.dkr.ecr.us-west-2.amazonaws.com/pytorch-training:2.3.0-gpu-py311-cu121-ubuntu20.04-sagemaker
66

7+
RUN apt-get remove -y --purge emacs && \
8+
apt-get autoremove -y
9+
710
LABEL maintainer="Amazon AI"
8-
LABEL dlc_major_version="1"
11+
LABEL dlc_major_version="2"
912

1013
# version args
1114
ARG TRANSFORMERS_VERSION
@@ -17,10 +20,11 @@ ARG ACCELERATE_VERSION=1.1.0
1720
ARG TRL_VERSION=0.11.4
1821
ARG PEFT_VERSION=0.13.2
1922
ARG FLASH_ATTN_VERSION=2.6.3
23+
ARG NINJA_VERSION=1.11.1
2024
ARG PYTHON=python3
2125

2226
# TODO: Remove when the base image is updated
23-
RUN pip install --upgrade "pip==24.1.2" \
27+
RUN pip install --upgrade pip \
2428
&& pip uninstall -y transformer-engine flash-attn pyarrow cryptography \
2529
&& pip install --no-cache-dir -U pyarrow cryptography pyopenssl Pillow \
2630
&& pip --no-cache-dir install --upgrade wheel setuptools \
@@ -38,6 +42,7 @@ RUN pip install --no-cache-dir \
3842
bitsandbytes \
3943
evaluate==${EVALUATE_VERSION} \
4044
accelerate==${ACCELERATE_VERSION} \
45+
ninja==${NINJA_VERSION} \
4146
trl==${TRL_VERSION} \
4247
peft==${PEFT_VERSION} \
4348
flash-attn==${FLASH_ATTN_VERSION}

release_images_training.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ release_images:
5555
5:
5656
framework: "huggingface_pytorch"
5757
version: "2.3.0"
58-
hf_transformers: "4.46.1"
58+
hf_transformers: "4.48.0"
5959
arch_type: "x86"
6060
training:
6161
device_types: ["gpu"]

test/dlc_tests/sanity/test_utility_installation.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -186,24 +186,6 @@ def test_boto3(mxnet_inference):
186186
test_utils.run_cmd_on_container(container_name, ctx, "import boto3", executable="python")
187187

188188

189-
@pytest.mark.usefixtures("sagemaker", "functionality_sanity")
190-
@pytest.mark.model("N/A")
191-
@pytest.mark.integration("emacs")
192-
def test_emacs(image):
193-
"""
194-
Ensure that emacs is installed on every image
195-
196-
:param image: ECR image URI
197-
"""
198-
ctx = Context()
199-
container_name = test_utils.get_container_name("emacs", image)
200-
test_utils.start_container(container_name, image, ctx)
201-
202-
# Make sure the following emacs sanity tests exit with code 0
203-
test_utils.run_cmd_on_container(container_name, ctx, "which emacs")
204-
test_utils.run_cmd_on_container(container_name, ctx, "emacs -version")
205-
206-
207189
@pytest.mark.usefixtures("sagemaker_only", "functionality_sanity")
208190
@pytest.mark.model("N/A")
209191
@pytest.mark.integration("sagemaker_studio_analytics_extension")

0 commit comments

Comments
 (0)