vllm.v1.kv_offload.cpu.policies.lru
¶
Classes:
-
LRUCachePolicy–LRU caching policy with logical recency independent of transfer pinning.
LRUCachePolicy
¶
Bases: CachePolicy
LRU caching policy with logical recency independent of transfer pinning.
Evictable chunks live in a lazy-invalidating min-heap. A chunk's recency can therefore be updated while it is pinned; when it later becomes evictable, it enters the heap with the order assigned by the request rather than its transfer-completion time.
Active requests share a provisional rank across batches, ordered by token position so tails precede heads. Finalization commits the request's recency.
A use is indicated by, - First time the key is added (store). - A request-scoped access.