vLLM
vLLM is an open-source library and serving engine for high-throughput, memory-efficient inference of large language models.
Domain-Specific Small Language Models
A high-throughput model serving library for running and benchmarking language models with efficient attention and API compatibility.
- How it is used
- Serves language models offline or behind an OpenAI-compatible HTTP endpoint, with memory management designed for high-throughput generation.
- How deep it goes
- Explains KV-cache fragmentation and PagedAttention’s block allocation, then demonstrates inference, HTTP serving, and benchmarking without detailing implementation code.
- Examples
- Uses GPT-2 completion, Phi-3 chat and HTTP requests, a GGUF model, and a ShareGPT-based serving benchmark.
- What you can do after
- Operate/configure it for offline inference or an OpenAI-compatible server, then evaluate serving latency and throughput with benchmark scripts.
Read how Domain-Specific Small Language Models explains vLLM →
Transformers in Action
vLLM is an open-source serving library for efficient inference of large language models.
- How it is used
- Serves large language models with optimized latency and throughput for real-time or batched inference.
- How deep it goes
- Explains paged attention, batching, speculative decoding, and GPU kernels, then demonstrates deployment through an API.
- Examples
- Demonstrates serving Google Gemma 3 4B through a command-line server and OpenAI-compatible chat-completions client.
- What you can do after
- Operate/configure vLLM to serve a supported transformer model through an OpenAI-style endpoint.
Related concepts
- batch sizeimplements · The number of items grouped or processed together as one batch in a computational or operational process.
- paged attentionimplements · Paged attention is an attention-memory technique that partitions a key-value cache into blocks managed like virtual-memory pages instead of requiring one contiguous allocation.
- PagedAttentionuses · PagedAttention is an attention implementation that stores key-value cache blocks in dynamically allocated, potentially noncontiguous memory pages during inference.
- key-value cacheuses · A key-value cache stores previously computed transformer attention keys and values for reuse when processing later tokens during autoregressive generation.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

