pyproject.toml 2.7 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"
Yineng Zhang's avatar
Yineng Zhang committed
7
version = "0.5.3rc0"
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
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
  "Programming Language :: Python :: 3",
  "License :: OSI Approved :: Apache Software License",
]
dependencies = [
  "aiohttp",
  "requests",
  "tqdm",
  "numpy",
  "IPython",
  "setproctitle",
  "blobfile==3.0.0",
  "build",
  "compressed-tensors",
  "datasets",
  "einops",
  "fastapi",
  "hf_transfer",
  "huggingface_hub",
  "interegular",
  "llguidance>=0.7.11,<0.8.0",
  "modelscope",
  "msgspec",
  "ninja",
  "openai==1.99.1",
  "openai-harmony==0.0.4",
  "orjson",
  "outlines==0.1.11",
  "packaging",
  "partial_json_parser",
  "pillow",
  "prometheus-client>=0.20.0",
  "psutil",
  "pybase64",
  "pydantic",
  "pynvml",
  "python-multipart",
  "pyzmq>=25.1.2",
  "scipy",
  "sentencepiece",
  "soundfile==0.13.1",
  "timm==1.0.16",
  "tiktoken",
  "torchao==0.9.0",
  "transformers==4.56.1",
  "uvicorn",
  "uvloop",
  "xgrammar==0.1.24",
60
  "sgl-kernel==0.3.11",
61
62
63
64
  "torch==2.8.0",
  "torchaudio==2.8.0",
  "torchvision",
  "cuda-python",
65
  "flashinfer_python==0.4.0rc1",
66
67
68
69
  "openai==1.99.1",
  "tiktoken",
  "anthropic>=0.20.0",
  "torch_memory_saver==0.0.8",
70
  "nvidia-cutlass-dsl==4.2.0",
Lianmin Zheng's avatar
Lianmin Zheng committed
71
72
73
]

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

Lianmin Zheng's avatar
Lianmin Zheng committed
97
98
99
100
[project.urls]
"Homepage" = "https://github.com/sgl-project/sglang"
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"

yudian0504's avatar
yudian0504 committed
101
[tool.setuptools.package-data]
102
"sglang" = [
103
104
105
  "srt/layers/moe/fused_moe_triton/configs/*/*.json",
  "srt/layers/quantization/configs/*.json",
  "srt/mem_cache/storage/hf3fs/hf3fs_utils.cpp",
106
107
  "srt/speculative/cpp_lookahead/*.cpp",
  "srt/speculative/cpp_lookahead/*.h",
108
]
yudian0504's avatar
yudian0504 committed
109

Lianmin Zheng's avatar
Lianmin Zheng committed
110
[tool.setuptools.packages.find]
111
exclude = [
112
113
114
115
116
117
118
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
119
]
Lianmin Zheng's avatar
Lianmin Zheng committed
120
121

[tool.wheel]
122
exclude = [
123
124
125
126
127
128
129
  "assets*",
  "benchmark*",
  "docs*",
  "dist*",
  "playground*",
  "scripts*",
  "tests*",
130
]
131
132
133
134

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