Skip to content

vllm.distributed.kv_transfer.kv_connector.v1.nixl.scheduler

Backward-compatible re-export of NixlPullConnectorScheduler.

Classes:

NixlPullConnectorScheduler

Bases: NixlBaseConnectorScheduler

Pull-specific scheduler logic (READ-based KV transfer).

Methods:

get_num_new_matched_tokens(request, num_computed_tokens)

For remote prefill, pull all prompt blocks from remote asynchronously relative to engine execution.

Parameters:

  • request

    (Request) –

    the request object.

  • num_computed_tokens

    (int) –

    the number of locally computed tokens for this request

Returns: * the number of tokens that can be loaded from the external KV cache beyond what is already computed. * true if the external KV cache tokens will be loaded asynchronously (between scheduler steps).

request_finished(request, block_ids)

Once a request is finished, determine whether request blocks should be freed now or will be sent asynchronously and freed later.