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
- glossary/
- Prefix cache hit rate
The share of prompt tokens found already in the cache rather than prefilled.
- Cache eviction
Dropping stored KV cache to make room for new requests.
- KV cache
The keys and values every layer computed for every token so far, kept in GPU memory so the next token can attend to them without recomputing.
- sources/
- topics/