| # Examples |
|
|
| vLLM's examples are organized into the following categories: |
|
|
| - **[`basic/`](../../examples/basic)** β Minimal examples for offline inference and online serving. |
| - **[`generate/`](../../examples/generate)** β Text generation examples, including multimodal models. |
| - **[`pooling/`](../../examples/pooling)** β Examples for embedding, classification, scoring, reward, etc. |
| - **[`speech_to_text/`](../../examples/speech_to_text)** β Speech transcription, translation and real-time audio examples. |
| - **[`features/`](../../examples/features)** β Demonstrations of individual vLLM features: automatic prefix caching, speculative decoding, LoRA, structured outputs, prompt embedding, pause/resume, batch invariance, KV events, data parallelism, and more. |
| - **[`reasoning/`](../../examples/reasoning)** β Examples for reasoning with vLLM. |
| - **[`tool_calling/`](../../examples/tool_calling)** β Examples for function/tool calling with vLLM. |
| - **[`applications/`](../../examples/applications)** β Application examples such as chatbots and RAG (Retrieval-Augmented Generation). |
| - **[`rl/`](../../examples/rl)** β Reinforcement learning examples. |
| - **[`deployment/`](../../examples/deployment)** β Examples for deploying vLLM in production. |
| - **[`ray_serving/`](../../examples/ray_serving)** β Scalable serving using Ray. |
| - **[`disaggregated/`](../../examples/disaggregated)** β Examples for disaggregated serving (separate prefill and decode), including various kv cache connectors (LMCache, Mooncake, FlexKV, P2P NCCL) and failure recovery. |
| - **[`observability/`](../../examples/observability)** β Metrics, logging, tracing (OpenTelemetry), and dashboards (Grafana, Perses). |
|
|