mirror of
https://github.com/modelscope/modelscope.git
synced 2026-07-10 04:22:33 +02:00
fix
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user