-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
50 lines (46 loc) · 1.49 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
import setuptools
readme_filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md")
with open(readme_filepath, "r", encoding="utf8") as fh:
long_description = fh.read()
version_filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)), "VERSION")
with open(version_filepath, "r", encoding="utf8") as fh:
version = fh.read().strip()
setuptools.setup(
name="smoe",
version=version,
author="MoE Group",
author_email="tzhu1997@outlook.com",
description="A toolkit for LLM MoE and continual pretraining.",
long_description_content_type="text/markdown",
long_description=long_description,
url="https://github.com/Spico197/smoe",
packages=setuptools.find_packages(exclude=["tests", "tests.*", "docs", "docs.*"]),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
install_requires=[
"scikit-learn==1.3.0",
"omegaconf==2.0.6",
"tqdm==4.65.0",
"datasets==2.14.1",
"transformers==4.31.0",
"peft==0.4.0",
"tensorboard==2.13.0",
],
extras_require={
"dev": [
"pytest==7.4.0",
"coverage==7.2.7",
"black==23.7.0",
"isort==5.12.0",
"flake8==6.0.0",
"pre-commit==3.3.3",
]
},
include_package_data=True,
entry_points={},
)