Skip to content

vllm.v1.kv_offload.cpu.manager

Classes:

CPUOffloadingManager

Bases: OffloadingManager

An OffloadingManager with a pluggable CachePolicy, resolved by name via CachePolicyFactory (built in: "lru", "arc"; external policies can either register their own or be loaded out-of-tree via cache_policy_module_path).

The manager owns all shared logic: ref-counting, event emission, chunk pool management, and the prepare_store/complete_store skeletons. Policy-specific chunk organization and eviction decisions are delegated to the CachePolicy implementation.

Methods:

  • config_info –

    Report the CPU cache facts of the one cache this manager holds.

  • on_demand –

    Record that a consumer demanded these keys at monotonic time at.

_record_accesses(keys, counted)

Record an offer without evicting its tracked candidates.

Keys in counted were counted by an earlier offer of the same request: they stay tracked but don't count again.

config_info()

Report the CPU cache facts of the one cache this manager holds.

on_demand(keys, at)

Record that a consumer demanded these keys at monotonic time at.

Keys that are no longer cached, or were stored again since, are skipped.

_RequestCacheAccess dataclass

Cache keys observed by one request, grouped in prefix order.