Skip to Content
View all events

Scaling AI Inference: From Tokens to Throughput

Published by O'Reilly Media, Inc.

Intermediate content levelIntermediate

Workload-aware model serving, latency, cost, and capacity planning for production GenAI

What you’ll learn and how you can apply it

  • Distinguish model serving from full AI-powered product serving and explain why one user task may create many model operations
  • Estimate token volume, cost per task, and cost per successful task for common GenAI workloads
  • Set workload-aware latency and throughput targets using TTFT, TPOT/time-between-token, tail latency, concurrency, and goodput
  • Explain prefill, decode, KV cache, batching, prefix caching, and memory headroom in a production serving engine
  • Identify when optimization choices such as quantization, speculative decoding, routing, caching, or scale-out may help or hurt
  • Create a lightweight benchmark and capacity-planning checklist for vLLM-style and Kubernetes-native inference deployments
  • Treat RAG, agentic workflows, and eval loops as inference workload multipliers that affect latency, cost, and reliability
  • Decide the next practical step for an inference workload: simplify, cache, batch, route, quantize, scale out, or benchmark more deeply

Course description

AI inference is where generative AI systems become operationally real: Every successful task creates token volume, latency expectations, memory pressure, routing choices, and recurring cost. This three-hour live course with Bruce Hopkins gives AI/ML engineers, platform engineers, and SREs a practical framework for reasoning about inference at scale before they commit to a model, hardware profile, or serving architecture.

You’ll follow a recurring enterprise support and code-assistant scenario. You’ll translate token usage into successful-task economics; connect TTFT, time-between-token, throughput, concurrency, and goodput to user experience; and evaluate serving-engine choices such as KV cache management, continuous batching, prefix caching, quantization, distributed inference, routing, and observability.

This live event is for you because...

  • You’re an AI/ML engineer, platform engineer, or SRE who owns or operates GenAI inference workloads and needs a structured way to reason about latency, throughput, GPU memory, reliability, and cost before choosing an architecture.

Prerequisites

  • A laptop with a modern browser and internet access
  • An understanding of basic LLM usage, cloud infrastructure concepts, containers, and the role of Kubernetes in modern platforms
  • (Optional) Local Python or Google Colab access (useful for exploring the downloadable planner worksheet/notebook)
  • Familiarity with Python, Prometheus/Grafana-style metrics, or prior LLM application work (helpful but not required)

Recommended follow-up:

Schedule

The time frames are only estimates and may vary according to how the class is progressing.

Token economy (50 minutes)

  • Presentation: Model serving versus product serving; tokens per task; cost per successful task
  • Hands-on exercise: Estimate tokens per task and cost per task for a support/code-assistant workload
  • Q&A
  • Break

Metrics and SLOs (50 minutes)

  • Presentation: TTFT, TPOT/time-between-token, tail latency, tokens/sec, concurrency, queueing, locality, cacheability, and goodput
  • Hands-on exercise: Classify three workloads and assign latency, throughput, locality, and cacheability assumptions
  • Q&A
  • Break

Serving and scale (50 minutes)

  • Presentation: Prefill, decode, KV cache, batching, prefix caching, quantization, routing, and scale-out tradeoffs
  • Hands-on exercise: Build a benchmark checklist and choose the next operational move for one workload
  • Q&A

Wrap-up (10 minutes)

  • Presentation: Inference-readiness checklist
  • Q&A

Your Instructor

  • Ammar Mohanna

    Ammar Mohanna is a seasoned AI expert, educator, and entrepreneur with extensive experience spanning academia, industry consulting, and technology innovation. He teaches advanced courses in AI and machine learning at the American University of Lebanon, helping shape the next generation of AI professionals. As a consultant, Ammar leads initiatives focused on integrating AI and generative AI into educational technologies, collaborating closely with cloud technologies. Previously, Ammar cofounded and was AI lead at Assentify, a company dedicated to providing specialized AI solutions, training, and consultancy. His professional expertise includes machine learning, MLOps, explainable AI (XAI), Kubernetes, and microservices architecture. He holds a PhD in edge artificial intelligence from the University of Genoa, Italy. Ammar lives in Beirut, Lebanon, and is fluent in Arabic, English, and French, with intermediate proficiency in Italian.

Skill covered

Machine Learning