2024-01-08 04:37:50 +00:00
|
|
|
[build-system]
|
2025-03-24 09:50:28 -07:00
|
|
|
requires = ["setuptools>=61.0", "wheel"]
|
2024-01-08 04:37:50 +00:00
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "sglang"
|
2025-10-16 13:14:55 -07:00
|
|
|
version = "0.5.3.post3"
|
2025-09-11 16:09:20 -07:00
|
|
|
description = "SGLang is a fast serving framework for large language models and vision language models."
|
2024-01-08 04:37:50 +00:00
|
|
|
readme = "README.md"
|
2025-08-09 00:30:23 -07:00
|
|
|
requires-python = ">=3.10"
|
2024-10-21 15:01:21 -07:00
|
|
|
license = { file = "LICENSE" }
|
2024-01-08 04:37:50 +00:00
|
|
|
classifiers = [
|
2025-09-15 03:09:17 -07:00
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"License :: OSI Approved :: Apache Software License",
|
|
|
|
|
]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"IPython",
|
2025-10-01 13:03:07 -07:00
|
|
|
"aiohttp",
|
|
|
|
|
"anthropic>=0.20.0",
|
2025-09-15 03:09:17 -07:00
|
|
|
"blobfile==3.0.0",
|
|
|
|
|
"build",
|
|
|
|
|
"compressed-tensors",
|
2025-10-01 13:03:07 -07:00
|
|
|
"cuda-python",
|
2025-09-15 03:09:17 -07:00
|
|
|
"datasets",
|
|
|
|
|
"einops",
|
|
|
|
|
"fastapi",
|
2025-10-09 14:17:54 -07:00
|
|
|
"flashinfer_python==0.4.0",
|
2025-09-15 03:09:17 -07:00
|
|
|
"hf_transfer",
|
|
|
|
|
"huggingface_hub",
|
|
|
|
|
"interegular",
|
|
|
|
|
"llguidance>=0.7.11,<0.8.0",
|
|
|
|
|
"modelscope",
|
|
|
|
|
"msgspec",
|
|
|
|
|
"ninja",
|
2025-10-01 13:03:07 -07:00
|
|
|
"numpy",
|
|
|
|
|
"nvidia-cutlass-dsl==4.2.1",
|
2025-09-15 03:09:17 -07:00
|
|
|
"openai-harmony==0.0.4",
|
2025-10-01 13:03:07 -07:00
|
|
|
"openai==1.99.1",
|
2025-09-15 03:09:17 -07:00
|
|
|
"orjson",
|
|
|
|
|
"outlines==0.1.11",
|
|
|
|
|
"packaging",
|
|
|
|
|
"partial_json_parser",
|
|
|
|
|
"pillow",
|
|
|
|
|
"prometheus-client>=0.20.0",
|
|
|
|
|
"psutil",
|
2025-10-01 13:03:07 -07:00
|
|
|
"py-spy",
|
2025-09-15 03:09:17 -07:00
|
|
|
"pybase64",
|
|
|
|
|
"pydantic",
|
2025-10-13 22:03:31 +02:00
|
|
|
"nvidia-ml-py",
|
2025-09-15 03:09:17 -07:00
|
|
|
"python-multipart",
|
|
|
|
|
"pyzmq>=25.1.2",
|
2025-10-01 13:03:07 -07:00
|
|
|
"requests",
|
2025-09-15 03:09:17 -07:00
|
|
|
"scipy",
|
|
|
|
|
"sentencepiece",
|
2025-10-01 13:03:07 -07:00
|
|
|
"setproctitle",
|
2025-10-08 00:54:20 -07:00
|
|
|
"sgl-kernel==0.3.15",
|
2025-09-15 03:09:17 -07:00
|
|
|
"soundfile==0.13.1",
|
|
|
|
|
"tiktoken",
|
2025-10-01 13:03:07 -07:00
|
|
|
"timm==1.0.16",
|
|
|
|
|
"torch==2.8.0",
|
2025-10-06 11:26:20 +08:00
|
|
|
"torch_memory_saver==0.0.9rc2",
|
2025-09-15 03:09:17 -07:00
|
|
|
"torchao==0.9.0",
|
2025-10-01 13:03:07 -07:00
|
|
|
"torchaudio==2.8.0",
|
|
|
|
|
"torchvision",
|
|
|
|
|
"tqdm",
|
2025-10-14 18:35:05 -07:00
|
|
|
"transformers==4.57.1",
|
2025-09-15 03:09:17 -07:00
|
|
|
"uvicorn",
|
|
|
|
|
"uvloop",
|
2025-10-08 09:22:28 +08:00
|
|
|
"xgrammar==0.1.25",
|
2025-10-04 09:58:28 -04:00
|
|
|
"grpcio==1.75.1", # keep it align with compile_proto.py
|
2025-10-13 09:32:42 -07:00
|
|
|
"grpcio-tools==1.75.1", # keep it align with compile_proto.py
|
|
|
|
|
"grpcio-reflection==1.75.1", # required by srt/entrypoints/grpc_server.py
|
2024-01-08 04:37:50 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
2025-10-13 22:03:31 +02:00
|
|
|
decord = ["decord2"]
|
2025-09-15 03:09:17 -07:00
|
|
|
test = [
|
|
|
|
|
"accelerate",
|
|
|
|
|
"expecttest",
|
2025-10-12 06:46:36 -07:00
|
|
|
"gguf",
|
2025-09-15 03:09:17 -07:00
|
|
|
"jsonlines",
|
|
|
|
|
"matplotlib",
|
|
|
|
|
"pandas",
|
|
|
|
|
"peft",
|
|
|
|
|
"pytest",
|
2025-10-01 13:03:07 -07:00
|
|
|
"sentence_transformers",
|
2025-09-15 03:09:17 -07:00
|
|
|
"tabulate",
|
2025-01-07 02:52:53 -08:00
|
|
|
]
|
2025-09-15 02:08:02 +08:00
|
|
|
tracing = [
|
2025-10-12 06:46:36 -07:00
|
|
|
"opentelemetry-api",
|
|
|
|
|
"opentelemetry-exporter-otlp",
|
|
|
|
|
"opentelemetry-exporter-otlp-proto-grpc",
|
|
|
|
|
"opentelemetry-sdk",
|
2025-09-15 02:08:02 +08:00
|
|
|
]
|
2025-09-16 02:00:53 -07:00
|
|
|
all = ["sglang[test]", "sglang[decord]"]
|
2025-10-13 22:03:31 +02:00
|
|
|
cu130 = [
|
|
|
|
|
"torch==2.9.0",
|
|
|
|
|
"torchaudio==2.9.0",
|
|
|
|
|
"torchvision==0.24.0",
|
|
|
|
|
]
|
|
|
|
|
cu130_all = [
|
|
|
|
|
"sglang[test]",
|
|
|
|
|
"sglang[decord]",
|
|
|
|
|
"sglang[cu130]"
|
|
|
|
|
]
|
2025-10-05 18:05:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# The following will be deprecated in 2 weeks
|
2025-10-13 22:03:31 +02:00
|
|
|
dev = ["sglang[test]", "sglang[decord]"]
|
|
|
|
|
all_aarch64 = ["sglang[test]"]
|
2025-09-19 16:56:49 -07:00
|
|
|
blackwell = ["sglang[test]", "sglang[decord]"]
|
|
|
|
|
blackwell_aarch64 = ["sglang[test]"]
|
2025-10-05 18:05:41 -07:00
|
|
|
|
2024-01-08 04:37:50 +00:00
|
|
|
|
2024-01-15 01:15:53 -08:00
|
|
|
[project.urls]
|
|
|
|
|
"Homepage" = "https://github.com/sgl-project/sglang"
|
|
|
|
|
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"
|
|
|
|
|
|
2024-12-27 00:16:48 +08:00
|
|
|
[tool.setuptools.package-data]
|
2025-03-03 00:12:04 -08:00
|
|
|
"sglang" = [
|
2025-09-15 03:09:17 -07:00
|
|
|
"srt/layers/moe/fused_moe_triton/configs/*/*.json",
|
|
|
|
|
"srt/layers/quantization/configs/*.json",
|
|
|
|
|
"srt/mem_cache/storage/hf3fs/hf3fs_utils.cpp",
|
2025-09-29 12:06:59 +08:00
|
|
|
"srt/speculative/cpp_ngram/*.cpp",
|
|
|
|
|
"srt/speculative/cpp_ngram/*.h",
|
2025-03-03 00:12:04 -08:00
|
|
|
]
|
2024-12-27 00:16:48 +08:00
|
|
|
|
2024-01-08 04:37:50 +00:00
|
|
|
[tool.setuptools.packages.find]
|
2024-10-21 15:01:21 -07:00
|
|
|
exclude = [
|
2025-09-15 03:09:17 -07:00
|
|
|
"assets*",
|
|
|
|
|
"benchmark*",
|
|
|
|
|
"docs*",
|
|
|
|
|
"dist*",
|
|
|
|
|
"playground*",
|
|
|
|
|
"scripts*",
|
|
|
|
|
"tests*",
|
2024-10-21 15:01:21 -07:00
|
|
|
]
|
2024-01-08 04:37:50 +00:00
|
|
|
|
|
|
|
|
[tool.wheel]
|
2024-10-21 15:01:21 -07:00
|
|
|
exclude = [
|
2025-09-15 03:09:17 -07:00
|
|
|
"assets*",
|
|
|
|
|
"benchmark*",
|
|
|
|
|
"docs*",
|
|
|
|
|
"dist*",
|
|
|
|
|
"playground*",
|
|
|
|
|
"scripts*",
|
|
|
|
|
"tests*",
|
2024-10-21 15:01:21 -07:00
|
|
|
]
|
2025-05-11 00:55:00 -04:00
|
|
|
|
|
|
|
|
[tool.codespell]
|
|
|
|
|
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
|
|
|
|
|
skip = "*.json,*.jsonl,*.patch,*.txt"
|