pyproject.toml 1.84 KB
Newer Older
Lianmin Zheng's avatar
Lianmin Zheng committed
1
2
3
4
5
6
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "sglang"
Lianmin Zheng's avatar
Lianmin Zheng committed
7
version = "0.3.3.post1"
8
description = "SGLang is yet another fast serving framework for large language models and vision language models."
Lianmin Zheng's avatar
Lianmin Zheng committed
9
10
11
12
13
14
15
16
17
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: Apache Software License",
]
dependencies = [
    "requests",
Jani Monoses's avatar
Jani Monoses committed
18
    "tqdm",
19
    "numpy",
Lianmin Zheng's avatar
Lianmin Zheng committed
20
21
22
]

[project.optional-dependencies]
23
24
25
26
27
28
29
30
31
32
33
runtime_common = ["aiohttp", "decord", "fastapi", "hf_transfer", "huggingface_hub", "interegular",
    "packaging", "pillow", "psutil", "pydantic", "python-multipart",
    "torchao", "uvicorn", "uvloop", "zmq",
    "outlines>=0.0.44", "modelscope"]
torch = ["torch"]
# xpu is not enabled in public vllm and torch whl,
# need to follow https://docs.vllm.ai/en/latest/getting_started/xpu-installation.htmlinstall vllm
vllm = ["vllm==0.5.5"]
srt = ["sglang[runtime_common]", "torch", "vllm"]
srt_xpu = ["sglang[runtime_common]"]

34
35
openai = ["openai>=1.0", "tiktoken"]
anthropic = ["anthropic>=0.20.0"]
胡译文's avatar
胡译文 committed
36
litellm = ["litellm>=1.0.0"]
37
test = ["jsonlines", "matplotlib", "pandas", "sentence_transformers", "accelerate", "peft"]
胡译文's avatar
胡译文 committed
38
all = ["sglang[srt]", "sglang[openai]", "sglang[anthropic]", "sglang[litellm]"]
39
all_xpu = ["sglang[srt_xpu]", "sglang[openai]", "sglang[anthropic]", "sglang[litellm]"]
40
dev = ["sglang[all]", "sglang[test]"]
41
dev_xpu = ["sglang[all_xpu]", "sglang[test]"]
Lianmin Zheng's avatar
Lianmin Zheng committed
42

Lianmin Zheng's avatar
Lianmin Zheng committed
43
44
45
46
[project.urls]
"Homepage" = "https://github.com/sgl-project/sglang"
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"

Lianmin Zheng's avatar
Lianmin Zheng committed
47
48
49
50
[tool.setuptools.packages.find]
exclude = ["assets*", "benchmark*", "docs*", "dist*", "playground*", "scripts*", "tests*"]

[tool.wheel]
51
exclude = ["assets*", "benchmark*", "docs*", "dist*", "playground*", "scripts*", "tests*"]