swift docker install apex

This commit is contained in:
Jintao Huang
2025-04-08 00:05:26 +08:00
parent 94059f13cf
commit 25e01ad6f2

View File

@@ -79,6 +79,9 @@ if [ "$INSTALL_MEGATRON_DEPS" = "True" ]; then \
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; \
cd /tmp && GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/NVIDIA/apex && \
cd apex && 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; \
fi
ENV SETUPTOOLS_USE_DISTUTILS=stdlib