AI Engineering
/
Model Serving & Inference
/

Choose a serving strategy under tail-latency limits

Model Serving & Inference · 3 to 4 hours

Choose a serving strategy under tail-latency limits

Choose how to serve interactive hints and offline drafts on four memory-limited accelerators: compute KV headroom, check measured tail-latency and quality gates, and design scheduling, overload handling, and verification.

Hard
System Design

4 h

Premium

Overview

Choose and defend a serving strategy under memory, tail-latency, quality, and operational constraints. The goal is usable capacity: successful, sufficiently correct work delivered within each workload's objectives, not maximum GPU utilization or raw token throughput. You practice on a synthetic four-device scenario that you work by hand before defending a provisional choice.

Study time: 3 to 4 hours

Interview format: System design discussion with capacity calculations

By the end you can

  • Define workload classes with their own latency, completion, and quality objectives, and a goodput definition
  • Estimate KV capacity per device from model shape, weights, and runtime reserve, and convert arrival rates into reserved KV with Little's Law
  • Check serving strategies against measured and computed gates, including a lost device, and state confidence and missing evidence
  • Design scheduling, admission, and overload behavior that protects interactive traffic during bursts and device failures
  • Gate builds and runtime optimizations on quality and on valid open-loop benchmarks, and plan failure-injection tests

Prerequisites

Helpful background: Comfort with percentiles, Little's Law, and GiB arithmetic helps.

This topic covers runtime scheduling, memory, and hardware. AI Application Integration covers streaming state in the client and server.

In this guide

  1. Define workload classes and objectives
  2. Model the bottlenecks
  3. KV memory and admission budgets
  4. Parallelism choices
  5. Scheduling and chunked prefill
  6. Speculative decoding and prefix caching
  7. Quality checks and release benchmarks
  8. Serving scenario
  9. Work the capacity inputs
  10. Check each strategy against the gates
  11. Admission, overload, and warm capacity
  12. Failure-injection matrix
  13. Design and defend the serving plan

Hard questions are part of Premium: the study guide, reference answer, rubric, and exercises unlock with Premium.

Practice the interview question

Answer it in your own words before you look at the reference answer.