LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Infrastructure

Model Parallelism

Model parallelism is a distributed-training and inference technique that splits a single neural network across multiple devices when the model does not fit on one device, in contrast to data parallelism (which replicates the model).

Full definition

Three flavors: (1) Pipeline parallelism — different layers on different GPUs, micro-batches stream through; (2) Tensor parallelism — single matrix multiplications split across GPUs (Megatron-LM); (3) Expert parallelism — MoE experts on different GPUs. Modern training stacks (FSDP, DeepSpeed-Zero, Megatron) combine model parallelism with sharded data parallelism. Frontier-scale training (>100B params) requires at least tensor + pipeline + data parallelism, often called 3D parallelism.

Why it matters

Model parallelism dictates training cluster topology and inter-GPU bandwidth requirements. Self-hosting Llama 3 405B requires tensor parallelism across 8+ H100s with NVLink — a hardware constraint procurement teams must plan for before signing GPU contracts.

Example

Meta trained Llama 3.1 405B on 16,000 H100s using FSDP + tensor parallelism + pipeline parallelism, sustaining ~400 TFLOPS/GPU — about 40% of peak.

Source & further reading

Primary source: Shoeybi et al. — "Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism" (NVIDIA) (2019).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/it/glossary/model-parallelism/.