Hydraulis:通过协同设计并行策略与数据分配来平衡大型Transformer模型训练
Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment
AI总结:
Hydraulis通过联合优化动态异构并行策略与两阶段数据分配,解决了大型Transformer训练中因采样和打包引起的数据失衡,性能提升1.32-2.66倍。
摘要:
为了优化大型Transformer模型训练,高效的并行计算和先进的数据管理都不可或缺。然而,当前方法通常假设训练工作负载稳定且均匀,忽略了由采样和打包过程引起的数据失衡,这可能阻碍训练性能。具体而言,数据采样失衡源于训练数据序列长度分布不均匀,而数据打包失衡则源于注意力机制的线性内存复杂度与二次时间复杂度之间的差异。为了解决这些失衡问题,我们开发了Hydraulis,它联合优化并行策略和数据分配。一方面,我们引入了具有动态异构并行策略的大型模型训练,以应对训练迭代内部及跨迭代的序列长度变化。另一方面,我们设计了一种两阶段数据分配方法,在模型副本内部及副本之间实现了训练工作负载的良好平衡。实验结果表明,Hydraulis的性能比现有系统高出1.32至2.66倍。
英文摘要:
To optimize large Transformer model training, both efficient parallel computing and advanced data management are indispensable. However, current methods often assume a stable and uniform training workload, neglecting data-induced imbalances-arising from both sampling and packing processes-which can impede training performance. Specifically, data sampling imbalance arises from uneven sequence length distribution of the training data, while data packing imbalance stems from the discrepancy between the linear memory complexity and quadratic time complexity of the attention mechanism. To address these imbalance issues, we develop Hydraulis, which jointly optimizes the parallel strategies and data assignment. For one thing, we introduce large model training with dynamic heterogeneous parallel strategies in response to the sequence length variations within and across training iterations. For another, we devise a two-stage data assignment approach, which strikes a good balance in terms of the training workloads both within and across model replicas. Empirical results demonstrate that Hydraulis outperforms existing systems by 1.32-2.66 times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。