mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
update swift docker
This commit is contained in:
@@ -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; \
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user