CoLLiE:大语言模型的高效协作训练
CoLLiE: Collaborative Training of Large Language Models in an Efficient Way
AI总结:
本文提出CoLLiE库,通过3D并行、PEFT方法和多种优化器实现大语言模型的高效协作训练,并在预训练、微调及指令微调场景中验证了其效率优势。
摘要:
大语言模型(LLMs)在广泛的自然语言处理任务中日益关键。得益于开源社区提供的预训练模型访问渠道,将这些模型适配到特定应用以提升性能已成为可能。然而,训练这些模型所需的大量资源催生了对高效解决方案的需求。本文介绍了CoLLiE,一个高效的库,通过3D并行、参数高效微调(PEFT)方法以及Lion、Adan、Sophia、LOMO和AdaLomo等优化器,促进大语言模型的协作训练。凭借其模块化设计和全面的功能,CoLLiE在效率、易用性和可定制性之间实现了均衡的结合。在预训练和微调场景中,与主流解决方案相比,CoLLiE已证明具有更优的训练效率。此外,我们对不同优化方法下模型规模与GPU内存消耗之间的相关性进行了实证评估,并对吞吐量进行了分析。最后,我们在指令微调语境下对各种优化器和PEFT方法进行了全面比较。CoLLiE可在https://github.com/OpenLMLab/collie获取。
英文摘要:
Large language models (LLMs) are increasingly pivotal in a wide range of natural language processing tasks. Access to pre-trained models, courtesy of the open-source community, has made it possible to adapt these models to specific applications for enhanced performance. However, the substantial resources required for training these models necessitate efficient solutions. This paper introduces CoLLiE, an efficient library that facilitates collaborative training of large language models using 3D parallelism, parameter-efficient fine-tuning (PEFT) methods, and optimizers such as Lion, Adan, Sophia, LOMO and AdaLomo. With its modular design and comprehensive functionality, CoLLiE offers a balanced blend of efficiency, ease of use, and customization. CoLLiE has proven superior training efficiency in comparison with prevalent solutions in pre-training and fine-tuning scenarios. Furthermore, we provide an empirical evaluation of the correlation between model size and GPU memory consumption under different optimization methods, as well as an analysis of the throughput. Lastly, we carry out a comprehensive comparison of various optimizers and PEFT methods within the instruction-tuning context. CoLLiE is available at https://github.com/OpenLMLab/collie.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。