Skip to content
inference.academy

glossary/scale/pipeline-parallelism

Pipeline parallelism

also PP

Putting different layers on different GPUs and passing activations along the chain. It needs only a small point-to-point transfer between stages rather than an all-reduce, so it spans slower links. The cost is that a stage sits idle while the others work on the same request, so it needs several requests in flight to keep every stage busy. For serving it is usually combined with tensor parallelism within a node.


one activation

Per token per stage boundary, a few kilobytes and one send, against two all-reduces per layer under tensor parallelism.


See it happen


Related