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
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.
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).
MoE models in distributed training typically require the simultaneous deployment of four strategies: data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism.
Timeline (last 90 days)
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
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.
The vLLM community has already merged some pipeline parallelism optimization improvements into the mainline, so open-source users can benefit directly.
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.
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.
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.
Tensor parallelism is expanded within each layer, unlike pipeline parallelism, which splits by layer, and therefore places higher demands on inter-device bandwidth.
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.
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.
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.
17 more timeline events
All Facts (20)
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%VerifiedThe 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%VerifiedMoE models in distributed training typically require the simultaneous deployment of four strategies: data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism.
75%VerifiedMegatron-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%UnverifiedPipeline 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%UnverifiedNon-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%UnverifiedLarge 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%UnverifiedWhen 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%UnverifiedThe vLLM community has already merged some pipeline parallelism optimization improvements into the mainline, so open-source users can benefit directly.
50%UnverifiedIn 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%UnverifiedInferact 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%UnverifiedIn 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%UnverifiedTensor 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%UnverifiedTensor parallelism is expanded within each layer, unlike pipeline parallelism, which splits by layer, and therefore places higher demands on inter-device bandwidth.
50%UnverifiedData 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%UnverifiedTensor 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%UnverifiedWhen 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%UnverifiedParallel strategies (data parallelism, tensor parallelism, pipeline parallelism and their combinations) need to match the hardware topology, otherwise communication bottlenecks will occur.
50%UnverifiedAn 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%