vllm.distributed.aux_output_connector.worker
¶
Worker-side auxiliary-output data plane.
Classes:
-
AuxOutputWorkerConnector–Own capture, request tails, and backend resources on the output worker.
-
PendingAuxOutput–Own one step's R3 snapshot until its asynchronous copy is consumed.
AuxOutputWorkerConnector
¶
Own capture, request tails, and backend resources on the output worker.
Methods:
-
begin_step–Apply one scheduler step's request and block-hash updates.
-
initialize_output_storage–Create the output data plane once the KV cache layout is resolved.
-
prepare_output–Snapshot one step's R3 tensor for asynchronous CPU transfer.
-
process_output–Commit one consumed R3 snapshot and build request outputs.
_teardown(request_ids)
¶
Drop finished requests' temporary state after publishing key releases.
begin_step(metadata)
¶
Apply one scheduler step's request and block-hash updates.
While an unconsumed step covers a finished request, its teardown is deferred to that step's process_output.
initialize_output_storage(kv_cache_config)
¶
Create the output data plane once the KV cache layout is resolved.
prepare_output(input_batch)
¶
Snapshot one step's R3 tensor for asynchronous CPU transfer.
process_output(pending)
¶
Commit one consumed R3 snapshot and build request outputs.
Request teardown deferred by begin_step is completed here once no in-flight step covers the request.
PendingAuxOutput
dataclass
¶
Own one step's R3 snapshot until its asynchronous copy is consumed.
Methods:
-
enqueue_cpu_copy–Enqueue asynchronous D2H copies; call on the output copy stream.
enqueue_cpu_copy(num_sampled, num_rejected)
¶
Enqueue asynchronous D2H copies; call on the output copy stream.