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

[project.optional-dependencies]
82
checkpoint-engine = ["checkpoint-engine==0.1.2"]
83
84
85
86
87
88
89
90
test = [
  "accelerate",
  "expecttest",
  "jsonlines",
  "matplotlib",
  "pandas",
  "peft",
  "pytest",
91
  "sentence_transformers",
92
  "tabulate",
93
]
94
dev = ["sglang[test]"]
95
96
97
98
99
100
tracing = [
  "opentelemetry-api",
  "opentelemetry-exporter-otlp",
  "opentelemetry-exporter-otlp-proto-grpc",
  "opentelemetry-sdk",
]
Lianmin Zheng's avatar
Lianmin Zheng committed
101

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

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

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

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

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