vllm.distributed.kv_transfer.kv_connector.v1.offloading.state
¶
Classes:
Functions:
-
resolve_mamba_align_size–Scan all KV cache groups in spec and return the single mamba alignment
RequestOffloadState
dataclass
¶
Methods:
-
storable_chunks–Number of allocated and keyed leading chunks eligible for store.
storable_chunks(group_config, group_state, num_offloadable_tokens)
¶
Number of allocated and keyed leading chunks eligible for store.
SchedulerOffloadConfig
¶
Bases: NamedTuple
Attributes:
-
supports_handoff(bool) –Whether the KV cache manager can hand off state blocks.
supports_handoff
property
¶
Whether the KV cache manager can hand off state blocks.
resolve_mamba_align_size(spec, kv_cache_config)
¶
Scan all KV cache groups in spec and return the single mamba alignment size, or None if no group requires mamba alignment.
For Mamba groups with prefix caching the hit window must be rounded down to a multiple of the offloaded chunk size. Asserts that all such groups agree on the same value.