vllm.benchmarks.forward.pipeline
¶
Pipeline forwards with identical microbatches and no per-step host barrier.
Classes:
-
ForwardPipelineExecutor–Load one stage per torchrun process; PipelineBench drives execution.
-
PipelineBench–Capture each stage, then stream matching microbatches through the stages.
-
PipelineClock–Correlate local GPU events with rank zero's monotonic clock.
ForwardPipelineExecutor
¶
Bases: ExecutorWithExternalLauncher
Load one stage per torchrun process; PipelineBench drives execution.
Serving's external launcher requires sampling broadcasts across PP stages. The forward benchmark samples only on the last stage and has no independent schedulers to sync.
Methods:
-
collective_rpc–Return every worker's result in world-rank order on every process.
collective_rpc(method, timeout=None, args=(), kwargs=None, non_block=False, single_value=False)
¶
Return every worker's result in world-rank order on every process.
PipelineBench
¶
PipelineClock
¶
Correlate local GPU events with rank zero's monotonic clock.
CPU ping-pong bounds clock-offset error without assuming synchronized node clocks. An idle-GPU event is bracketed on the host to correlate GPU time. Both bounds are retained alongside the reported latency.