forked from hamishivi/alpaca_farm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (65 loc) · 1.78 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
65
66
67
68
import os
import re
import setuptools
here = os.path.realpath(os.path.dirname(__file__))
with open(os.path.join(here, "src", "alpaca_farm", "__init__.py")) as f:
meta_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if meta_match:
version = meta_match.group(1)
else:
raise RuntimeError("Unable to find `__version__`.")
setuptools.setup(
name="alpaca_farm",
version=version,
package_dir={"": "src"},
packages=setuptools.find_packages("src"),
include_package_data=True,
install_requires=[
"datasets",
"einops",
"nltk",
"accelerate>=0.18.0",
"tabulate",
"transformers>=4.26.0",
"statsmodels",
"tiktoken>=0.3.2",
"markdown",
"scikit-learn",
"sentencepiece",
"pandas",
"wandb",
"torch>=1.13.1",
"fire",
"openai",
],
extras_require={
"full": [
# Training efficiency.
"flash-attn",
"apex",
"deepspeed",
# Plotting and visualization.
"benepar",
"spacy",
"spacy_fastlang",
"plotly",
"mapply",
],
"dev": {
"pre-commit>=3.2.0",
"black>=23.1.0",
"isort",
},
},
python_requires=">=3.8",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)