Batching
One GPU serving one user at a time produces about 150 tokens a second and spends most of its effort waiting. Serve 64 users together and the same card can produce thousands of tokens a second, each user only a little slower. How you group requests is the biggest lever on serving cost you have.
In this lesson you'll learn to
- Explain why batching raises throughput so much for LLM inference.
- Explain how static batching works, and why it wastes GPU time with LLMs.
- Explain continuous batching, and how servers schedule requests at every step.
- Tune the trade-off between throughput and latency with batch size and server limits.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.