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.post3"
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
  "flashinfer_python==0.4.1",
30
31
32
33
34
35
36
  "hf_transfer",
  "huggingface_hub",
  "interegular",
  "llguidance>=0.7.11,<0.8.0",
  "modelscope",
  "msgspec",
  "ninja",
37
38
  "numpy",
  "nvidia-cutlass-dsl==4.2.1",
39
  "openai-harmony==0.0.4",
40
  "openai==1.99.1",
41
42
43
44
45
46
47
  "orjson",
  "outlines==0.1.11",
  "packaging",
  "partial_json_parser",
  "pillow",
  "prometheus-client>=0.20.0",
  "psutil",
48
  "py-spy",
49
50
  "pybase64",
  "pydantic",
51
  "nvidia-ml-py",
52
53
  "python-multipart",
  "pyzmq>=25.1.2",
54
  "requests",
55
56
  "scipy",
  "sentencepiece",
57
  "setproctitle",
58
  "sgl-kernel==0.3.16.post3",
59
60
  "soundfile==0.13.1",
  "tiktoken",
61
62
  "timm==1.0.16",
  "torch==2.8.0",
63
  "torch_memory_saver==0.0.9",
64
  "torchao==0.9.0",
65
66
67
  "torchaudio==2.8.0",
  "torchvision",
  "tqdm",
68
  "transformers==4.57.1",
69
70
  "uvicorn",
  "uvloop",
71
  "xgrammar==0.1.25",
72
  "grpcio==1.75.1", # keep it align with compile_proto.py
73
74
  "grpcio-tools==1.75.1", # keep it align with compile_proto.py
  "grpcio-reflection==1.75.1", # required by srt/entrypoints/grpc_server.py
75
  "grpcio-health-checking==1.75.1", # required for Kubernetes gRPC health probes
Lianmin Zheng's avatar
Lianmin Zheng committed
76
77
78
]

[project.optional-dependencies]
79
modelopt = ["nvidia-modelopt"]
80
81
82
test = [
  "accelerate",
  "expecttest",
83
  "gguf",
84
85
86
87
88
  "jsonlines",
  "matplotlib",
  "pandas",
  "peft",
  "pytest",
89
  "sentence_transformers",
90
  "tabulate",
91
]
92
93
94
95
all = []
dev = ["sglang[test]"]

# Temporary tags
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]"
]
106
107
108
109
110
111
tracing = [
  "opentelemetry-api",
  "opentelemetry-exporter-otlp",
  "opentelemetry-exporter-otlp-proto-grpc",
  "opentelemetry-sdk",
]
Lianmin Zheng's avatar
Lianmin Zheng committed
112

113
114
115
# To be deprecated in 2 weeks
blackwell = ["sglang[dev]"]
blackwell_aarch64 = ["sglang[dev]"]
Lianmin Zheng's avatar
Lianmin Zheng committed
116

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

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

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

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

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