June 2026
Intermediate
558 pages
13h 48m
English
RadixAttention, structured generation, and request-level routing for low-latency inference
The best way to predict the future is to invent it.
Alan Kay, Computer Scientist
In the previous chapter, we explored vLLM's approach to distributed inference: model parallelism. When a model is too large for a single GPU, vLLM splits the model weights across multiple GPUs using tensor parallelism (TP) or pipeline parallelism (PP). Workers must synchronize—all-reduce operations for TP, pipeline stages for PP—and the system optimizes for throughput by batching as many requests as possible.
SGLang takes a different approach. It supports TP, PP, and Expert Parallelism ...
Read now
Unlock full access