Skip to content

vllm.distributed.kv_transfer.kv_connector.v1.umbp.runtime.base

Backend-neutral runtime contract for UMBP.

Classes:

IUMBPRuntime

Bases: Protocol

Methods:

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.

create_worker_handle(namespace, topology, layout)

Create a worker-side handle.

UMBPSchedulerHandle

Bases: Protocol

Methods:

  • clear –

    Clear all objects visible to this scheduler handle.

  • close –

    Release scheduler-side resources.

  • lookup –

    Return one answer per key.

clear()

Clear all objects visible to this scheduler handle.

close()

Release scheduler-side resources.

lookup(keys)

Return one answer per key.

True is present and False is absent. None means the owning rank could not be asked. None is not a miss.

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.

cancel(job)

Cancel if possible, otherwise wait until buffers are safe to reuse.

close()

Release worker-side resources.

load(plans)

Start loading the requested plans.

load_blocks(plans)

Optionally load logical blocks; None requests ordinary materialization.

poll(job)

Return a finished job without blocking, or None if still pending.

publish(job)

Accept a completed store; a runtime may defer visibility until then.

register_buffers(kv_caches)

Register each unique KV allocation with the runtime.

store(plans)

Start storing the requested plans.

store_blocks(plans)

Optionally store logical blocks; None requests ordinary materialization.

take_evicted_keys()

Return locally published keys evicted since the last call.

wait(job)

Return a final state only when buffers are safe to reuse; otherwise raise.