add ms-agent into dockerfile (#1436)

This commit is contained in:
tastelikefeet
2025-08-04 17:08:48 +08:00
committed by GitHub
parent b3d24d18e6
commit 3bad15b779
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ RUN sh /tmp/install.sh {version_args} && \
cd / && rm -fr /tmp/modelscope && pip cache purge; \ cd / && rm -fr /tmp/modelscope && pip cache purge; \
cd /tmp && GIT_LFS_SKIP_SMUDGE=1 git clone -b {swift_branch} --single-branch https://github.com/modelscope/ms-swift.git && \ cd /tmp && GIT_LFS_SKIP_SMUDGE=1 git clone -b {swift_branch} --single-branch https://github.com/modelscope/ms-swift.git && \
cd ms-swift && pip install .[llm] && \ cd ms-swift && pip install .[llm] && \
pip install .[eval] && pip install evalscope -U --no-dependencies && pip install xtuner --no-dependencies && \ pip install .[eval] && pip install evalscope -U --no-dependencies && pip install ms-agent -U --no-dependencies && \
cd / && rm -fr /tmp/ms-swift && pip cache purge; \ cd / && rm -fr /tmp/ms-swift && pip cache purge; \
pip install --no-cache-dir torch=={torch_version} torchvision=={torchvision_version} torchaudio=={torchaudio_version} {index_url} && \ pip install --no-cache-dir torch=={torch_version} torchvision=={torchvision_version} torchaudio=={torchaudio_version} {index_url} && \
pip install --no-cache-dir transformers diffusers timm>=0.9.0 && pip cache purge; \ pip install --no-cache-dir transformers diffusers timm>=0.9.0 && pip cache purge; \
@@ -90,7 +90,7 @@ fi
# install nvm and set node version to 18 # install nvm and set node version to 18
ENV NVM_DIR=/root/.nvm ENV NVM_DIR=/root/.nvm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash && \ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \
. $NVM_DIR/nvm.sh && \ . $NVM_DIR/nvm.sh && \
nvm install 22 && \ nvm install 22 && \
nvm use 22 nvm use 22

View File

@@ -1,5 +1,5 @@
filelock
requests>=2.25 requests>=2.25
setuptools setuptools
tqdm>=4.64.0 tqdm>=4.64.0
urllib3>=1.26 urllib3>=1.26
filelock