BooleanIQ / Learn

AI from the ground up / Level 800 / LESSON 809

One model, a million users

Batching, caching, latency, throughput

Know

Coming soon. This is the lesson outline; the full article is not available yet.

The wrong idea this corrects

"Running a model is the easy part once it is trained."

What you will learn

  1. Each request needs a share of a chip for its whole length
  2. Batching: many users' requests through the chip together
  3. Reusing work already done for the earlier part of a conversation
  4. The two numbers: time to first word, and words per second
  5. The levers: smaller models, quantisation, more chips, queues, and paying more for a fast lane.

The picture to remember

A restaurant kitchen at the dinner rush: the recipe did not change, the queue did.

The honest part

Over a model's life, serving costs more than training did.