Skip to content

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

Standalone UMBP runtime backed by a node-local umbp_standalone_server.

The server owns one DRAM pool per host. Every engine, data-parallel rank, and worker on that host attaches to it over a Unix-domain socket, so KV stored by one engine is reusable by the others and survives engine restarts. Workers register their GPU KV allocations with the server through HIP IPC; the server then copies between those allocations and its pool directly.

Because the server is reachable from the scheduler process, scheduler lookups query it directly instead of going through a worker-side bridge.

Classes:

  • StandaloneRuntime –

    Runtime whose objects live in a node-local standalone server.

Functions:

StandaloneRuntime

Bases: IUMBPRuntime

Runtime whose objects live in a node-local standalone server.

_DaemonTransferPool

Bases: Executor

A thread pool whose threads never hold up interpreter exit.

ThreadPoolExecutor joins its threads at exit, and a call blocked in an unresponsive service cannot be interrupted.

_SharedPoolWorkerHandle

Bases: _MoriWorkerHandle

MORI worker handle whose objects are indexed outside this process.

The pool's service can stall or disappear under a running engine, so its failures degrade to misses and recomputation. A transfer that outlives timeout_ms stays pending rather than failing the step, since MORI still uses its blocks: the scheduler keeps a store's source blocks pinned, and keeps a loading request's blocks until the load is reported, even if the request is aborted. New transfers fail while one is blocked. A synchronous wait on a blocked transfer still raises, since its blocks are about to be read or reused.

_fail_if_queued(job)

Fail a job still waiting for a transfer thread; it holds no buffers.

_refuse_while_blocked(plans)

Fail new transfers, before they touch memory, while one is stuck.

_StandaloneSchedulerHandle

Bases: UMBPSchedulerHandle

Answers lookups from the shared server.

A lookup that fails, or gets no reply within lookup_timeout_ms, is unavailable rather than a miss. Callers that only need a hit still recompute, and a store must not treat the failure as absence. MORI puts no deadline on these calls, so each runs on a daemon thread; until one that overran its deadline returns, later calls fail at once instead of queueing behind it.

normalize_endpoint(endpoint)

Return the gRPC address of a standalone server socket.

The data plane depends on file-descriptor and IPC-handle passing over a Unix-domain socket, so only socket paths are accepted.