PrepCity

Batching: many requests, one model run

Open the lab

By the last page, this is the design you will have built.

Lesson · 7 pages · about 5 min

Batching: many requests, one model run

A GPU handles many inputs almost as fast as one. See how a server gathers requests into a batch, and how language models refill batch slots every step.

Words you’ll learn

  • Millisecond
  • Request
  • GPU
  • Queue
  • Row
  • Server
  • Language model
  • Token (model)
  • Continuous batching
  • Latency

Page by page