From d183f8020a1cc42d3d7631bbe331c1479ebbcd3e Mon Sep 17 00:00:00 2001 From: tastelikefeet Date: Mon, 9 Mar 2026 14:13:32 +0800 Subject: [PATCH] fix --- docker/Dockerfile.ubuntu | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile.ubuntu b/docker/Dockerfile.ubuntu index 8d574f5f..84a00a66 100644 --- a/docker/Dockerfile.ubuntu +++ b/docker/Dockerfile.ubuntu @@ -71,10 +71,8 @@ RUN if [ "$IMAGE_TYPE" = "gpu" ]; then \ 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; \ - pip install git+https://github.com/NVIDIA/Megatron-LM.git@core_r0.15.0; \ + pip install megatron-core==0.15.*; \ pip uninstall autoawq -y; \ - mkdir -p /root/.cache/modelscope/_github; \ - git -C /root/.cache/modelscope/_github clone https://github.com/NVIDIA/Megatron-LM.git Megatron-LM --branch core_r0.15.0; \ elif [ "$IMAGE_TYPE" = "cpu" ]; then \ pip install --no-cache-dir huggingface-hub transformers peft diffusers -U; \ else \ @@ -92,7 +90,5 @@ RUN rm -f /etc/apt/sources.list.d/cuda-*.list && apt-get update ENV VLLM_USE_MODELSCOPE=True ENV LMDEPLOY_USE_MODELSCOPE=True -ENV MODELSCOPE_CACHE=/mnt/workspace/.cache/modelscope -ENV MEGATRON_LM_PATH=/root/.cache/modelscope/_github/Megatron-LM -ENV SWIFT_PATCH_CONV3D=1 +ENV MODELSCOPE_CACHE=/mnt/workspace/.cache/modelscope/hub SHELL ["/bin/bash", "-c"]