mirror of
https://github.com/modelscope/modelscope.git
synced 2026-07-12 13:29:22 +02:00
Release/1.16 merge to master (#922)
* update version * merge master * fix fairseq issue * fix pip compatible issue * fix bug * version to 1.16.1 * xformers<0.0.27 * fix matplotlib.cm compatible issue * remove transformers from frameowrk * vllm to 0.5.1 * not upgrade pip * add Pillow to framework * Update version.py --------- Co-authored-by: xingjun.wang <xingjun.wxj@alibaba-inc.com> Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
This commit is contained in:
@@ -36,15 +36,14 @@ RUN if [ "$USE_GPU" = "True" ] ; then \
|
||||
|
||||
# install dependencies
|
||||
COPY requirements /var/modelscope
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir -r /var/modelscope/framework.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
RUN pip install --no-cache-dir -r /var/modelscope/framework.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/audio.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/cv.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/multi-modal.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/nlp.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/science.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/tests.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir -r /var/modelscope/svr.txt && \
|
||||
pip install --no-cache-dir -r /var/modelscope/server.txt && \
|
||||
pip install --no-cache-dir https://modelscope.oss-cn-beijing.aliyuncs.com/packages/imageio_ffmpeg-0.4.9-py3-none-any.whl --force && \
|
||||
pip install --no-cache-dir 'scipy<1.13.0' && \
|
||||
pip cache purge
|
||||
@@ -53,14 +52,13 @@ COPY examples /modelscope/examples
|
||||
# torchmetrics==0.11.4 for ofa
|
||||
# tinycudann for cuda12.1.0 pytorch 2.1.2
|
||||
RUN if [ "$USE_GPU" = "True" ] ; then \
|
||||
pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir torchsde jupyterlab torchmetrics==0.11.4 tiktoken transformers_stream_generator bitsandbytes basicsr optimum && \
|
||||
pip install --no-cache-dir flash_attn==2.5.9.post1 -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip install --no-cache-dir auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu121/ && \
|
||||
pip install --no-cache-dir -U 'xformers' --index-url https://download.pytorch.org/whl/cu121 && \
|
||||
pip install --no-cache-dir -U 'xformers<0.0.27' --index-url https://download.pytorch.org/whl/cu121 && \
|
||||
pip install --no-cache-dir --force tinycudann==1.7 -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
|
||||
pip uninstall -y torch-scatter && TORCH_CUDA_ARCH_LIST="6.0;6.1;6.2;7.0;7.5;8.0;8.6;8.9;9.0" pip install --no-cache-dir -U torch-scatter && \
|
||||
pip install --no-cache-dir -U triton vllm https://modelscope.oss-cn-beijing.aliyuncs.com/packages/lmdeploy-0.5.0-cp310-cp310-linux_x86_64.whl; \
|
||||
pip install --no-cache-dir -U triton 'vllm==0.5.1' https://modelscope.oss-cn-beijing.aliyuncs.com/packages/lmdeploy-0.5.0-cp310-cp310-linux_x86_64.whl; \
|
||||
else \
|
||||
echo 'cpu unsupport vllm auto-gptq'; \
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
import numpy as np
|
||||
import torch
|
||||
import torchvision.transforms as transforms
|
||||
from matplotlib.cm import get_cmap
|
||||
# from matplotlib.cm import get_cmap
|
||||
# compatible with matplotlib 3.9.0
|
||||
from matplotlib.pyplot import get_cmap
|
||||
|
||||
from modelscope.models.cv.video_depth_estimation.utils.image import (
|
||||
flip_lr, gradient_x, gradient_y, interpolate_image, load_image)
|
||||
|
||||
@@ -3,11 +3,11 @@ attrs
|
||||
datasets>=2.16.0,<2.19.0
|
||||
einops
|
||||
oss2
|
||||
Pillow
|
||||
python-dateutil>=2.1
|
||||
scipy
|
||||
# latest version has some compatible issue.
|
||||
setuptools==69.5.1
|
||||
simplejson>=3.3.0
|
||||
sortedcontainers>=1.5.9
|
||||
transformers
|
||||
urllib3>=1.26
|
||||
|
||||
@@ -2,7 +2,8 @@ accelerate
|
||||
cloudpickle
|
||||
decord>=0.6.0
|
||||
diffusers>=0.25.0
|
||||
fairseq
|
||||
# 0.12.1 has issue of No such file or directory: 'fairseq/version.txt'
|
||||
fairseq==0.12.2
|
||||
ftfy>=6.0.3
|
||||
librosa==0.10.1
|
||||
opencv-python
|
||||
|
||||
Reference in New Issue
Block a user