PatrickStar:通过基于块的存储管理并行训练预训练模型
PatrickStar: Parallel Training of Pre-trained Models via Chunk-based Memory Management
摘要:
预训练模型(PTM)正在彻底改变人工智能(AI)技术。然而,PTM训练的硬件要求非常高,使其成为一小部分人的游戏。因此,我们提出了PatrickStar系统,以降低PTM的硬件要求,并使其可供任何人使用。PatrickStar使用CPU-GPU异构内存空间存储模型数据。与现有的工作不同,我们组织的模型数据在内存块和动态分布在异构内存。在预热迭代中收集的运行时内存统计数据的指导下,在异构内存中高效地编排块,并产生更低的CPU-GPU数据传输量和更高的带宽利用率。PatrickStar与零冗余优化器共生,可扩展到多个节点上的多个GPU。%使用数据并行。该系统可以在更大的模型和更大的批量上进行训练任务,这是现有工作无法完成的。实验结果表明,PatrickStar将模型规模扩展到DeepSpeed的2.27和2.5倍,并始终表现出显着更高的执行速度。PatricStar还在32 GPU集群上成功运行了175 B GPT 3训练任务。我们的代码可在https://github.com/Tencent/PatrickStar上公开获取。
英文摘要:
The pre-trained model (PTM) is revolutionizing Artificial Intelligence (AI) technology. However, the hardware requirement of PTM training is prohibitively high, making it a game for a small proportion of people. Therefore, we proposed PatrickStar system to lower the hardware requirements of PTMs and make them accessible to everyone. PatrickStar uses the CPU-GPU heterogeneous memory space to store the model data. Different from existing works, we organize the model data in memory chunks and dynamically distribute them in the heterogeneous memory. Guided by the runtime memory statistics collected in a warm-up iteration, chunks are orchestrated efficiently in heterogeneous memory and generate lower CPU-GPU data transmission volume and higher bandwidth utilization. Symbiosis with the Zero Redundancy Optimizer, PatrickStar scales to multiple GPUs on multiple nodes. % using data parallelism. The system can train tasks on bigger models and larger batch sizes, which cannot be accomplished by existing works. Experimental results show that PatrickStar extends model scales 2.27 and 2.5 times of DeepSpeed, and consistently exhibits significantly higher execution speed. PatricStar also successfully runs the 175B GPT3 training task on a 32 GPU cluster. Our code is publicly available at https://github.com/Tencent/PatrickStar.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。