sagelearnai

Batching & Caching

Batching and caching are the two most effective efficiency techniques in LLM systems. Batching gets more work out of each GPU pass; caching avoids work entirely.

In this lesson

  • Batching on the server (self-hosted models)
  • Batching on the client (API users)
  • The caching hierarchy
  • Prompt caching in practice
  • A semantic cache, carefully

This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.