Skip to content
inference.academy

glossary/memory/working-set

Working set

The amount of KV cache the active sessions need resident to keep hitting. For a chat deployment it is small and turns over fast; for agents with long histories it is the sum of every live context, and it grows every turn as replies are appended. Once the working set exceeds the cache, the hit rate falls off a cliff rather than a slope, because sessions evict each other in rotation.


180 GB

Of cache left across four A100 80GB cards after 140 GB of Llama 3 70B weights, the budget the working set is measured against.


See it happen


Related