pyproject.toml 3.1 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.3.post2"
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
16
17
  "Programming Language :: Python :: 3",
  "License :: OSI Approved :: Apache Software License",
]
dependencies = [
  "IPython",
18
19
  "aiohttp",
  "anthropic>=0.20.0",
20
21
22
  "blobfile==3.0.0",
  "build",
  "compressed-tensors",
23
  "cuda-python",
24
25
26
  "datasets",
  "einops",
  "fastapi",
27
  "flashinfer_python==0.4.0",
28
29
30
31
32
33
34
  "hf_transfer",
  "huggingface_hub",
  "interegular",
  "llguidance>=0.7.11,<0.8.0",
  "modelscope",
  "msgspec",
  "ninja",
35
36
  "numpy",
  "nvidia-cutlass-dsl==4.2.1",
37
  "openai-harmony==0.0.4",
38
  "openai==1.99.1",
39
40
41
42
43
44
45
  "orjson",
  "outlines==0.1.11",
  "packaging",
  "partial_json_parser",
  "pillow",
  "prometheus-client>=0.20.0",
  "psutil",
46
  "py-spy",
47
48
  "pybase64",
  "pydantic",
49
  "nvidia-ml-py",
50
51
  "python-multipart",
  "pyzmq>=25.1.2",
52
  "requests",
53
54
  "scipy",
  "sentencepiece",
55
  "setproctitle",
56
  "sgl-kernel==0.3.15",
57
58
  "soundfile==0.13.1",
  "tiktoken",
59
60
  "timm==1.0.16",
  "torch==2.8.0",
61
  "torch_memory_saver==0.0.9rc2",
62
  "torchao==0.9.0",
63
64
65
  "torchaudio==2.8.0",
  "torchvision",
  "tqdm",
66
  "transformers==4.57.1",
67
68
  "uvicorn",
  "uvloop",
69
  "xgrammar==0.1.25",
70
  "grpcio==1.75.1", # keep it align with compile_proto.py
71
72
  "grpcio-tools==1.75.1", # keep it align with compile_proto.py
  "grpcio-reflection==1.75.1", # required by srt/entrypoints/grpc_server.py
Lianmin Zheng's avatar
Lianmin Zheng committed
73
74
75
]

[project.optional-dependencies]
76
decord = ["decord2"]
77
78
79
test = [
  "accelerate",
  "expecttest",
80
  "gguf",
81
82
83
84
85
  "jsonlines",
  "matplotlib",
  "pandas",
  "peft",
  "pytest",
86
  "sentence_transformers",
87
  "tabulate",
88
]
89
tracing = [
90
91
92
93
  "opentelemetry-api",
  "opentelemetry-exporter-otlp",
  "opentelemetry-exporter-otlp-proto-grpc",
  "opentelemetry-sdk",
94
]
95
all = ["sglang[test]", "sglang[decord]"]
96
97
98
99
100
101
102
103
104
105
cu130 = [
  "torch==2.9.0",
  "torchaudio==2.9.0",
  "torchvision==0.24.0",
]
cu130_all = [
  "sglang[test]",
  "sglang[decord]",
  "sglang[cu130]"
]
Lianmin Zheng's avatar
Lianmin Zheng committed
106
107
108


# The following will be deprecated in 2 weeks
109
110
dev = ["sglang[test]", "sglang[decord]"]
all_aarch64 = ["sglang[test]"]
111
112
blackwell = ["sglang[test]", "sglang[decord]"]
blackwell_aarch64 = ["sglang[test]"]
Lianmin Zheng's avatar
Lianmin Zheng committed
113

Lianmin Zheng's avatar
Lianmin Zheng committed
114

Lianmin Zheng's avatar
Lianmin Zheng committed
115
116
117
118
[project.urls]
"Homepage" = "https://github.com/sgl-project/sglang"
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"

yudian0504's avatar
yudian0504 committed
119
[tool.setuptools.package-data]
120
"sglang" = [
121
122
123
  "srt/layers/moe/fused_moe_triton/configs/*/*.json",
  "srt/layers/quantization/configs/*.json",
  "srt/mem_cache/storage/hf3fs/hf3fs_utils.cpp",
124
125
  "srt/speculative/cpp_ngram/*.cpp",
  "srt/speculative/cpp_ngram/*.h",
126
]
yudian0504's avatar
yudian0504 committed
127

Lianmin Zheng's avatar
Lianmin Zheng committed
128
[tool.setuptools.packages.find]
129
exclude = [
130
131
132
133
134
135
136
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
137
]
Lianmin Zheng's avatar
Lianmin Zheng committed
138
139

[tool.wheel]
140
exclude = [
141
142
143
144
145
146
147
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
148
]
149
150
151
152

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