arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04275cs.DC
收藏

DistTrain: 通过解耦训练解决多模态大语言模型中的模型与数据异质性

DistTrain: Addressing Model and Data Heterogeneity with Disaggregated Training for Multimodal Large Language Models

Peking University(北京大学);StepFun(阶跃星辰)

Zili Zhang, Yinmin Zhong, Yimin Jiang, Hanpeng Hu, Jianjian Sun, Zheng Ge, Yibo Zhu, Daxin Jiang, Xin Jin

AI总结:

DistTrain通过解耦模型编排和数据预处理,提升多模态大语言模型的训练效率和资源利用率。

摘要:

多模态大语言模型(LLMs)使LLM能够处理文本、图像和音频等多种形式的输入和输出。然而,多种模态的整合引入了模型和训练数据的异质性,带来了独特的系统挑战。我们提出了DistTrain,一种用于多模态LLM的解耦训练系统。DistTrain结合了两种新的解耦技术来分别解决模型和数据异质性。第一种是解耦模型编排,将模态编码器、LLM主干和模态生成器的训练分离。这允许这三个组件能够自适应地独立编排其资源和并行配置。第二种是解耦数据预处理,将数据预处理与训练分离。这消除了预处理和训练之间的资源竞争,并使高效的数据重新排序以缓解由于数据异质性导致的微批次内和微批次间的滞后问题。我们评估了DistTrain在不同规模的多模态LLM上大型生产集群中的表现。实验结果表明,DistTrain在使用1172块GPU训练72B多模态LLM时实现了54.7%的模型FLOPs利用率(MFU),在训练吞吐量方面比Megatron-LM高出多达2.2倍。

英文摘要:

Multimodal large language models (LLMs) empower LLMs to ingest inputs and generate outputs in multiple forms, such as text, image, and audio. However, the integration of multiple modalities introduces heterogeneity in both the model and training data, creating unique systems challenges. We propose DistTrain, a disaggregated training system for multimodal LLMs. DistTrain incorporates two novel disaggregation techniques to address model and data heterogeneity, respectively. The first is disaggregated model orchestration, which separates the training for modality encoder, LLM backbone, and modality generator. This allows the three components to adaptively and independently orchestrate their resources and parallelism configurations. The second is disaggregated data preprocessing, which decouples data preprocessing from training. This eliminates resource contention between preprocessing and training, and enables efficient data reordering to mitigate stragglers within and between microbatches caused by data heterogeneity. We evaluate DistTrain across different sizes of multimodal LLMs on a large-scale production cluster. The experimental results show that DistTrain achieves 54.7% Model FLOPs Utilization (MFU) when training a 72B multimodal LLM on 1172 GPUs and outperforms Megatron-LM by up to 2.2x on training throughput.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑