vllm.distributed.kv_transfer.kv_connector.v1.moriio.moriio_common ¶
Classes:
-
HandshakeError–Exception raised when handshake fails.
-
LayerTransferPlan–Plan for transferring a single layer.
-
MoRIIOConstants–Constants for MoRIIO connector.
-
MoRIIOError–Base exception for MoRIIO operations.
-
RemoteAllocInfo–Information about remote block allocation.
-
ReqMeta–Metadata for a single request.
-
RoleManager–Manages role state across the connector.
-
TransferError–Exception raised when transfer fails.
Functions:
-
get_peer_zmq_from_request_id–Extract the peer's zmq_address from the vLLM router request_id.
-
get_role–Get the global role.
-
parse_moriio_zmq_address–Parse the MoRI-IO zmq address into its components.
-
set_role–Set the global role.
-
zmq_ctx–Context manager for a ZMQ socket
HandshakeError ¶
Bases: MoRIIOError
Exception raised when handshake fails.
LayerTransferPlan dataclass ¶
Plan for transferring a single layer.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
MoRIIOConstants ¶
Constants for MoRIIO connector.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
MoRIIOError ¶
RemoteAllocInfo dataclass ¶
Information about remote block allocation.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
ReqMeta dataclass ¶
Metadata for a single request.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
RoleManager ¶
Manages role state across the connector.
Methods:
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
get_role() ¶
TransferError ¶
Bases: MoRIIOError
Exception raised when transfer fails.
get_peer_zmq_from_request_id(request_id, is_producer) ¶
Extract the peer's zmq_address from the vLLM router request_id.
The producer (prefill) needs the decode's address; the consumer (decode) needs the prefill's address.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
get_role() ¶
parse_moriio_zmq_address(zmq_address) ¶
Parse the MoRI-IO zmq address into its components.
Parses "host:IP,handshake:PORT,notify:PORT" into (host, handshake_port, notify_port).
Each key-value pair is split on the first colon so that IPv6 addresses (e.g. host:::1) are handled correctly. Raises ValueError if any of host, handshake, or notify keys are absent or if the port values are non-numeric.
Source code in vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py
set_role(role) ¶
zmq_ctx(socket_type, addr) ¶
Context manager for a ZMQ socket