From 0ed953417df5b562700d5442e78d66b56eb64966 Mon Sep 17 00:00:00 2001 From: hjh0119 Date: Thu, 20 Aug 2026 21:04:37 +0800 Subject: [PATCH] update swift env --- docker/Dockerfile.ubuntu | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.ubuntu b/docker/Dockerfile.ubuntu index 76303be4..ff9cfa81 100644 --- a/docker/Dockerfile.ubuntu +++ b/docker/Dockerfile.ubuntu @@ -83,10 +83,14 @@ RUN export PIP_EXTRA_INDEX_URL="${PIP_EXTRA_INDEX_URL}" && \ NVTE_WITH_NCCL_EP=0 NVTE_FRAMEWORK=pytorch MAX_JOBS=16 \ pip install --no-cache-dir --no-build-isolation "transformer_engine[pytorch]==2.18.0"; \ 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" ./ || \ - echo "WARNING: apex build failed; megatron-core falls back to Torch Norm."; \ + 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; \ pip install --no-cache-dir "megatron-core==0.18.*" -U; \ + pip install --no-cache-dir git+https://github.com/deepseek-ai/DeepGEMM.git@v2.1.1.post3 --no-build-isolation && \ + pip install --no-cache-dir -U flash-linear-attention --no-build-isolation && \ + pip install --no-cache-dir -U git+https://github.com/Dao-AILab/causal-conv1d --no-build-isolation && \ + pip install --no-cache-dir git+https://github.com/Dao-AILab/fast-hadamard-transform --no-build-isolation && \ + pip install --no-cache-dir git+https://github.com/NVIDIA-NeMo/Emerging-Optimizers.git@v0.3.0; \ elif [ "$IMAGE_TYPE" = "cpu" ]; then \ pip install --no-cache-dir huggingface-hub transformers peft diffusers -U; \ else \