[KongchangAI]
ConceptPipeline Parallelism

Pipeline Parallelism

A core partitioning strategy for multi-device inference that distributes computation across devices by assigning different model layers to different devices. Data flows sequentially through the GPUs, enabling collaborative inference across devices.

Core Facts

Timeline (last 90 days)

Nov 28

When evaluating non-NVIDIA inference solutions, it is necessary to check operator coverage (whether attention variants, activation functions, and normalization layers have efficient implementations), alignment of quantization and parallelism strategies (native FP8/INT8 support, and the efficiency of tensor parallelism and pipeline parallelism on the chip interconnect topology), as well as measured end-to-end throughput and first-token latency

Unverified50%
Nov 25

In pipeline parallelism, micro-batching means splitting a large batch into smaller sub-batches that enter each device in sequence; the more micro-batches, the smaller the bubble proportion and the higher the throughput, but too small a size reduces per-computation efficiency, so tuning requires a trade-off.

Unverified50%
Nov 25

The vLLM community has already merged some pipeline parallelism optimization improvements into the mainline, so open-source users can benefit directly.

Unverified50%
Nov 25

Inferact engineers shared pipeline parallelism optimization work: splitting model layers across multiple devices and finely scheduling micro-batch pipelines can significantly improve throughput in the prefill stage, especially for multi-GPU deployments across nodes.

Unverified50%
Nov 20

In pipeline parallelism, the bubble ratio is roughly proportional to "the number of pipeline stages minus one" and inversely proportional to the number of micro-batches; increasing micro-batches or reducing the number of segments can improve utilization, but the former is limited by memory and the latter by single-card capacity.

Unverified50%
Nov 14

Tensor parallelism is extremely sensitive to communication bandwidth and latency and typically requires high-speed interconnects such as NVLink or RDMA between GPUs; unlike pipeline parallelism, which splits by layer.

Unverified50%
Nov 13

Tensor parallelism is expanded within each layer, unlike pipeline parallelism, which splits by layer, and therefore places higher demands on inter-device bandwidth.

Unverified50%
Nov 12

Data parallelism distributes different data batches to different devices; tensor parallelism splits the weight matrices of a single layer across multiple devices; pipeline parallelism splits the model by layer across different devices and executes it in a pipelined manner with micro-batches; expert parallelism spreads the different experts of an MoE across different devices.

Unverified50%
Nov 4

Tensor parallelism splits the weights of a single layer across multiple GPUs, is communication-intensive and suits high-bandwidth interconnects; pipeline parallelism splits layers across different devices, incurs bubble overhead and suits models with many layers.

Unverified50%
Nov 1

When running LLMs across multiple GPUs in parallel, tensor parallelism is limited by PCIe bandwidth and latency due to frequent synchronization of activations between cards; pipeline parallelism has pipeline bubbles, and utilization depends on the number of micro-batches.

Unverified50%

17 more timeline events

All Facts (20)

Verified

Modern large model training typically employs a combination of multiple parallelism strategies simultaneously—including data parallelism, pipeline parallelism, tensor parallelism, and expert parallelism—forming a 3D or 4D parallel architecture.

90%
Verified

The core principle of diffusion models consists of two stages: the forward diffusion process (progressively adding Gaussian noise) and the reverse denoising process (restoring an image from noise).

90%
Verified

MoE models in distributed training typically require the simultaneous deployment of four strategies: data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism.

75%
Verified

Megatron-LM is a large model training framework developed by NVIDIA, focusing on tensor parallelism and pipeline parallelism.

70%
Unverified

块调度建议将张量并行(TP)限制在NVLink带宽最高的GPU子集内(同一个最小块),数据并行(DP)跨块分布,流水线并行(PP)沿拓扑层次展开

85%
Unverified

Pipeline parallelism distributes computation across different devices by model layer, with communication limited to activation tensors between adjacent layers, but suffers from pipeline bubble issues.

70%
Unverified

Non-deterministic GPU operations are designed to prioritize performance over determinism; forcing a fixed execution order introduces numerous synchronization barriers that significantly reduce parallel efficiency.

60%
Unverified

Large model parallel training requires mastery of the combined scheduling of three strategies—data parallelism, tensor parallelism, and pipeline parallelism—along with the use of the NCCL communication library and frameworks such as Megatron-LM and DeepSpeed.

60%
Unverified

When evaluating non-NVIDIA inference solutions, it is necessary to check operator coverage (whether attention variants, activation functions, and normalization layers have efficient implementations), alignment of quantization and parallelism strategies (native FP8/INT8 support, and the efficiency of tensor parallelism and pipeline parallelism on the chip interconnect topology), as well as measured end-to-end throughput and first-token latency

50%
Unverified

The vLLM community has already merged some pipeline parallelism optimization improvements into the mainline, so open-source users can benefit directly.

50%
Unverified

In pipeline parallelism, micro-batching means splitting a large batch into smaller sub-batches that enter each device in sequence; the more micro-batches, the smaller the bubble proportion and the higher the throughput, but too small a size reduces per-computation efficiency, so tuning requires a trade-off.

50%
Unverified

Inferact engineers shared pipeline parallelism optimization work: splitting model layers across multiple devices and finely scheduling micro-batch pipelines can significantly improve throughput in the prefill stage, especially for multi-GPU deployments across nodes.

50%
Unverified

In pipeline parallelism, the bubble ratio is roughly proportional to "the number of pipeline stages minus one" and inversely proportional to the number of micro-batches; increasing micro-batches or reducing the number of segments can improve utilization, but the former is limited by memory and the latter by single-card capacity.

50%
Unverified

Tensor parallelism is extremely sensitive to communication bandwidth and latency and typically requires high-speed interconnects such as NVLink or RDMA between GPUs; unlike pipeline parallelism, which splits by layer.

50%
Unverified

Tensor parallelism is expanded within each layer, unlike pipeline parallelism, which splits by layer, and therefore places higher demands on inter-device bandwidth.

50%
Unverified

Data parallelism distributes different data batches to different devices; tensor parallelism splits the weight matrices of a single layer across multiple devices; pipeline parallelism splits the model by layer across different devices and executes it in a pipelined manner with micro-batches; expert parallelism spreads the different experts of an MoE across different devices.

50%
Unverified

Tensor parallelism splits the weights of a single layer across multiple GPUs, is communication-intensive and suits high-bandwidth interconnects; pipeline parallelism splits layers across different devices, incurs bubble overhead and suits models with many layers.

50%
Unverified

When running LLMs across multiple GPUs in parallel, tensor parallelism is limited by PCIe bandwidth and latency due to frequent synchronization of activations between cards; pipeline parallelism has pipeline bubbles, and utilization depends on the number of micro-batches.

50%
Unverified

Parallel strategies (data parallelism, tensor parallelism, pipeline parallelism and their combinations) need to match the hardware topology, otherwise communication bottlenecks will occur.

50%
Unverified

An 8-node cluster can split a model across different nodes via tensor parallelism or pipeline parallelism, breaking through the memory capacity limit of a single machine.

50%

Source Articles