Skip to content

vllm.distributed.kv_transfer.kv_connector.v1.offloading_connector

Classes:

OffloadingConnector

Bases: KVConnectorBase_V1, SupportsHMA

_bounding_group_ids cached property

Prefix-cacheable groups this connector does not offload.

Never offer tokens for a range some group cannot cover: past such a group's own cached prefix its KV would be left unwritten.

_max_loadable_tokens(request, num_computed_tokens)

How far past num_computed_tokens a load may reach, if bounded.

Bounded by the deepest prefix the groups this connector does not offload already hold, since nothing refills them beyond it.