index.md 4.95 KB
Newer Older
1
# Welcome to vLLM
2

3
:::{figure} ./assets/logos/vllm-logo-text-light.png
4
5
6
7
:align: center
:alt: vLLM
:class: no-scaled-link
:width: 60%
8
:::
9

10
:::{raw} html
11
12
13
14
15
16
17
18
19
20
21
<p style="text-align:center">
<strong>Easy, fast, and cheap LLM serving for everyone
</strong>
</p>

<p style="text-align:center">
<script async defer src="https://buttons.github.io/buttons.js"></script>
<a class="github-button" href="https://github.com/vllm-project/vllm" data-show-count="true" data-size="large" aria-label="Star">Star</a>
<a class="github-button" href="https://github.com/vllm-project/vllm/subscription" data-icon="octicon-eye" data-size="large" aria-label="Watch">Watch</a>
<a class="github-button" href="https://github.com/vllm-project/vllm/fork" data-icon="octicon-repo-forked" data-size="large" aria-label="Fork">Fork</a>
</p>
22
:::
23
24
25

vLLM is a fast and easy-to-use library for LLM inference and serving.

26
Originally developed in the [Sky Computing Lab](https://sky.cs.berkeley.edu) at UC Berkeley, vLLM has evolved into a community-driven project with contributions from both academia and industry.
27

28
29
30
vLLM is fast with:

- State-of-the-art serving throughput
31
- Efficient management of attention key and value memory with [**PagedAttention**](https://blog.vllm.ai/2023/06/20/vllm.html)
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- Continuous batching of incoming requests
- Fast model execution with CUDA/HIP graph
- Quantization: [GPTQ](https://arxiv.org/abs/2210.17323), [AWQ](https://arxiv.org/abs/2306.00978), INT4, INT8, and FP8
- Optimized CUDA kernels, including integration with FlashAttention and FlashInfer.
- Speculative decoding
- Chunked prefill

vLLM is flexible and easy to use with:

- Seamless integration with popular HuggingFace models
- High-throughput serving with various decoding algorithms, including *parallel sampling*, *beam search*, and more
- Tensor parallelism and pipeline parallelism support for distributed inference
- Streaming outputs
- OpenAI-compatible API server
46
- Support NVIDIA GPUs, AMD CPUs and GPUs, Intel CPUs, Gaudi® accelerators and GPUs, IBM Power CPUs, TPU, and AWS Trainium and Inferentia Accelerators.
47
48
49
50
51
52
53
54
- Prefix caching support
- Multi-lora support

For more information, check out the following:

- [vLLM announcing blog post](https://vllm.ai) (intro to PagedAttention)
- [vLLM paper](https://arxiv.org/abs/2309.06180) (SOSP 2023)
- [How continuous batching enables 23x throughput in LLM inference while reducing p50 latency](https://www.anyscale.com/blog/continuous-batching-llm-inference) by Cade Daniel et al.
55
- [vLLM Meetups](#meetups)
56
57
58

## Documentation

59
60
% How to start using vLLM?

61
:::{toctree}
62
63
64
:caption: Getting Started
:maxdepth: 1

65
getting_started/installation
66
67
getting_started/quickstart
getting_started/examples/examples_index
68
69
getting_started/troubleshooting
getting_started/faq
Jennifer Zhao's avatar
Jennifer Zhao committed
70
71
getting_started/v1_user_guide

72
:::
73

74
75
% What does vLLM support?

76
:::{toctree}
77
78
79
:caption: Models
:maxdepth: 1

80
models/supported_models
81
82
models/generative_models
models/pooling_models
83
models/extensions/index
84
:::
85

86
87
% Additional capabilities

88
:::{toctree}
89
:caption: Features
90
91
:maxdepth: 1

92
features/quantization/index
93
94
features/multimodal_inputs
features/prompt_embeds
95
96
features/lora
features/tool_calling
97
features/reasoning_outputs
98
99
100
101
102
features/structured_outputs
features/automatic_prefix_caching
features/disagg_prefill
features/spec_decode
features/compatibility_matrix
103
:::
104

105
106
% Details about running vLLM

107
108
109
110
111
:::{toctree}
:caption: Training
:maxdepth: 1

training/trl.md
Harry Mellor's avatar
Harry Mellor committed
112
training/rlhf.md
113
114
115

:::

116
:::{toctree}
117
118
119
120
121
:caption: Inference and Serving
:maxdepth: 1

serving/offline_inference
serving/openai_compatible_server
122
serving/serve_args
123
124
125
126
127
128
serving/distributed_serving
serving/metrics
serving/engine_args
serving/env_vars
serving/usage_stats
serving/integrations/index
129
:::
130

131
132
% Scaling up vLLM for production

133
:::{toctree}
134
135
136
:caption: Deployment
:maxdepth: 1

137
deployment/security
138
139
140
141
142
deployment/docker
deployment/k8s
deployment/nginx
deployment/frameworks/index
deployment/integrations/index
143
:::
144

145
146
% Making the most out of vLLM

147
:::{toctree}
148
149
150
:caption: Performance
:maxdepth: 1

151
performance/optimization
152
performance/benchmarks
153
:::
154

155
% Explanation of vLLM internals
156

157
:::{toctree}
158
:caption: Design Documents
159
160
161
162
163
164
:maxdepth: 2

design/arch_overview
design/huggingface_integration
design/plugin_system
design/kernel/paged_attention
165
design/mm_processing
166
design/automatic_prefix_caching
167
design/multiprocessing
168
:::
169

170
171
172
173
:::{toctree}
:caption: V1 Design Documents
:maxdepth: 2

174
design/v1/torch_compile
175
design/v1/prefix_caching
176
design/v1/metrics
177
178
:::

179
% How to contribute to the vLLM project
180

181
:::{toctree}
182
:caption: Developer Guide
183
184
185
:maxdepth: 2

contributing/overview
186
contributing/deprecation_policy
187
188
contributing/profiling/profiling_index
contributing/dockerfile/dockerfile
189
contributing/model/index
190
contributing/vulnerability_management
191
:::
192

193
194
% Technical API specifications

195
:::{toctree}
196
197
198
:caption: API Reference
:maxdepth: 2

199
200
api/summary
api/vllm/vllm
201
:::
202
203
204

% Latest news and acknowledgements

205
:::{toctree}
206
207
208
:caption: Community
:maxdepth: 1

209
community/blog
210
211
community/meetups
community/sponsors
212
:::
213

214
## Indices and tables
215
216
217

- {ref}`genindex`
- {ref}`modindex`