Pidoku
20Serving Systems
On this page

Serving Systems

Module 2011 lessons~12h 15m

Lessons, in order

20.a Anatomy of an Inference ServiceAn inference service is the whole system between a user's request and the GPU: not just the engine, but the gateway in front of it, the queue that protects it, the router that picks a … 1h 20.b APIs: HTTP, gRPC, StreamingThe API is the contract between clients and your inference service: the protocol, the request and response schema, how tokens are streamed, which errors exist, and which limits apply. 1h 20.c Queues, Scheduling, and Admission ControlThis lesson is about the first and the third, and about the queue as a whole. Lesson 20.k goes deep on the second: priority, fairness and preemption policy. 1h 15m 20.d Batching in ServersModule 12 explained what continuous batching is. Inside one engine it happens on its own. The serving system's job is to set its limits, so that each replica runs batches as large as the … 1h 20.e Backpressure, Timeouts, and RetriesThe three mechanisms that decide whether a service slows down gracefully under overload or collapses: 1h 15m 20.f Load Balancing and RoutingThis lesson covers choosing a replica inside one pool. Choosing a model and a pool (21.g) and scoring replicas by the exact cached blocks they hold (21.h) build on it. 1h 15m 20.g Autoscaling and Cold StartsThis lesson is the mechanism. Lesson 23.d turns it into a production policy, and 19.e applies it to vLLM on Kubernetes. 1h 15m 20.h Model Lifecycle: Loading, Warmup, UnloadingEverything that happens to a model between "it exists in storage" and "it is serving traffic correctly", and back again: 1h 20.i Multi-Model ServingServing more than one model from shared infrastructure. There are three different problems under that name, and they have different answers: 1h 15m 20.j Versioning, Canary Deployments, and A/B TestingHow you change what is serving without breaking anything, and how you find out whether the change was good: 1h 20.k Request Scheduling and PrioritiesLessons 12.j and 17.a covered the mechanism, and 17.c shows exactly how vLLM implements priorities. This lesson is about policy: whether a multi-tenant service is fair, whether "premium" and … 1h

About this module

Everything between the user and the engine: the anatomy of a serving system, APIs, queues and admission control, batching in servers, backpressure, timeouts and retries, load balancing, autoscaling and cold starts, the model lifecycle, multi-model serving, versioning and canaries, and scheduling with priorities.

Lessons#

#LessonTime
20.aAnatomy of an Inference Service60 min
20.bAPIs: HTTP, gRPC, Streaming60 min
20.cQueues, Scheduling, and Admission Control75 min
20.dBatching in Servers60 min
20.eBackpressure, Timeouts, and Retries75 min
20.fLoad Balancing and Routing75 min
20.gAutoscaling and Cold Starts75 min
20.hModel Lifecycle: Loading, Warmup, Unloading60 min
20.iMulti-Model Serving75 min
20.jVersioning, Canary Deployments, and A/B Testing60 min
20.kRequest Scheduling and Priorities60 min

Previous: vLLM: Scaling, Operating and Extending · Next: Inference Platforms

↑↓ navigate↵ openesc close

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