使用Cornstarch高效分布式多模态大语言模型训练
Efficient Distributed MLLM Training with Cornstarch
AI总结:
提出Cornstarch框架,通过冻结感知流水线并行和令牌工作负载平衡的上下文并行,解决多模态大语言模型训练中的异构性问题,平均吞吐量提升2.26倍。
摘要:
多模态大语言模型(MLLM)通过结合异构模型架构来扩展大语言模型(LLM)的能力,以处理图像和音频等多种模态。然而,MLLM模型结构和数据类型固有的异构性使得对现有LLM训练框架的临时扩展不适合高效的MLLM训练。尽管有一些工作尝试解决MLLM训练中的异构性,但它们的方法仅限于表面考虑MLLM的特性。在本文中,我们提出了Cornstarch,一个高效的分布式MLLM训练框架,它在模型和数据并行化中考虑了MLLM的独特特性。Cornstarch引入了冻结感知流水线并行和令牌工作负载平衡的上下文并行,以提高MLLM训练吞吐量。我们的广泛评估表明,Cornstarch在MLLM训练吞吐量方面平均优于最先进的解决方案2.26倍。Cornstarch是一个开源项目,可在https://github.com/cornstarch-org/Cornstarch获取。
英文摘要:
Multimodal large language models (MLLMs) extend the capabilities of large language models (LLMs) by combining heterogeneous model architectures to handle diverse modalities like images and audio. However, this inherent heterogeneity in MLLM model structure and data types makes makeshift extensions to existing LLM training frameworks unsuitable for efficient MLLM training. While there are a few works that have attempted to address the heterogeneity in MLLM training, their approaches are limited to only superficially considering the characteristics of MLLMs. In this paper, we present Cornstarch, an efficient distributed MLLM training framework that contemplates MLLM's unique characteristics in both model and data parallelization. Cornstarch introduces frozen-aware pipeline parallelism and token workload-balanced context parallelism to improve MLLM training throughput. Our extensive evaluation shows that Cornstarch outperforms state-of-the-art solutions by $2.26\times$ on average in terms of MLLM training throughput. Cornstarch is an open-source project available at https://github.com/cornstarch-org/Cornstarch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。