forked from zjunlp/EasyInstruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (55 loc) · 1.6 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from setuptools import setup, find_packages
from setuptools.command.install import install
REQUIRES = """
torch>=1.13.0
torchvision>=0.15.0
transformers>=4.28.0
peft==0.2.0
accelerate>=0.20.3
openai>=0.27.0
anthropic>=0.3.0
cohere>=4.19.0
llama-index==0.4.29
langchain==0.0.116
Pillow
tiktoken
nltk
"""
def get_install_requires():
reqs = [req for req in REQUIRES.split("\n") if len(req)>0]
return reqs
with open("README.md") as f:
readme = f.read()
def do_setup():
setup(
name="easyinstruct",
version = '0.0.6',
description = "A easy-to-use framework to instruct large language models.",
url="https://github.com/zjunlp/EasyInstruct",
author = 'Yixin Ou',
long_description=readme,
long_description_content_type="text/markdown",
install_requires=get_install_requires(),
python_requires=">=3.7.0",
packages=find_packages(
exclude=[
"test*",
"examples*",
"gitbook*",
"figs*"
]
),
keywords=["AI", "NLP", "instruction", "language model"],
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
]
)
if __name__ == "__main__":
do_setup()