Skip to content

Commit

Permalink
bump ms version (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
tastelikefeet authored Nov 13, 2024
1 parent 490349a commit 78b6f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 2 additions & 0 deletions requirements/framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ aiohttp
attrdict
binpacking
dacite
datasets>=3.0
einops
importlib_metadata
jieba
matplotlib
modelscope[datasets]>=1.19
nltk
numpy<2.0
oss2
Expand Down
20 changes: 0 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Copyright (c) Alibaba, Inc. and its affiliates.
# !/usr/bin/env python
import os
import shutil
from setuptools import find_packages, setup
from typing import List

from packaging import version


def readme():
with open('README.md', encoding='utf-8') as f:
Expand Down Expand Up @@ -118,25 +115,8 @@ def gen_packages_items():
return gen_packages_items()


def add_modelscope_requirement(install_requires: List[str]) -> None:
# The future version will remove.
try:
import modelscope
modelscope_version = modelscope.__version__
except ImportError:
modelscope_version = '1.18'

if version.parse(modelscope_version) >= version.parse('1.19'):
install_requires.append('datasets>=3.0')
install_requires.append('modelscope[datasets]>=1.19')
else:
install_requires.append('datasets<3.0')
install_requires.append('modelscope[datasets]>=1.17,<1.19')


if __name__ == '__main__':
install_requires, deps_link = parse_requirements('requirements.txt')
add_modelscope_requirement(install_requires)
extra_requires = {}
all_requires = []
extra_requires['llm'], _ = parse_requirements('requirements/llm.txt')
Expand Down

0 comments on commit 78b6f78

Please sign in to comment.