[Paper Review] Colossal-AI: A Unified Deep Learning System For Large-Scale Parallel Training
Colossal-AI is a unified deep learning system that enables efficient large-scale distributed training through integrated support for data, pipeline, tensor, and sequence parallelism, along with heterogeneous training and ZeRO optimization. It achieves up to 2.76x training speedup over baseline systems by dynamically managing memory and enabling flexible, user-friendly parallelization of sequential models.
The success of Transformer models has pushed the deep learning model scale to billions of parameters. Due to the limited memory resource of a single GPU, However, the best practice for choosing the optimal parallel strategy is still lacking, since it requires domain expertise in both deep learning and parallel computing. The Colossal-AI system addressed the above challenge by introducing a unified interface to scale your sequential code of model training to distributed environments. It supports parallel training methods such as data, pipeline, tensor, and sequence parallelism, as well as heterogeneous training methods integrated with zero redundancy optimizer. Compared to the baseline system, Colossal-AI can achieve up to 2.76 times training speedup on large-scale models.
Motivation & Objective
- To address the lack of a unified, user-friendly system for large-scale distributed training of billion-parameter models.
- To reduce the expertise barrier in selecting optimal parallelization strategies for researchers and engineers.
- To support a comprehensive set of parallelism methods including sequence and multi-dimensional tensor parallelism.
- To improve memory efficiency and training throughput through dynamic sharding and offloading.
- To enable seamless scaling of sequential model code to multi-GPU clusters without architectural rewrites.
Proposed method
- Colossal-AI provides a unified API that allows users to scale sequential model code to distributed environments with minimal code changes.
- It integrates data, pipeline, tensor, and sequence parallelism, enabling flexible combinations for optimal performance.
- The system employs multi-dimensional tensor parallelism to reduce activation memory bottlenecks and improve scalability.
- Sequence parallelism splits input and activation tensors along the sequence dimension, reducing communication and memory overhead.
- Colossal-AI implements dynamic tensor placement, offloading only when necessary to improve GPU memory utilization.
- It supports ZeRO-3 and heterogeneous training, minimizing redundant optimizer states and accelerating training on mixed hardware.
Experimental results
Research questions
- RQ1How can a unified deep learning system effectively combine multiple parallelism techniques for optimal training performance?
- RQ2What impact does sequence parallelism have on memory efficiency and scalability compared to 1D tensor parallelism?
- RQ3Can dynamic sharding and offloading improve training throughput and memory utilization in low-batch-size scenarios?
- RQ4How does Colossal-AI compare in training speedup to state-of-the-art systems like Megatron-LM and DeepSpeed?
- RQ5To what extent can Colossal-AI scale training throughput with increasing pipeline stages and GPU count?
Key findings
- Colossal-AI achieves up to 2.76x training speedup over baseline systems on large-scale models.
- Sequence parallelism enables 4.44x larger batch size and 1.18x longer sequence length than 1D tensor parallelism on 12 GPUs.
- With 4 pipeline stages, Sequence Parallelism delivers 1.55x faster training than 1D tensor parallelism.
- In low-batch scenarios, Colossal-AI’s dynamic offloading improves throughput by avoiding unnecessary CPU transfers, outperforming DeepSpeed’s static policy.
- On 8 GPUs with a 13B parameter OPT model and batch size 32, Colossal-AI achieves 1.33x speedup over DeepSpeed.
- Colossal-AI supports linear scaling of maximum sequence length with GPU count when using linear-complexity attention, enabling document-level text understanding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.