Pidoku
23Production Inference
On this page

Production Inference

Module 2311 lessons~13h 30m

Lessons, in order

23.a SLOs, SLIs, and Latency BudgetsThree related words describe how reliable and fast a service promises to be: 1h 15m 23.b Capacity PlanningCapacity planning answers "how many GPUs do I need?", and its harder cousin, "how many will I need in six months, and when must I order them?" 1h 30m 23.c Cost Per TokenCost per token is the total cost of running the inference fleet divided by the useful tokens it produced. Usually quoted per million output tokens, sometimes split into input and output. 1h 15m 23.d Autoscaling in Production20.g covers the mechanics: which signal to scale on, the HPA, cold starts, draining. This lesson is the operating policy: what to configure for a real service, what autoscaling can and … 1h 23.e Fault Tolerance and Failure ModesFault tolerance is keeping the service inside its SLO (23.a) while parts of it fail. For an inference fleet that means knowing the failure modes, limiting how much each one breaks, detecting … 1h 15m 23.f Multi-Region and Disaster RecoveryRunning the service in more than one region, and having a written, tested plan for losing one of them. There are three distinct reasons to do it, and they lead to different designs: 1h 23.g Model Rollouts20.j covers the mechanics: what a version must record, rolling vs blue/green vs canary vs shadow, weighted traffic splitting, stickiness, and A/B tests. This lesson is the operating process: … 1h 23.h Observability for LLM ServicesObservability is being able to answer new questions about a running system from the data it emits, without shipping new code. For an LLM service the questions are unusual: which tenant's … 1h 23.i Security and IsolationThis lesson is the service owner's view of security: how to keep an inference service from being taken down, abused, or made to leak one tenant's data to another, and how to keep its weights … 1h 15m 23.j Abuse Prevention, Rate Limiting, and QuotasPer-caller limits on an LLM service, expressed in the resources that are actually scarce, plus the detection and response for callers who abuse them. This lesson builds the gateway limiter: … 1h 23.k Scenario: 70B Model, 10,000 Concurrent Users, Fixed BudgetThe capstone. This is the system design question for inference engineering roles, and a real design exercise. Work through it yourself before reading the solution. 2h

About this module

Running inference as a business: SLOs and latency budgets, capacity planning, cost per token, autoscaling, fault tolerance, multi-region and disaster recovery, model rollouts, observability, security and isolation, abuse and quotas, and full scenario designs.

Lessons#

#LessonTime
23.aSLOs, SLIs, and Latency Budgets75 min
23.bCapacity Planning90 min
23.cCost Per Token75 min
23.dAutoscaling in Production60 min
23.eFault Tolerance and Failure Modes75 min
23.fMulti-Region and Disaster Recovery60 min
23.gModel Rollouts60 min
23.hObservability for LLM Services60 min
23.iSecurity and Isolation75 min
23.jAbuse Prevention, Rate Limiting, and Quotas60 min
23.kScenario: 70B Model, 10,000 Concurrent Users, Fixed Budget120 min

Previous: Performance Engineering · Next: Research and Frontier

↑↓ navigate↵ openesc close

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