Skip to content

vllm.v1.kv_offload.cpu.common

Classes:

CPULoadStoreSpec

Bases: BlockIDsLoadStoreSpec

Spec for loading/storing KV chunks to/from CPU memory.

The inherited block_ids field holds chunk indices into the CPU cache (not GPU block IDs). The chunk_ids alias exposes the same array under the name used by the tiering layer.

CPUOffloadingInfo dataclass

Bases: ConfigInfo

Static facts about the CPU offload tier.

_kv_cache_size_tokens(config, num_chunks)

KV tokens the tier holds at max_model_len, like GPU kv_cache_size_tokens.