From 7288add0123b83b828e2a7f81bf09c766bf23615 Mon Sep 17 00:00:00 2001 From: Jintao Huang Date: Sat, 14 Jun 2025 12:05:56 +0800 Subject: [PATCH] update swift docker --- docker/Dockerfile.ubuntu | 2 +- docker/build_image.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.ubuntu b/docker/Dockerfile.ubuntu index a96a63ef..43981715 100644 --- a/docker/Dockerfile.ubuntu +++ b/docker/Dockerfile.ubuntu @@ -82,7 +82,7 @@ if [ "$INSTALL_MEGATRON_DEPS" = "True" ]; then \ pip install liger_kernel nvitop pre-commit "transformers==4.51.3" huggingface-hub -U && \ SITE_PACKAGES=$(python -c "import site; print(site.getsitepackages()[0])") && echo $SITE_PACKAGES && \ CUDNN_PATH=$SITE_PACKAGES/nvidia/cudnn CPLUS_INCLUDE_PATH=$SITE_PACKAGES/nvidia/cudnn/include \ - pip install git+https://github.com/NVIDIA/TransformerEngine.git@stable; \ + pip install git+https://github.com/NVIDIA/TransformerEngine.git@release_v2.3; \ cd /tmp && GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/NVIDIA/apex && \ cd apex && git checkout e13873debc4699d39c6861074b9a3b2a02327f92 && pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./ && \ cd / && rm -fr /tmp/apex && pip cache purge; \ diff --git a/docker/build_image.py b/docker/build_image.py index 1b283d38..bd80b192 100644 --- a/docker/build_image.py +++ b/docker/build_image.py @@ -347,7 +347,7 @@ class SwiftImageBuilder(LLMImageBuilder): extra_content = extra_content.replace('{python_version}', self.args.python_version) extra_content += """ -RUN pip install --no-cache-dir deepspeed==0.14.5 --no-deps && \ +RUN pip install --no-cache-dir -U "deepspeed==0.16.*" --no-deps && \ pip install --no-cache-dir -U icecream soundfile pybind11 """ version_args = (