Inside vLLM: Anatomy of a High-Throughput LLM Inference System - Aleksa Gordić
In this post, I'll gradually introduce all of the core system components and advanced features that make up a modern high-throughput LLM inference system. In particular I'll be doing a breakdown of how vLLM [1] works. This post is the first in a series. It starts broad and then layers in detail (following an inverse-pyramid approach) so you can form an accurate high-level mental model of the complete system without drowning in minutiae. Later posts will dive into specific subsystems. This post is structured into five parts: The LLM engine is the fundamental building block of vLLM. On its own, it already enables high-throughput inference - but only in an offline setting. You can't serve it to customers over the web yet. We'll use the following offline inference snippet as our running example (adapted from basic.py). This configuration is: From here, we'll gradually build up to an online, async, multi-GPU, multi-node inference system - but still serving a standard transformer. In this ex
In this post, I'll gradually introduce all of the core system components and advanced features that make up a modern high-throughput LLM inference system. In particular I'll be doing a breakdown of how vLLM [1] works. This post is the first in a series. It starts broad and then layers in detail (following an inverse-pyramid approach) so you can form an accurate high-level mental model of the complete system without drowning in minutiae. Later posts will dive into specific subsystems. This post is structured into five parts: LLM engine & engine core : fundamentals of vLLM (scheduling, paged att
saved by
- surya
- Timothy Kostolansky
- Dhruv Sheth
- Abhay Sheshadri
- Nathan Chen
- Harmya Bhatt
- Arav Kumar
- Abhi Upadhyay
- Chris Shi
- Arya G
- vik r
related reading
- Inside vLLM: Anatomy of a High-Throughput LLM Inference Systemvllm.ai
- Introduction to vLLM and PagedAttentionblog.runpod.io
- Defeating Nondeterminism in LLM Inference - Thinking Machines Labthinkingmachines.ai
- vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention | vLLM Blogblog.vllm.ai
- Paged Attention from First Principles: A View Inside vLLM – Hamza's Bloghamzaelshafie.bearblog.dev
- ⭐️ Fast LLM Inference From Scratchandrewkchan.dev
- Best practices to accelerate inference for large-scale production workloadstogether.ai
- Continuous batching from first principleshuggingface.co
- LLM Inference Performance Engineering: Best Practices | Databricks Blogdatabricks.com
- How LLM Inference Worksarpitbhayani.me
- Optimizing inference · Hugging Facehuggingface.co
- Look Ma, No Bubbles! Designing a Low-Latency Megakernel for Llama-1B · Hazy Researchhazyresearch.stanford.edu