Skip to content

vllm.distributed.ec_transfer.ec_connector.cpu.data.base

Abstract base class for the EC data-plane transport (NIXL/UCX).

Classes:

  • DataTransport –

    Interface wrapping the NIXL data-plane for EC block transfers.

DataTransport

Bases: ABC

Interface wrapping the NIXL data-plane for EC block transfers.

Peer lifecycle

add_remote_peer() — register a peer and store its dlist handle internally remove_remote_peer() — deregister and release the stored handle post_read() — issue a READ using the stored handle for agent_name

The dlist handle (prepped xfer descriptor list) is an implementation detail of the transport and is never exposed to callers.

Methods:

  • add_remote_peer –

    Register a remote peer, prep its READ-source dlist, and return agent_name.

  • check_xfer_state –

    Return the NIXL state string: 'DONE', 'PROC', or an error string.

  • deregister –

    Deregister all memory and tear down the NIXL agent.

  • get_agent_metadata –

    Return this agent's serialized NIXL metadata blob.

  • get_mem_descriptor –

    Return the msgpack-encoded block descriptor list for this agent.

  • get_new_notifs –

    Drain NIXL completion notifications addressed to this agent.

  • post_read –

    Issue a consumer-initiated READ using the stored dlist for agent_name.

  • release_xfer_handle –

    Release a transfer handle returned by post_read.

  • remove_remote_peer –

    Deregister a previously registered remote peer and release its handle.

add_remote_peer(metadata, mem_descriptor) abstractmethod

Register a remote peer, prep its READ-source dlist, and return agent_name.

The dlist handle is stored internally and used by post_read().

check_xfer_state(handle) abstractmethod

Return the NIXL state string: 'DONE', 'PROC', or an error string.

deregister() abstractmethod

Deregister all memory and tear down the NIXL agent.

get_agent_metadata() abstractmethod

Return this agent's serialized NIXL metadata blob.

get_mem_descriptor() abstractmethod

Return the msgpack-encoded block descriptor list for this agent.

get_new_notifs() abstractmethod

Drain NIXL completion notifications addressed to this agent.

post_read(local_indices, agent_name, remote_indices, notif_msg) abstractmethod

Issue a consumer-initiated READ using the stored dlist for agent_name.

Returns a transfer handle for use with check_xfer_state / release_xfer_handle.

release_xfer_handle(handle) abstractmethod

Release a transfer handle returned by post_read.

remove_remote_peer(agent_name) abstractmethod

Deregister a previously registered remote peer and release its handle.