vllm.distributed.pp_transport
¶
Alternatives to NCCL for sending a PP stage's intermediate tensors to the next
stage, selected by VLLM_PP_TRANSPORT.
Modules:
-
copy_engine–PP transport on CUDA copy engines, synchronized on the GPU (one node).
Classes:
-
PPTransport–One rank's side of its PP stage boundaries.
Functions:
-
create_pp_transport–Collective over the PP group. Returns None (send over NCCL) without PP,
PPTransport
¶
Bases: ABC
One rank's side of its PP stage boundaries.
Methods:
-
recv–Receive this step's inputs from the previous stage.
-
send–Send this step's outputs to the next stage. The caller may
Source code in vllm/distributed/pp_transport/__init__.py
create_pp_transport(vllm_config, persistent)
¶
Collective over the PP group. Returns None (send over NCCL) without PP, or under "auto" when copy engines are not usable on some rank; every rank makes the same choice.
Parameters:
-
(vllm_config¶VllmConfig) –The engine config.
-
(persistent¶IntermediateTensors | None) –The model runner's persistent intermediate tensors (non-first ranks), which received tensors are copied into.