vllm_omni.distributed.omni_connectors.transfer_adapter.base ¶
OmniTransferAdapterBase ¶
Base class for managing data transfer via OmniConnector.
This class handles the core loop logic and connector interactions, but leaves the specific data processing (chunks, KV cache, etc.) to subclasses.
recv_thread instance-attribute ¶
save_thread instance-attribute ¶
collect_failed_receive_request_ids ¶
Drain and return requests whose received chunk was invalid.
collect_failed_send_request_ids ¶
Drain and return the requests whose send gave up.
load ¶
Load request data from connector synchronously. To be implemented by subclasses.
load_async ¶
Register a request to load data. To be implemented by subclasses.
record_receive_failure ¶
Record an invalid received chunk that cannot be retried.
record_send_failure ¶
Note that a chunk for request_id will never be delivered.
Called from the sender thread; drained by the scheduler thread, hence the lock. _waiting_since needs none because only the scheduler touches it.
recv_loop ¶
Loop to poll for incoming data.
Process each pending request exactly once per pass. When no request made progress, back off 1 ms instead of tight-spinning on failed shm_open syscalls (which can burn a full CPU core).