pyproject.toml 2.87 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.post1"
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
49
50
51
  "pybase64",
  "pydantic",
  "pynvml",
  "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.0",
67
68
  "uvicorn",
  "uvloop",
69
  "xgrammar==0.1.25",
70
71
  "grpcio==1.75.1", # keep it align with compile_proto.py
  "grpcio-tools==1.75.1" # keep it align with compile_proto.py
Lianmin Zheng's avatar
Lianmin Zheng committed
72
73
74
]

[project.optional-dependencies]
75
decord = ["decord"]
76
77
78
test = [
  "accelerate",
  "expecttest",
79
  "gguf",
80
81
82
83
84
  "jsonlines",
  "matplotlib",
  "pandas",
  "peft",
  "pytest",
85
  "sentence_transformers",
86
  "tabulate",
87
]
88
tracing = [
89
90
91
92
  "opentelemetry-api",
  "opentelemetry-exporter-otlp",
  "opentelemetry-exporter-otlp-proto-grpc",
  "opentelemetry-sdk",
93
]
94
all = ["sglang[test]", "sglang[decord]"]
Lianmin Zheng's avatar
Lianmin Zheng committed
95
96
97
98
99
all_aarch64 = ["sglang[test]"]
dev = ["sglang[test]", "sglang[decord]"]


# The following will be deprecated in 2 weeks
100
101
blackwell = ["sglang[test]", "sglang[decord]"]
blackwell_aarch64 = ["sglang[test]"]
Lianmin Zheng's avatar
Lianmin Zheng committed
102

Lianmin Zheng's avatar
Lianmin Zheng committed
103

Lianmin Zheng's avatar
Lianmin Zheng committed
104
105
106
107
[project.urls]
"Homepage" = "https://github.com/sgl-project/sglang"
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"

yudian0504's avatar
yudian0504 committed
108
[tool.setuptools.package-data]
109
"sglang" = [
110
111
112
  "srt/layers/moe/fused_moe_triton/configs/*/*.json",
  "srt/layers/quantization/configs/*.json",
  "srt/mem_cache/storage/hf3fs/hf3fs_utils.cpp",
113
114
  "srt/speculative/cpp_ngram/*.cpp",
  "srt/speculative/cpp_ngram/*.h",
115
]
yudian0504's avatar
yudian0504 committed
116

Lianmin Zheng's avatar
Lianmin Zheng committed
117
[tool.setuptools.packages.find]
118
exclude = [
119
120
121
122
123
124
125
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
126
]
Lianmin Zheng's avatar
Lianmin Zheng committed
127
128

[tool.wheel]
129
exclude = [
130
131
132
133
134
135
136
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
137
]
138
139
140
141

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