Pidoku
19vLLM: Scaling, Operating and Extending
On this page

vLLM: Scaling, Operating and Extending

Module 198 lessons~6h 15m

Lessons, in order

19.a Parallelism: TP, PP, DP, EP and CPWhen one GPU is not enough, vLLM can use more GPUs in two very different ways: 55 min 19.b Disaggregation and KV ConnectorsInside a single engine the KV cache lives and dies on one GPU. A KV connector is the extension point that lets cached blocks leave: to CPU memory or disk when the GPU is full, to another … 55 min 19.c Metrics: Reading a Running ServervLLM publishes several dozen metrics at /metrics, all prefixed vllm:. They are not independent facts. Each is produced at a specific point on the request path you have already read, and once … 45 min 19.d Tuning and BenchmarkingvLLM has hundreds of flags and perhaps a dozen that matter for performance. Tuning is not trying them at random. It is: 50 min 19.e Deploying on KubernetesRunning vLLM on Kubernetes so that it starts reliably, receives traffic sensibly, scales on the right signal and shuts down without cutting users off. 45 min 19.f Plugins, Extension Points and Hardware BackendsYou rarely need to fork vLLM to change it. Almost every component in these modules has a registered replacement mechanism: models, hardware platforms, attention backends, the scheduler … 40 min 19.g Adding a ModelMaking vLLM serve a model architecture it does not yet support. There are three routes, lightest first: 45 min 19.h The Rust Frontend, and Keeping UpThe Rust frontend (vllm-rs) is an alternative API server for vLLM, written in Rust and shipped inside the vLLM repository under rust/. Its README calls it "a Rust drop-in alternative … 40 min

About this module

Running vLLM for real: parallelism across GPUs and nodes, disaggregated prefill and decode with KV connectors, the metrics it exports, tuning and benchmarking, deploying on Kubernetes, then extending it with plugins and new models, and where the project is going.

Lessons#

#LessonTime
19.aParallelism: TP, PP, DP, EP and CP55 min
19.bDisaggregation and KV Connectors55 min
19.cMetrics: Reading a Running Server45 min
19.dTuning and Benchmarking50 min
19.eDeploying on Kubernetes45 min
19.fPlugins, Extension Points and Hardware Backends40 min
19.gAdding a Model40 min
19.hThe Rust Frontend, and Keeping Up40 min

Previous: vLLM: Model Execution and Features · Next: Serving Systems

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in