"sgl-kernel/git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "8e776c78a1976c97abd4f6b68ad46a821c119704"
index.rst 2.69 KB
Newer Older
1
SGLang Documentation
2
====================
3

4
5
6
SGLang is a fast serving framework for large language models and vision language models.
It makes your interaction with models faster and more controllable by co-designing the backend runtime and frontend language.
The core features include:
7

Lianmin Zheng's avatar
Lianmin Zheng committed
8
- **Fast Backend Runtime**: Provides efficient serving with RadixAttention for prefix caching, jump-forward constrained decoding, overhead-free CPU scheduler, continuous batching, token attention (paged attention), tensor parallelism, FlashInfer kernels, chunked prefill, and quantization (FP8/INT4/AWQ/GPTQ).
9
- **Flexible Frontend Language**: Offers an intuitive interface for programming LLM applications, including chained generation calls, advanced prompting, control flow, multi-modal inputs, parallelism, and external interactions.
Chayenne's avatar
Chayenne committed
10
- **Extensive Model Support**: Supports a wide range of generative models (Llama, Gemma, Mistral, QWen, DeepSeek, LLaVA, etc.), embedding models (e5-mistral, gte) and reward models (Skywork), with easy extensibility for integrating new models.
11
- **Active Community**: SGLang is open-source and backed by an active community with industry adoption.
12

13
14
.. toctree::
   :maxdepth: 1
15
   :caption: Getting Started
16

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

.. toctree::
   :maxdepth: 1
   :caption: Backend Tutorial
Lianmin Zheng's avatar
Lianmin Zheng committed
22

23
   backend/send_request.ipynb
24
25
   backend/openai_api_completions.ipynb
   backend/openai_api_vision.ipynb
Lianmin Zheng's avatar
Lianmin Zheng committed
26
   backend/openai_api_embeddings.ipynb
Chayenne's avatar
Chayenne committed
27
   backend/native_api.ipynb
Chayenne's avatar
Chayenne committed
28
   backend/offline_engine_api.ipynb
29
   backend/structured_outputs.ipynb
30
   backend/speculative_decoding.ipynb
31
   backend/function_calling.ipynb
32
   backend/server_arguments.md
Chayenne's avatar
Chayenne committed
33
34
35
36

.. toctree::
   :maxdepth: 1
   :caption: Frontend Tutorial
Lianmin Zheng's avatar
Lianmin Zheng committed
37

Chayenne's avatar
Chayenne committed
38
   frontend/frontend.md
Lianmin Zheng's avatar
Lianmin Zheng committed
39
   frontend/choices_methods.md
40

41
42
43
44
45
46
47
.. toctree::
   :maxdepth: 1
   :caption: SGLang Router

   router/router.md


48
49
50
51
52
References
==========

General
---------------------
53
54
55
.. toctree::
   :maxdepth: 1

Lianmin Zheng's avatar
Lianmin Zheng committed
56
   references/supported_models.md
57
58
59
60
61
62
63
64
65
66
67
   references/contribution_guide.md
   references/troubleshooting.md
   references/faq.md
   references/learn_more.md

Hardware
--------------------------
.. toctree::
   :maxdepth: 1

   references/AMD.md
68
   references/amd_configure.md
69
70
71
72
73
74
75
   references/nvidia_jetson.md

Advanced Models & Deployment
------------------------------
.. toctree::
   :maxdepth: 1

76
   references/deepseek.md
77
   references/multi_node.md
78
   references/multi_node_inference_k8s_lws.md
79
   references/modelscope.md
80
81
82
83
84
85
86
87
88
89
90

Performance & Tuning
--------------------
.. toctree::
   :maxdepth: 1

   references/sampling_params.md
   references/hyperparameter_tuning.md
   references/benchmark_and_profiling.md
   references/accuracy_evaluation.md
   references/custom_chat_template.md
91
   references/quantization.md