index.rst 1.96 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

8
9
- **Fast Backend Runtime**: Provides efficient serving with RadixAttention for prefix caching, jump-forward constrained decoding, continuous batching, token attention (paged attention), tensor parallelism, FlashInfer kernels, chunked prefill, and quantization (INT4/FP8/AWQ/GPTQ).
- **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

Lianmin Zheng's avatar
Lianmin Zheng committed
13

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

Lianmin Zheng's avatar
Lianmin Zheng committed
18
19
   start/install.md
   start/send_request.ipynb
Lianmin Zheng's avatar
Lianmin Zheng committed
20

Chayenne's avatar
Chayenne committed
21
22
23
24

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

26
27
   backend/openai_api_completions.ipynb
   backend/openai_api_vision.ipynb
Lianmin Zheng's avatar
Lianmin Zheng committed
28
   backend/openai_api_embeddings.ipynb
Chayenne's avatar
Chayenne committed
29
   backend/native_api.ipynb
Chayenne's avatar
Chayenne committed
30
   backend/offline_engine_api.ipynb
Chayenne's avatar
Chayenne committed
31
   backend/backend.md
Chayenne's avatar
Chayenne committed
32
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
39

Lianmin Zheng's avatar
Lianmin Zheng committed
40

41
42
.. toctree::
   :maxdepth: 1
43
   :caption: References
44

Chayenne's avatar
Chayenne committed
45
46
47
48
   references/sampling_params.md
   references/hyperparameter_tuning.md
   references/model_support.md
   references/benchmark_and_profiling.md
Lianmin Zheng's avatar
Lianmin Zheng committed
49
   references/choices_methods.md
50
   references/custom_chat_template.md
Lianmin Zheng's avatar
Lianmin Zheng committed
51
52
   references/contributor_guide.md
   references/troubleshooting.md
53
   references/faq.md
Chayenne's avatar
Chayenne committed
54
   references/learn_more.md