Overview
Direct Answer
Model parallelism is a distributed training technique that splits a neural network's layers or components across multiple devices (GPUs, TPUs, or accelerators), allowing training of architectures that exceed the memory capacity of any single device. This contrasts with data parallelism, which replicates the full model across devices and partitions input data.
How It Works
During forward and backward propagation, activations and gradients flow between devices as data moves through different model segments. Each device computes gradients for its assigned layers, then synchronises updates across the distributed system. Pipeline parallelism variants (such as GPipe) further optimise throughput by overlapping computation on different microbatches across the device stages.
Why It Matters
As transformer models and vision architectures grow to billions or trillions of parameters, single-device training becomes infeasible. Model partitioning enables organisations to train state-of-the-art language models and multimodal systems within existing hardware budgets, reducing infrastructure costs whilst maintaining competitive model quality.
Common Applications
Large language model training (billions of parameters), multimodal foundation models combining vision and language components, and federated learning scenarios where partial model segments run on resource-constrained edge devices. Research institutions and cloud providers employ these techniques for transformer pre-training pipelines.
Key Considerations
Communication overhead between devices can significantly reduce efficiency; device utilisation may be uneven if layer computation times differ substantially. Careful pipeline scheduling and gradient accumulation strategies are essential to mitigate these bottlenecks.
Referenced By1 term mentions Model Parallelism
Other entries in the wiki whose definition references Model Parallelism — useful for understanding how this concept connects across Deep Learning and adjacent domains.
More in Deep Learning
Diffusion Model
Generative ModelsA generative model that learns to reverse a gradual noising process, generating high-quality samples from random noise.
Tensor Parallelism
ArchitecturesA distributed computing strategy that splits individual layer computations across multiple devices by partitioning weight matrices along specific dimensions.
Contrastive Learning
ArchitecturesA self-supervised learning approach that trains models by comparing similar and dissimilar pairs of data representations.
Self-Attention
Training & OptimisationAn attention mechanism where each element in a sequence attends to all other elements to compute its representation.
Positional Encoding
Training & OptimisationA technique that injects information about the position of tokens in a sequence into transformer architectures.
Multi-Head Attention
Training & OptimisationAn attention mechanism that runs multiple attention operations in parallel, capturing different types of relationships.
Parameter-Efficient Fine-Tuning
Language ModelsMethods for adapting large pretrained models to new tasks by only updating a small fraction of their parameters.
Dropout
Training & OptimisationA regularisation technique that randomly deactivates neurons during training to prevent co-adaptation and reduce overfitting.