Why it matters

Chat efficient via KV reuse. Understanding shapes chat serving.

Advertisement

The architecture

Persist KV for session.

Add new turn's tokens to cache.

Multi-turn KV lifecycleSession startempty KVTurn 1 processedKV growsTurn 2+reuse + extendSession eviction critical: KV grows unbounded without limits
Multi-turn caching.
Advertisement

How it works end to end

Session ID: track KV per session.

Eviction: LRU or timeout when memory tight.

vLLM supports natively.