forked from xorbitsai/inference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
279 lines (268 loc) · 5.5 KB
/
setup.cfg
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
[metadata]
name = xinference
description = Model Serving Made Easy
author = Qin Xuye
author_email = [email protected]
maintainer = Qin Xuye
maintainer_email = [email protected]
license = Apache License 2.0
url = https://github.com/xorbitsai/inference
python_requires = >=3.8
classifier =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries
[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
xoscar>=0.3.0
torch
gradio==4.26.0
typer[all]<0.12.0 # fix typer required by gradio
pillow
click
tqdm>=4.27
tabulate
requests
pydantic
fastapi==0.110.3
uvicorn
huggingface-hub>=0.19.4
typing_extensions
fsspec==2023.10.0
s3fs==2023.10.0
modelscope>=1.10.0
sse_starlette>=1.6.5 # ensure_bytes API break change: https://github.com/sysid/sse-starlette/issues/65
openai>1 # For typing
python-jose[cryptography]
passlib[bcrypt]
aioprometheus[starlette]>=23.12.0
pynvml
async-timeout
peft
timm
opencv-contrib-python
[options.packages.find]
exclude =
*.conftest*
*.tests.*
*.tests
[options.extras_require]
dev =
cython>=0.29
pytest>=3.5.0
pytest-cov>=2.5.0
pytest-timeout>=1.2.0
pytest-forked>=1.0
pytest-asyncio>=0.14.0
pytest-mock>=3.11.1
ipython>=6.5.0
sphinx>=3.0.0
pydata-sphinx-theme>=0.3.0
sphinx-intl>=0.9.9
jieba>=0.42.0
flake8>=3.8.0
black
openai>1
opencv-contrib-python
langchain
langchain-community
orjson
sphinx-tabs
sphinx-design
all =
chatglm-cpp>=0.3.0
llama-cpp-python>=0.2.25,!=0.2.58
transformers>=4.34.1
torch
accelerate>=0.27.2
sentencepiece
transformers_stream_generator
bitsandbytes
protobuf
einops
tiktoken
sentence-transformers>=2.7.0
vllm>=0.2.6 ; sys_platform=='linux'
diffusers
controlnet_aux
orjson
auto-gptq ; sys_platform!='darwin'
autoawq ; sys_platform!='darwin'
optimum
outlines==0.0.34 # sglang errored for outlines > 0.0.34
sglang[all] ; sys_platform=='linux'
mlx-lm ; sys_platform=='darwin' and platform_machine=='arm64'
attrdict # For deepseek VL
timm>=0.9.16 # For deepseek VL
torchvision # For deepseek VL
FlagEmbedding # For rerank
omegaconf~=2.3.0 # For ChatTTS
nemo_text_processing # For ChatTTS
WeTextProcessing # For ChatTTS
librosa # For ChatTTS
xxhash # For ChatTTS
ChatTTS>0.1
boto3>=1.28.55,<1.28.65 # For tensorizer
tensorizer~=2.9.0
intel =
torch==2.1.0a0
intel_extension_for_pytorch==2.1.10+xpu
ggml =
llama-cpp-python>=0.2.25,!=0.2.58
chatglm-cpp>=0.3.0
transformers =
transformers>=4.34.1
torch
accelerate>=0.27.2
sentencepiece
transformers_stream_generator
bitsandbytes
protobuf
einops
tiktoken
auto-gptq ; sys_platform!='darwin'
autoawq ; sys_platform!='darwin'
optimum
attrdict # For deepseek VL
timm>=0.9.16 # For deepseek VL
torchvision # For deepseek VL
peft
vllm =
vllm>=0.2.6
sglang =
sglang[all]
mlx =
mlx-lm
embedding =
sentence-transformers>=2.7.0
rerank =
FlagEmbedding
image =
diffusers
controlnet_aux
audio =
omegaconf~=2.3.0
nemo_text_processing
WeTextProcessing
librosa
xxhash
ChatTTS>0.1
doc =
ipython>=6.5.0
sphinx>=3.0.0
pydata-sphinx-theme>=0.3.0
sphinx-intl>=0.9.9
sphinx-tabs
sphinx-design
prometheus_client
timm
opencv-contrib-python
benchmark =
psutil
[options.entry_points]
console_scripts =
xinference = xinference.deploy.cmdline:cli
xinference-local = xinference.deploy.cmdline:local
xinference-supervisor = xinference.deploy.cmdline:supervisor
xinference-worker = xinference.deploy.cmdline:worker
[coverage:run]
branch = True
relative_files = True
cover_pylib = False
plugins = Cython.Coverage
include =
xinference/*
omit =
xinference/_version.py
*.pxd
*/tests/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
return NotImplemented
[versioneer]
VCS = git
style = pep440
versionfile_source = xinference/_version.py
versionfile_build = xinference/_version.py
tag_prefix = v
parentdir_prefix = xinference-
[flake8]
max-line-length = 100
select =
E9,
E101,
E111,
E117,
E127,
E201,
E202,
E223,
E224,
E225,
E231,
E242,
E251,
E273,
E274,
E275,
E301,
E302,
E303,
E304,
E305,
E401,
E703,
E901,
E999,
F7,
F63,
F82,
F401,
F811,
F821,
F822,
F823,
F841,
W191,
W291,
W292,
W293,
W391,
W601,
W602,
W603,
W604,
W605
exclude =
__init__.py
__pycache__
.git/
.github/
build/
ci/
dist/
docs/
thirdparty
[codespell]
ignore-words-list = hist,rcall,fpr,ser,nd,inout,ot,Ba,ba,asend,hart,coo,splitted,datas,fro
skip = .idea,.git,./build,./docs/build,node_modules,static,generated,*.po,*.ts,*.json,*.c,*.cpp,*.cfg,thirdparty
[isort]
profile = black
skip = thirdparty
[mypy]
ignore_missing_imports=True
follow_imports=skip
exclude = thirdparty