vllm.distributed.kv_transfer.kv_connector.v1.nixl.worker
¶
Backward-compatible re-export of NixlPullConnectorWorker.
Classes:
-
NixlPullConnectorWorker–Pull-specific (READ) worker logic.
NixlPullConnectorWorker
¶
Bases: NixlBaseConnectorWorker
Pull-specific (READ) worker logic.
Methods:
-
start_load_kv–Start loading by triggering non-blocking nixl_xfer.
_get_lease_lapsed_recvs(done_recving)
¶
Completed reads that may have overlapped the remote's lease expiry, so the blocks could have been recycled while being read.
_get_new_notifs()
¶
Get req_ids which got a remote xfer message. When multiple consumers are reading from the same producer (heterogeneous TP or DCP scenario), wait for all consumers to be done pulling.
Also handles heartbeat notifications (HB_NOTIF_PREFIX + "req1,req2") by extending the lease on the referenced requests.
_is_remote_read_expired(meta)
¶
Whether the remote's lease on the blocks has (nearly) run out, after which they may hold other requests' KV. Uses the exported deadline, rebased by the clock offset and extended by our heartbeats' renewals.
_read_blocks(read_spec, dst_engine_id, request_id, remote_request_id, local_xfer_side_handle, local_dram_handle, remote_xfer_side_handle, expected_consumers, awaiting_kvs, region_pairs, remote_region_num_blocks, remote_agent)
¶
Post a READ point-to-point xfer request from a single local worker to a single remote worker.
The caller resolves the remote region mapping, block counts and notification agent.
Returns True when the read was posted (or was unnecessary), False when the request was routed to failure reporting — the caller must not post further transfers for it.
_read_blocks_mixed(request_id, local_block_size_key, local_device_handle, local_dram_handle, remote_xfer_side_handle, local_block_descs_ids, remote_block_descs_ids, notif_agent, notif_id)
¶
Split a READ across the local DRAM and device descriptor lists.
start_load_kv(metadata)
¶
Start loading by triggering non-blocking nixl_xfer. We check for these trnxs to complete in each step().