vllm.distributed.ec_transfer.ec_connector.cpu.common
¶
Shared types for the ECCPUConnector scheduler and worker delegates.
Classes:
-
ECCPUConnectorMetadata–Per-step scheduler → worker payload for the ECCPUConnector.
-
ECCPUWorkerMetadata–Per-step worker → scheduler payload for the ECCPUConnector.
Functions:
-
create_ec_shared_region–Build the EC mmap region from
vllm_config.
ECCPUConnectorMetadata
dataclass
¶
Bases: ECConnectorMetadata
Per-step scheduler → worker payload for the ECCPUConnector.
Populated by ECCPUScheduler.build_connector_meta; consumed by
ECCPUWorker via the mixin's bind_connector_metadata.
Source code in vllm/distributed/ec_transfer/ec_connector/cpu/common.py
ECCPUWorkerMetadata
dataclass
¶
Bases: ECConnectorWorkerMetadata
Per-step worker → scheduler payload for the ECCPUConnector.
Reports the GPU copies that completed this step: saved mm_hashes become
safe to mark ready, and loaded transfers become safe to unpin once every
participating rank has reported them. Built by
ECCPUWorker.build_connector_worker_meta; consumed by
ECCPUScheduler.update_connector_output.
Loads are reported by transfer id rather than mm_hash because every rank
copies the same blocks: aggregate concatenates, so an id appears once
per reporting rank and the scheduler can count participants off the list.
Source code in vllm/distributed/ec_transfer/ec_connector/cpu/common.py
create_ec_shared_region(vllm_config)
¶
Build the EC mmap region from vllm_config.
Both ECCPUScheduler and ECCPUWorker call this to get the same
shared region (same engine_id, same block_size_bytes).