Inference under a latency and cost budget

Lesson 18 of 26 · Designing the AI parts · 3 min Get the course to watch

Users judge an answer by two clocks: how long before words start to appear, and how long before it finishes. Your finance team watches a third clock, the bill. A design has to name a budget for all three. Budgets only work if you set them, split them across the pipeline, and measure against them.

The rest of this lesson

  • Splitting the latency budget
  • What a request costs
  • Caching the prefix
  • Design for the cache
  • Serving it yourself
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with System design for senior engineers, AI systems included.