-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
114 lines (111 loc) · 3.39 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
from setuptools import setup
with open("src/turnkeyml/version.py", encoding="utf-8") as fp:
version = fp.read().split('"')[1]
setup(
name="turnkeyml",
version=version,
description="TurnkeyML Tools and Models",
author_email="[email protected]",
package_dir={"": "src", "turnkeyml_models": "models"},
packages=[
"turnkeyml",
"turnkeyml.tools",
"turnkeyml.tools.discovery",
"turnkeyml.sequence",
"turnkeyml.cli",
"turnkeyml.common",
"lemonade",
"lemonade.tools",
"lemonade.tools.ort_genai",
"lemonade.tools.ryzenai_npu",
"turnkeyml_models",
"turnkeyml_models.graph_convolutions",
"turnkeyml_models.selftest",
"turnkeyml_models.timm",
"turnkeyml_models.torch_hub",
"turnkeyml_models.torchvision",
"turnkeyml_models.transformers",
],
install_requires=[
"invoke>=2.0.0",
"onnx>=1.11.0",
"onnxmltools==1.10.0",
"torch>=1.12.1",
"pyyaml>=5.4",
"typeguard>=2.3.13",
"packaging>=20.9",
# Necessary until upstream packages account for the breaking
# change to numpy
"numpy<2.0.0",
"pandas>=1.5.3",
"fasteners",
"GitPython>=3.1.40",
"psutil",
"wmi",
"pytz",
"tqdm",
# Conditional dependencies for ONNXRuntime backends
"onnxruntime >=1.10.1;platform_system=='Linux' and extra != 'llm-oga-cuda'",
"onnxruntime-directml >=1.19.0;platform_system=='Windows' and extra != 'llm-oga-cuda'",
"onnxruntime-gpu >=1.19.1;extra == 'llm-oga-cuda'",
],
extras_require={
"llm": [
"torch>=2.0.0",
"transformers",
"accelerate",
"py-cpuinfo",
"sentencepiece",
"datasets",
# Install human-eval from a forked repo with Windows support until the
# PR (https://github.com/openai/human-eval/pull/53) is merged
"human-eval-windows==1.0.4",
"fastapi",
"uvicorn[standard]",
],
"llm-oga-cpu": [
"onnxruntime-genai>=0.5.2",
"torch>=2.0.0,<2.4",
"transformers<4.45.0",
"turnkeyml[llm]",
],
"llm-oga-igpu": [
"onnxruntime-genai-directml==0.4.0",
"torch>=2.0.0,<2.4",
"transformers<4.45.0",
"turnkeyml[llm]",
],
"llm-oga-cuda": [
"onnxruntime-genai-cuda==0.4.0",
"torch>=2.0.0,<2.4",
"transformers<4.45.0",
"turnkeyml[llm]",
],
"llm-oga-npu": [
"onnx==1.16.0",
"onnxruntime==1.18.0",
"numpy==1.26.4",
"turnkeyml[llm]",
],
"llm-oga-hybrid": [
"onnx==1.16.1",
"numpy==1.26.4",
"turnkeyml[llm]",
],
},
classifiers=[],
entry_points={
"console_scripts": [
"turnkey=turnkeyml:turnkeycli",
"turnkey-llm=lemonade:lemonadecli",
"lemonade=lemonade:lemonadecli",
]
},
python_requires=">=3.8, <3.12",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
include_package_data=True,
package_data={
"turnkeyml_models": ["requirements.txt", "readme.md"],
},
)