vllm.distributed.kv_transfer.kv_connector.v1.umbp.scheduler
¶
Shared scheduler-side UMBP connector behavior.
Classes:
-
UMBPStoreConnectorScheduler–Own vLLM prefix matching while the runtime owns lookup transport.
_LazyCandidate = tuple[KVCacheBlock, str, int, bytes]
module-attribute
¶
Block, key, group and hash of one lazy store candidate.
UMBPStoreConnectorScheduler
¶
Own vLLM prefix matching while the runtime owns lookup transport.
Without a runtime and codec the scheduler neither looks up nor stores
until bind_namespace supplies them.
Methods:
-
register_finished_partial_tail–Pin finished boundary pages without delaying core request cleanup.
_add_boundary_state_plans(block_state, meta, finished, preempted)
¶
Store exact Mamba/hybrid boundary blocks handed off by core.
_coordinate_external_hits(request_hashes, local_tokens, max_external_tokens, logical_objects_by_group, logical_hits_by_group)
¶
Apply the core KV cache coordinator to runtime lookup results.
_load_plans_for_external_tokens(request, tracker, block_groups, num_external_tokens)
¶
Batch the logical objects selected by the external hit window.
_lookup_all_ranks(objects)
¶
Look up each object's rank keys, first rank first, as one flat list.
Callers only use whether every rank holds an object. Ranks store an
object together, and a hash-granular lookup probes far more positions
than hold anything, so the first rank is asked about every object and
the other ranks only about the objects it holds. Every key of any other
object repeats the first rank's answer: missing, or None when that
rank is unavailable.
_prepare_lazy_store_plans()
¶
Return plans, their blocks found in the window, and lookup success.
_register_finished_lookahead_save(request, block_ids)
¶
Pin completed KV whose hash became available with the last sample.
_register_lazy_prefix_chains(request, block_ids)
¶
Remember full-attention chains so an at-risk tail stores its prefix.
_restored_store_blocks(request, block_ranges, restored_tokens, block_groups)
¶
Query residency before constructing plans for restored blocks.
_settle_lazy_blocks(walked)
¶
Mark walked blocks whose keys and prefix chain are all confirmed.
_store_mask(request, group_id, indices)
¶
Keep only blocks that core's cache semantics can later reuse.
_store_plans(request, tracker, token_count, block_ids_override=None, skip_keys=None)
¶
Describe full blocks produced by a scheduled prefill.
register_finished_partial_tail(request, block_ids, partial_tail_offloads)
¶
Pin finished boundary pages without delaying core request cleanup.
_LookupBlockPool
¶
_decode_lazy_block_hash(codec, block_hash_with_group)
cached
¶
Decode an immutable block identity for lazy candidate selection.
_free_to_cached_front(pool, block_ids)
¶
Free blocks so they are the first cached blocks the pool evicts.
Core keeps uncached blocks at the front of the free queue, to be reused
first. evict_first alone would put these blocks ahead of them and drop a
prefix-cache hit while empty blocks are still free.
_rank_keys(codec, topology, block_hash, group_id)
cached
¶
Reuse immutable object identities, not runtime residency.