All lessons in AI Engineering: From Foundation Models to Evaluated Applications

Profile Prefill, Decode, and GPU Work

Specify a reproducible model-serving workload and connect device bottlenecks to user latency.

90 minutes · Members lesson · preview

What you will learn

  • Specify a reproducible serving workload with prompt lengths, output lengths, arrivals, and deadlines.
  • Distinguish queueing, prefill, decoding, and tool gaps in a complete agent timeline.
  • Use an arithmetic-intensity estimate and a profiler to investigate a device bottleneck.

The serving overview explained the main mechanisms. Now make a measurement contract for the Model Serving Programme. Your project will follow one model-backed agent through memory, scheduling, precision, and speculation experiments. Keep a CPU-only analysis track available; actual GPU throughput claims require an actual compatible device and server.

Budget 90 minutes: 20 for the workload contract, 45 for a timeline or profile, and 25 for analysis. Use synthetic tasks and a small open-weight model only if your existing environment can run it. Record the model revision, tokenizer, engine version, device, and execution precision. No particular cloud account or paid model is required.

Choose another lesson