On the Performance and Memory Footprint of Distributed Training: An Empirical Study on Transformers
Zhengxian LuFangyu WangZXZhiwei XuFYFei YangTLTao Li
Zhengxian Lu
Fangyu Wang
ZXZhiwei Xu
FYFei Yang
TLTao Li
+5
This paper presents an analytical framework for evaluating the performance and memory footprint of distributed training of Transformer models. The framework accounts for the unique architecture of Transformers, various distributed strategies, and the trade-off between computation and memory. Through both theoretical analysis and empirical experiments, the study finds that pipeline parallelism generally outperforms data parallelism for Transformers. However, it also reveals that suboptimal model partitioning within pipeline parallelism can unexpectedly increase total memory overhead, and highlights the importance of communication block size and waiting time for performance optimization.

arXiv ·
· July 2, 2024