Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
sglang/python/pyproject_other.toml at main · sgl-project/sglang · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
sgl-project
sglang
Repository navigation
Code
Issues
954
(954)
Pull requests
5k+
(5k+)
Discussions
Actions
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
sglang
/
python
/
pyproject_other.toml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
312 lines (284 loc) · 8.3 KB
main
Breadcrumbs
sglang
/
python
/
pyproject_other.toml
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
312 lines (284 loc) · 8.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
[
build-system
]
requires
= [
"
setuptools>=61.0
"
,
"
setuptools-rust>=1.10
"
,
"
setuptools-scm>=8.0
"
,
"
wheel
"
]
build-backend
=
"
setuptools.build_meta
"
[
project
]
name
=
"
sglang
"
dynamic
= [
"
version
"
]
description
=
"
SGLang is a fast serving framework for large language models and vision language models.
"
readme
=
"
README.md
"
requires-python
=
"
>=3.10
"
license
= {
file
=
"
LICENSE
"
}
classifiers
= [
"
Programming Language :: Python :: 3
"
,
"
License :: OSI Approved :: Apache Software License
"
,
]
#
Please keep dependency lists in this file sorted alphabetically by package name.
dependencies
= [
"
aiohttp
"
,
"
IPython
"
,
"
numpy
"
,
"
requests
"
,
"
setproctitle
"
,
"
tqdm
"
]
[
project
.
optional-dependencies
]
#
runtime_base: torch-free subset of runtime_common.
#
Used by srt_empty for device-agnostic install on non-NVIDIA platforms.
#
NOTE: Do NOT add packages that depend on torch/triton here — they belong in runtime_common.
runtime_base
= [
"
aiohttp
"
,
"
anthropic>=0.20.0
"
,
"
apache-tvm-ffi
"
,
"
av
"
,
"
blobfile==3.0.0
"
,
"
build
"
,
"
datasets
"
,
"
deepseek-recipe==0.2.0 ; (sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'aarch64')) or sys_platform == 'darwin'
"
,
"
easydict
"
,
"
einops
"
,
"
fastapi
"
,
"
gguf
"
,
"
interegular
"
,
"
IPython
"
,
"
llguidance>=1.7.6,<2.0.0
"
,
"
mistral_common>=1.11.5
"
,
"
modelscope
"
,
"
msgspec
"
,
"
ninja
"
,
"
numpy
"
,
"
openai==2.6.1
"
,
"
openai-harmony==0.0.4
"
,
"
orjson
"
,
"
packaging
"
,
"
partial_json_parser
"
,
"
pillow
"
,
"
prometheus-client>=0.20.0
"
,
"
psutil
"
,
"
py-spy
"
,
"
pybase64
"
,
"
pydantic
"
,
"
python-multipart
"
,
"
pyzmq>=25.1.2
"
,
"
regex
"
,
"
requests
"
,
"
scipy
"
,
"
sentencepiece==0.2.1
"
,
#
0.2.2 rejects null pieces in InternVL tokenizers.
"
setproctitle
"
,
"
smg-grpc-servicer>=0.9.0
"
,
"
soundfile==0.13.1
"
,
"
tiktoken
"
,
"
tqdm
"
,
"
transformers==5.19.0
"
,
"
uvicorn
"
,
"
uvloop
"
,
"
xxhash
"
,
]
#
runtime_common: backward-compatible — same install result as before the split.
runtime_common
= [
"
sglang[runtime_base]
"
,
"
compressed-tensors
"
,
"
outlines==0.1.11
"
,
"
timm==1.0.25
"
,
"
xgrammar==0.2.7
"
,
]
#
srt_empty: device-agnostic install — pure Python packages only, no torch dependency chain.
#
Enables OOT plugins (e.g. sglang-plugin-FL) to install sglang without conflicting with
#
vendor-specific PyTorch builds (torch_npu, torch_musa, etc.).
#
Usage: cp pyproject_other.toml pyproject.toml && pip install -e ".[srt_empty]"
srt_empty
= [
"
sglang[runtime_base]
"
]
diffusion_common
= [
"
accelerate
"
,
"
addict
"
,
"
cloudpickle
"
,
"
diffusers==0.37.0
"
,
"
imageio==2.36.0
"
,
"
imageio-ffmpeg==0.5.1
"
,
"
moviepy>=2.0.0
"
,
"
msgpack
"
,
"
opencv-python-headless==4.10.0.84
"
,
"
PyYAML==6.0.1
"
,
"
remote-pdb
"
,
"
scikit-image==0.25.2
"
,
"
trimesh>=4.0.0
"
,
"
xatlas
"
,
]
tracing
= [
"
opentelemetry-api
"
,
"
opentelemetry-exporter-otlp
"
,
"
opentelemetry-exporter-otlp-proto-grpc
"
,
"
opentelemetry-sdk
"
,
]
#
Monokernels for gfx950 (--enable-amd-monokernel); the ROCm image checks out this pin too.
monokernels_hip
= [
"
sgl-amd-mono @ git+https://github.com/sgl-project/sgl-amd-mono.git@90c23551a323d5badd5b86c1e92151e319072d87
"
,
]
#
HIP (Heterogeneous-computing Interface for Portability) for AMD
#
=> base docker rocm/vllm-dev:20250114, not from public vllm whl
#
#
srt_hip_rocm724 below is the torch 2.11 variant of this list and differs only
#
in its compressed-tensors and torch pins. A dependency added here has to be
#
added there too; nothing enforces that.
srt_hip
= [
"
sglang[monokernels_hip]
"
,
"
sglang[runtime_common]
"
,
"
torch
"
,
"
petit_kernel==0.0.2
"
,
"
wave-lang==3.8.2
"
,
]
#
Kept in step with srt_hip above by hand; only the two pins below differ.
srt_hip_rocm724
= [
#
ROCm 7.2.4 uses torch 2.11. compressed-tensors 0.15.0 requires
#
torch<2.11, while 0.16.0 supports torch>=2.10.
"
compressed-tensors==0.16.0
"
,
"
petit_kernel==0.0.2
"
,
"
sglang[monokernels_hip]
"
,
"
sglang[runtime_common]
"
,
"
torch==2.11.0
"
,
"
wave-lang==3.8.2
"
,
]
#
Same as srt_hip_rocm724 above except for the torch pin; keep them in step by
#
hand. ROCm 10.1 publishes no torch 2.11 wheel, so it has to be 2.12.
srt_hip_rocm101
= [
"
compressed-tensors==0.16.0
"
,
"
petit_kernel==0.0.2
"
,
"
sglang[runtime_common]
"
,
"
torch==2.12.0
"
,
"
wave-lang==3.8.2
"
,
]
diffusion_hip
= [
"
cache-dit==1.3.0
"
,
"
peft>=0.18.0,<0.19.0
"
,
#
Pin to <0.19.0 due to torchao incompatibility
"
runai_model_streamer>=0.15.5
"
,
"
sglang[diffusion_common]
"
,
"
st_attn==0.0.7
"
,
"
vsa==0.0.4
"
,
]
#
For Intel Gaudi(device : hpu) follow the installation guide
#
https://docs.vllm.ai/en/latest/getting_started/gaudi-installation.html
srt_hpu
= [
"
sglang[runtime_common]
"
]
#
https://docs.sglang.io/hardware-platforms/sail
srt_sail
= [
"
sailify==1.0.0
"
,
"
sglang[runtime_common]
"
,
"
torch-for-sail
"
,
"
triton-for-sail
"
,
]
#
https://docs.sglang.io/platforms/mthreads_gpu.md
srt_musa
= [
"
apache-tvm-ffi==0.1.11.post1+musa.1
"
,
"
deep_ep==1.1.0+musa5.2.0torch2.11.0.post1
"
,
"
deep-gemm==0.2.6+musa
"
,
"
flash_attn_3==0.2.6+musa
"
,
"
flash_mla==0.2.6+musa
"
,
"
flashinfer-python==0.2.6+musa
"
,
"
mate==0.2.6
"
,
"
mate-mubin==0.2.6
"
,
"
mthreads-ml-py
"
,
"
numpy<2.0
"
,
"
sageattention==0.2.6+musa
"
,
"
sglang[runtime_common]
"
,
"
tilelang_musa==0.1.12+musa.2
"
,
"
torch==2.11.0.post1+musa5.2.0
"
,
"
torch-c-dlpack-ext==0.1.5
"
,
"
torch_musa==2.11.0.post1+musa5.2.0
"
,
"
torchada>=0.1.90
"
,
"
torchaudio==2.11.0+musa5.2.0
"
,
"
torchvision==0.26.0.post1+musa5.2.0
"
,
"
triton==3.2.0
"
,
]
diffusion_musa
= [
"
cache-dit==1.1.8
"
,
"
runai_model_streamer>=0.15.5
"
,
"
sglang[diffusion_common]
"
,
"
st_attn==0.0.7
"
,
"
vsa==0.0.4
"
,
]
#
https://docs.sglang.io/hardware-platforms/apple_metal
srt_mps
= [
"
mlx>=0.32.4
"
,
"
mlx-lm
"
,
"
sglang[runtime_common]
"
,
"
torch==2.13.0
"
,
"
torchaudio==2.11.0
"
,
"
torchcodec==0.15.0
"
,
"
torchvision==0.28.0
"
,
]
diffusion_mps
= [
"
addict==2.4.0
"
,
"
av==16.1.0
"
,
"
cache-dit==1.2.3
"
,
"
cloudpickle==3.1.2
"
,
"
remote-pdb==2.1.0
"
,
"
scikit-image==0.25.2
"
,
"
sglang[diffusion_common]
"
,
"
trimesh>=4.0.0
"
,
"
xatlas
"
,
]
test
= [
"
accelerate
"
,
"
pymupdf
"
,
"
expecttest
"
,
"
gguf
"
,
"
jsonlines
"
,
"
matplotlib
"
,
"
pandas
"
,
"
peft>=0.18.0,<0.19.0
"
,
#
Pin to <0.19.0 due to torchao incompatibility
"
pytest
"
,
"
sentence_transformers
"
,
"
sgl-eval==0.1.2
"
,
"
tabulate
"
,
]
all_hip
= [
"
sglang[diffusion_hip]
"
,
"
sglang[srt_hip]
"
,
"
sglang[tracing]
"
]
all_hip_rocm724
= [
"
sglang[diffusion_hip]
"
,
"
sglang[srt_hip_rocm724]
"
,
"
sglang[tracing]
"
]
all_hip_rocm101
= [
"
sglang[diffusion_hip]
"
,
"
sglang[srt_hip_rocm101]
"
,
"
sglang[tracing]
"
]
all_hpu
= [
"
sglang[srt_hpu]
"
]
all_sail
= [
"
sglang[srt_sail]
"
]
all_musa
= [
"
sglang[diffusion_musa]
"
,
"
sglang[srt_musa]
"
]
all_mps
= [
"
sglang[diffusion_mps]
"
,
"
sglang[srt_mps]
"
]
dev_hip
= [
"
sglang[all_hip]
"
,
"
sglang[test]
"
]
dev_hip_rocm724
= [
"
sglang[all_hip_rocm724]
"
,
"
sglang[test]
"
]
dev_hip_rocm101
= [
"
sglang[all_hip_rocm101]
"
,
"
sglang[test]
"
]
dev_hpu
= [
"
sglang[all_hpu]
"
,
"
sglang[test]
"
]
dev_sail
= [
"
sglang[all_sail]
"
,
"
sglang[test]
"
]
dev_musa
= [
"
sglang[all_musa]
"
,
"
sglang[test]
"
]
dev_mps
= [
"
sglang[all_mps]
"
,
"
sglang[test]
"
]
[
project
.
urls
]
"Homepage"
=
"
https://github.com/sgl-project/sglang
"
"Bug Tracker"
=
"
https://github.com/sgl-project/sglang/issues
"
[
project
.
scripts
]
sglang
=
"
sglang.cli.main:main
"
#
Rust extension modules are auto-discovered by setup.py from the cargo
#
workspace in ../rust; this allowlist restricts which of them this platform
#
builds (case-insensitive substrings of the target module). grpc is
#
intentionally omitted here (it needs proto/tonic); ROCm only builds mm.
#
NOTE: setup.py reads this with a line regex, not a TOML parser — keep the
#
assignment on a single line.
[
tool
.
sglang
]
rust-extensions
= [
"
multimodal
"
]
[
tool
.
setuptools
.
package-data
]
"sglang"
= [
"
srt/**/*
"
,
"
kernels/**/*
"
]
[
tool
.
setuptools
.
exclude-package-data
]
#
.claude/skills is a directory symlink; setuptools build_py cannot copy it.
"sglang.multimodal_gen"
= [
"
.claude/*
"
]
[
tool
.
setuptools
.
packages
.
find
]
exclude
= [
"
assets*
"
,
"
benchmark*
"
,
"
docs*
"
,
"
dist*
"
,
"
playground*
"
,
"
scripts*
"
,
"
tests*
"
,
]
[
tool
.
wheel
]
exclude
= [
"
assets*
"
,
"
benchmark*
"
,
"
docs*
"
,
"
dist*
"
,
"
playground*
"
,
"
scripts*
"
,
"
tests*
"
,
]
[
tool
.
setuptools_scm
]
root
=
"
..
"
version_file
=
"
sglang/_version.py
"
git_describe_command
= [
"
python3
"
,
"
scripts/release/get_version_tag.py
"
]
#
Allow editable installs even when .git metadata is not available.
fallback_version
=
"
0.0.0.dev0
"
You can’t perform that action at this time.