vllm.distributed.kv_transfer.kv_connector.v1.umbp.runtime
¶
Modules:
-
base–Backend-neutral runtime contract for UMBP.
-
factory–Runtime configuration and adapter factory for UMBP.
Classes:
-
IUMBPRuntime– -
UMBPRuntimeConfig–Shared connector options passed to the selected runtime adapter.
-
UMBPRuntimeFactory–Registry used by UMBP adapters without importing MORI in vLLM.
-
UMBPSchedulerHandle– -
UMBPWorkerHandle–
IUMBPRuntime
¶
Bases: Protocol
Methods:
-
create_scheduler_handle–Create a scheduler-side handle.
-
create_worker_handle–Create a worker-side handle.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/umbp/runtime/base.py
create_scheduler_handle(namespace, topology, layout)
¶
Create a scheduler-side handle.
layout carries no regions: the scheduler's KV cache config
flattens per-layer specs, so only worker handles receive byte ranges.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/umbp/runtime/base.py
create_worker_handle(namespace, topology, layout)
¶
UMBPRuntimeConfig
dataclass
¶
Shared connector options passed to the selected runtime adapter.
Methods:
-
resolve_for_rank_count–Pass topology to the adapter without interpreting its capacity options.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/umbp/runtime/factory.py
resolve_for_rank_count(rank_count)
¶
Pass topology to the adapter without interpreting its capacity options.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/umbp/runtime/factory.py
UMBPRuntimeFactory
¶
Registry used by UMBP adapters without importing MORI in vLLM.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/umbp/runtime/factory.py
UMBPSchedulerHandle
¶
UMBPWorkerHandle
¶
Bases: Protocol
Methods:
-
cancel–Cancel if possible, otherwise wait until buffers are safe to reuse.
-
close–Release worker-side resources.
-
load–Start loading the requested plans.
-
load_blocks–Optionally load logical blocks; None requests ordinary materialization.
-
poll–Return a finished job without blocking, or None if still pending.
-
publish–Accept a completed store; a runtime may defer visibility until then.
-
register_buffers–Register each unique KV allocation with the runtime.
-
store–Start storing the requested plans.
-
store_blocks–Optionally store logical blocks; None requests ordinary materialization.
-
take_evicted_keys–Return locally published keys evicted since the last call.
-
wait–Return a final state only when buffers are safe to reuse; otherwise raise.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/umbp/runtime/base.py
cancel(job)
¶
close()
¶
load(plans)
¶
load_blocks(plans)
¶
Optionally load logical blocks; None requests ordinary materialization.
poll(job)
¶
publish(job)
¶
register_buffers(kv_caches)
¶
store(plans)
¶
store_blocks(plans)
¶
Optionally store logical blocks; None requests ordinary materialization.
take_evicted_keys()
¶
wait(job)
¶
Return a final state only when buffers are safe to reuse; otherwise raise.