-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpyproject.toml
63 lines (57 loc) · 1.55 KB
/
pyproject.toml
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
[project]
name = "gpt_server"
version = "0.4.2"
description = "gpt_server是一个用于生产级部署LLMs或Embedding的开源框架。"
readme = "README.md"
license = { text = "Apache 2.0" }
authors = [{ name = "Yu Liu", email = "[email protected]" }]
requires-python = ">=3.10"
dependencies = [
"accelerate>=1.0.1",
"fastapi==0.115.0",
"ffmpy",
"fschat==0.2.36",
"infinity-emb[all]==0.0.73",
"lmdeploy==0.7.3",
"loguru>=0.7.2",
"openai==1.55.3",
"setuptools==75.2.0",
"streamlit==1.39.0",
"torch==2.5.1",
"torchvision==0.20.1",
"vllm==0.8.4",
"qwen_vl_utils",
"evalscope[perf]==0.10.1",
"modelscope==1.20.1",
"edge-tts>=7.0.0",
"funasr>=1.2.6",
"sglang[all]>=0.4.5",
"flashinfer-python",
"flashtts>=0.1.0",
]
[tool.uv]
default-groups = [] # 默认只安装dependencies中的库
override-dependencies = [
"setuptools==75.2.0",
"torchvision==0.21.0",
"torch==2.6.0",
"triton",
"outlines==0.1.11",
"transformers==4.50.0",
"soundfile==0.13.1", # infinity
"xgrammar==0.1.18", # sglang[all]==0.4.5 depends on xgrammar==0.1.17
]
[project.scripts]
gpt_server = "gpt_server.cli:main"
[[tool.uv.index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
# 强制要求 flashinfer-python通过官方源安装
[[tool.uv.index]]
name = "flashinfer-python"
url = "https://flashinfer.ai/whl/cu124/torch2.5"
[tool.uv.sources]
flashinfer-python = { index = "flashinfer-python" }
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"