Serving open models at scale
For engineers
Serving open models to many users with vLLM or SGLang: continuous batching, KV cache memory, multi-GPU parallelism and running the endpoint safely
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A team of five wants to run a small GGUF model on a Mac mini for their own use. Which engine fits best?
Check yourself · 2 of 5
What does --max-model-len 16384 do in a vLLM command?
Check yourself · 3 of 5
What is the key difference between static and continuous batching?
Check yourself · 4 of 5
What does the KV cache store?
Check yourself · 5 of 5
A model fits on 4 GPUs in one node. Traffic doubles. What is the usual next step?
Topics
- Choosing an inference engine to serve4 min read · vLLM, SGLang, TensorRT-LLM and llama-server compared by throughput, model support, hardware and operational effort
- Serving a model with vLLM4 min read · The OpenAI-compatible server, max model length, GPU memory share, tensor parallelism and quantized weights
- Continuous batching for higher throughput4 min read · How continuous batching fills the GPU, and the trade between total tokens per second and per-user latency
- KV cache memory and prefix caching5 min read · PagedAttention, how context length and concurrency use KV memory, and prefix caching for shared system prompts
- Scaling across GPUs and replicas5 min read · Tensor, pipeline and expert parallelism inside a node, replicas behind a load balancer, and autoscaling on queue depth
- Monitoring and securing a self-hosted endpoint5 min read · API keys and rate limits on the endpoint, metrics for queue time and tokens, GPU health, and rolling out a new model version
Start here
- vLLM documentation (opens in a new tab)DocsFree
The serve command, engine arguments, metrics and parallelism pages for the most widely used open serving engine.
- SGLang documentation (opens in a new tab)DocsFree
Docs for the SGLang server, with prefix caching (RadixAttention) and multi-GPU launch options.
- Efficient Memory Management for LLM Serving with PagedAttention (opens in a new tab)PaperFree
The vLLM paper: why KV cache fragmentation wastes memory and how paging it raises throughput.
Helps to know first
110 questions · last verified 2026-12