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"
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.0rc3",
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.14.post1",
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
79
80
81
82
83
test = [
  "accelerate",
  "expecttest",
  "jsonlines",
  "matplotlib",
  "pandas",
  "peft",
  "pytest",
84
  "sentence_transformers",
85
  "tabulate",
86
]
87
88
89
90
tracing = [
    "opentelemetry-api",
    "opentelemetry-exporter-otlp",
    "opentelemetry-exporter-otlp-proto-grpc",
91
    "opentelemetry-sdk",
92
]
93
all = ["sglang[test]", "sglang[decord]"]
Lianmin Zheng's avatar
Lianmin Zheng committed
94
95
96
97
98
all_aarch64 = ["sglang[test]"]
dev = ["sglang[test]", "sglang[decord]"]


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

Lianmin Zheng's avatar
Lianmin Zheng committed
102

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

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

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

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

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