index.rst 4.03 KB
Newer Older
1
SGLang Documentation
2
====================
3

4
5
6
SGLang is a high-performance serving framework for large language models and vision-language models.
It is designed to deliver low-latency and high-throughput inference across a wide range of setups, from a single GPU to large distributed clusters.
Its core features include:
7

8
9
10
11
12
- **Fast Backend Runtime**: Provides efficient serving with RadixAttention for prefix caching, a zero-overhead CPU scheduler, prefill-decode disaggregation, speculative decoding, continuous batching, paged attention, tensor/pipeline/expert/data parallelism, structured outputs, chunked prefill, quantization (FP4/FP8/INT4/AWQ/GPTQ), and multi-LoRA batching.
- **Extensive Model Support**: Supports a wide range of generative models (Llama, Qwen, DeepSeek, Kimi, GLM, GPT, Gemma, Mistral, etc.), embedding models (e5-mistral, gte, mcdse), and reward models (Skywork), with easy extensibility for integrating new models. Compatible with most Hugging Face models and OpenAI APIs.
- **Extensive Hardware Support**: Runs on NVIDIA GPUs (GB200/B300/H100/A100/Spark), AMD GPUs (MI355/MI300), Intel Xeon CPUs, Google TPUs, Ascend NPUs, and more.
- **Flexible Frontend Language**: Offers an intuitive interface for programming LLM applications, supporting chained generation calls, advanced prompting, control flow, multi-modal inputs, parallelism, and external interactions.
- **Active Community**: SGLang is open-source and supported by a vibrant community with widespread industry adoption, powering over 300,000 GPUs worldwide.
13

14
15
.. toctree::
   :maxdepth: 1
Lianmin Zheng's avatar
Lianmin Zheng committed
16
   :caption: Get Started
17

Lianmin Zheng's avatar
Lianmin Zheng committed
18
   get_started/install.md
Chayenne's avatar
Chayenne committed
19
20
21

.. toctree::
   :maxdepth: 1
Lianmin Zheng's avatar
Lianmin Zheng committed
22
   :caption: Basic Usage
Lianmin Zheng's avatar
Lianmin Zheng committed
23

Lianmin Zheng's avatar
Lianmin Zheng committed
24
25
26
27
28
29
   basic_usage/send_request.ipynb
   basic_usage/openai_api.rst
   basic_usage/offline_engine_api.ipynb
   basic_usage/native_api.ipynb
   basic_usage/sampling_params.md
   basic_usage/deepseek.md
30
   basic_usage/deepseek_v32.md
Lianmin Zheng's avatar
Lianmin Zheng committed
31
32
   basic_usage/gpt_oss.md
   basic_usage/llama4.md
Yi Zhang's avatar
Yi Zhang committed
33
   basic_usage/qwen3.md
34
35
36

.. toctree::
   :maxdepth: 1
Lianmin Zheng's avatar
Lianmin Zheng committed
37
   :caption: Advanced Features
38

Lianmin Zheng's avatar
Lianmin Zheng committed
39
40
   advanced_features/server_arguments.md
   advanced_features/hyperparameter_tuning.md
41
   advanced_features/attention_backend.md
Lianmin Zheng's avatar
Lianmin Zheng committed
42
43
44
   advanced_features/speculative_decoding.ipynb
   advanced_features/structured_outputs.ipynb
   advanced_features/structured_outputs_for_reasoning_models.ipynb
45
   advanced_features/tool_parser.ipynb
Lianmin Zheng's avatar
Lianmin Zheng committed
46
47
48
49
   advanced_features/separate_reasoning.ipynb
   advanced_features/quantization.md
   advanced_features/lora.ipynb
   advanced_features/pd_disaggregation.md
50
   advanced_features/hicache.rst
51
   advanced_features/pd_multiplexing.md
Lianmin Zheng's avatar
Lianmin Zheng committed
52
53
   advanced_features/vlm_query.ipynb
   advanced_features/router.md
54
   advanced_features/deterministic_inference.md
Lianmin Zheng's avatar
Lianmin Zheng committed
55
   advanced_features/observability.md
56
   advanced_features/checkpoint_engine.md
57

58
59
60
61
62
.. toctree::
   :maxdepth: 1
   :caption: Supported Models

   supported_models/generative_models.md
63
   supported_models/multimodal_language_models.md
64
65
   supported_models/embedding_models.md
   supported_models/reward_models.md
Lianmin Zheng's avatar
Lianmin Zheng committed
66
   supported_models/rerank_models.md
67
   supported_models/support_new_models.md
68
   supported_models/transformers_fallback.md
Lianmin Zheng's avatar
Lianmin Zheng committed
69
   supported_models/modelscope.md
70

71
72
.. toctree::
   :maxdepth: 1
Lianmin Zheng's avatar
Lianmin Zheng committed
73
   :caption: Hardware Platforms
74

Lianmin Zheng's avatar
Lianmin Zheng committed
75
76
77
78
79
80
   platforms/amd_gpu.md
   platforms/blackwell_gpu.md
   platforms/cpu_server.md
   platforms/tpu.md
   platforms/nvidia_jetson.md
   platforms/ascend_npu.md
81
   platforms/xpu.md
Chayenne's avatar
Chayenne committed
82
83
84

.. toctree::
   :maxdepth: 1
Lianmin Zheng's avatar
Lianmin Zheng committed
85
   :caption: Developer Guide
Lianmin Zheng's avatar
Lianmin Zheng committed
86

Lianmin Zheng's avatar
Lianmin Zheng committed
87
88
89
   developer_guide/contribution_guide.md
   developer_guide/development_guide_using_docker.md
   developer_guide/benchmark_and_profiling.md
90
   developer_guide/bench_serving.md
91

92
93
.. toctree::
   :maxdepth: 1
Lianmin Zheng's avatar
Lianmin Zheng committed
94
95
96
97
98
   :caption: References

   references/faq.md
   references/environment_variables.md
   references/production_metrics.md
99
   references/production_request_trace.md
100
   references/multi_node_deployment/multi_node_index.rst
Lianmin Zheng's avatar
Lianmin Zheng committed
101
102
103
   references/custom_chat_template.md
   references/frontend/frontend_index.rst
   references/learn_more.md
104
105
106
107
108
109

.. toctree::
   :maxdepth: 1
   :caption: Security Acknowledgement

   security/acknowledgements.md