update swift docker

This commit is contained in:
Jintao Huang
2025-06-14 12:05:56 +08:00
parent de09d49dd4
commit 7288add012
2 changed files with 2 additions and 2 deletions

View File

@@ -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; \

View File

@@ -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 = (