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

[project]
name = "sglang"
7
version = "0.5.5"
Yineng Zhang's avatar
Yineng Zhang committed
8
description = "SGLang is a fast serving framework for large language models and vision language models."
Lianmin Zheng's avatar
Lianmin Zheng committed
9
readme = "README.md"
10
requires-python = ">=3.10"
11
license = { file = "LICENSE" }
Lianmin Zheng's avatar
Lianmin Zheng committed
12
classifiers = [
13
14
15
  "Programming Language :: Python :: 3",
  "License :: OSI Approved :: Apache Software License",
]
16

17
18
dependencies = [
  "IPython",
19
20
  "aiohttp",
  "anthropic>=0.20.0",
21
22
23
  "blobfile==3.0.0",
  "build",
  "compressed-tensors",
24
  "cuda-python",
25
  "decord2",
26
27
28
  "datasets",
  "einops",
  "fastapi",
29
30
  "flashinfer_python==0.5.0",
  "flashinfer_cubin==0.5.0",
31
  "gguf",
32
33
34
35
36
37
38
  "hf_transfer",
  "huggingface_hub",
  "interegular",
  "llguidance>=0.7.11,<0.8.0",
  "modelscope",
  "msgspec",
  "ninja",
39
40
  "numpy",
  "nvidia-cutlass-dsl==4.2.1",
41
  "openai-harmony==0.0.4",
42
  "openai==2.6.1",
43
44
45
46
47
48
49
  "orjson",
  "outlines==0.1.11",
  "packaging",
  "partial_json_parser",
  "pillow",
  "prometheus-client>=0.20.0",
  "psutil",
50
  "py-spy",
51
52
  "pybase64",
  "pydantic",
53
  "nvidia-ml-py",
54
55
  "python-multipart",
  "pyzmq>=25.1.2",
56
  "requests",
57
58
  "scipy",
  "sentencepiece",
59
  "setproctitle",
gongwei-130's avatar
gongwei-130 committed
60
  "sgl-kernel==0.3.16.post5",
61
62
  "soundfile==0.13.1",
  "tiktoken",
63
  "timm==1.0.16",
64
  "torch_memory_saver==0.0.9",
65
  "torch==2.8.0",
66
67
  "torchaudio==2.8.0",
  "torchvision",
68
  "torchao==0.9.0",
69
  "tqdm",
70
  "transformers==4.57.1",
71
72
  "uvicorn",
  "uvloop",
73
  "xgrammar==0.1.25",
74
  "grpcio==1.75.1", # keep it align with compile_proto.py
75
76
  "grpcio-tools==1.75.1", # keep it align with compile_proto.py
  "grpcio-reflection==1.75.1", # required by srt/entrypoints/grpc_server.py
77
  "grpcio-health-checking==1.75.1", # required for Kubernetes gRPC health probes
Lianmin Zheng's avatar
Lianmin Zheng committed
78
79
80
]

[project.optional-dependencies]
81
checkpoint-engine = ["checkpoint-engine==0.1.2"]
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
diffusion = [
    "diffusers==0.35.2",
    "yunchang==0.6.3.post1",
    "opencv-python==4.10.0.84",
    "imageio==2.36.0",
    "imageio-ffmpeg==0.5.1",
    "PyYAML==6.0.1",
    "moviepy>=2.0.0",
    "cloudpickle",
    "remote-pdb",
    "torchcodec==0.5.0",
    "st_attn ==0.0.7",
    "vsa==0.0.4",
]

[tool.uv.extra-build-dependencies]
st-attn = ["torch", "setuptools"]
vsa = ["torch", "setuptools"]

101
102
103
104
105
106
107
108
test = [
  "accelerate",
  "expecttest",
  "jsonlines",
  "matplotlib",
  "pandas",
  "peft",
  "pytest",
109
  "sentence_transformers",
110
  "tabulate",
111
]
112
dev = ["sglang[test]"]
113
114
115
116
117
118
tracing = [
  "opentelemetry-api",
  "opentelemetry-exporter-otlp",
  "opentelemetry-exporter-otlp-proto-grpc",
  "opentelemetry-sdk",
]
Lianmin Zheng's avatar
Lianmin Zheng committed
119

Lianmin Zheng's avatar
Lianmin Zheng committed
120
121
122
123
[project.urls]
"Homepage" = "https://github.com/sgl-project/sglang"
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"

124
125
126
[project.scripts]
sglang = "sglang.cli.main:main"

yudian0504's avatar
yudian0504 committed
127
[tool.setuptools.package-data]
128
"sglang" = [
129
130
131
  "srt/layers/moe/fused_moe_triton/configs/*/*.json",
  "srt/layers/quantization/configs/*.json",
  "srt/mem_cache/storage/hf3fs/hf3fs_utils.cpp",
132
133
  "srt/speculative/cpp_ngram/*.cpp",
  "srt/speculative/cpp_ngram/*.h",
134
]
yudian0504's avatar
yudian0504 committed
135

Lianmin Zheng's avatar
Lianmin Zheng committed
136
[tool.setuptools.packages.find]
137
exclude = [
138
139
140
141
142
143
144
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
145
]
Lianmin Zheng's avatar
Lianmin Zheng committed
146
147

[tool.wheel]
148
exclude = [
149
150
151
152
153
154
155
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
156
]
157
158
159
160

[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"