index.rst 1.63 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
10
- **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.
- **Extensive Model Support**: Supports a wide range of generative models (Llama 3, Gemma 2, Mistral, QWen, DeepSeek, LLaVA, etc.) and embedding models (e5-mistral), 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
18

   install.md
Chayenne's avatar
Chayenne committed
19
   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

Chayenne's avatar
Chayenne committed
26
   openai_api.ipynb
27
   backend.md
Chayenne's avatar
Chayenne committed
28
29
30
31
32


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

34
   frontend.md
35

Lianmin Zheng's avatar
Lianmin Zheng committed
36

37
38
.. toctree::
   :maxdepth: 1
39
   :caption: References
40

41
   sampling_params.md
42
43
   hyperparameter_tuning.md
   model_support.md
44
45
46
47
   contributor_guide.md
   choices_methods.md
   benchmark_and_profiling.md
   troubleshooting.md
Chayenne's avatar
Chayenne committed
48
   embedding_model.ipynb
Lianmin Zheng's avatar
Lianmin Zheng committed
49
   learn_more.md