colossalai
43 строки · 1.1 Кб
1from setuptools import find_packages, setup2
3
4def fetch_requirements(path):5with open(path, "r") as fd:6return [r.strip() for r in fd.readlines()]7
8
9def fetch_readme():10with open("README.md", encoding="utf-8") as f:11return f.read()12
13
14def fetch_version():15with open("version.txt", "r") as f:16return f.read().strip()17
18
19setup(20name="colossal_moe",21version=fetch_version(),22packages=find_packages(23exclude=(24"tests",25"benchmarks",26"*.egg-info",27)28),29description="Colossal-AI MoE",30long_description=fetch_readme(),31long_description_content_type="text/markdown",32license="Apache Software License 2.0",33url="https://github.com/hpcaitech",34install_requires=fetch_requirements("requirements.txt"),35python_requires=">=3.6",36classifiers=[37"Programming Language :: Python :: 3",38"License :: OSI Approved :: Apache Software License",39"Environment :: GPU :: NVIDIA CUDA",40"Topic :: Scientific/Engineering :: Artificial Intelligence",41"Topic :: System :: Distributed Computing",42],43)
44