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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Zili, Zhong, Yinmin, Jiang, Yimin, Hu, Hanpeng, Sun, Jianjian, Ge, Zheng, Zhu, Yibo, Jiang, Daxin, Jin, Xin
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918219823972352
author Zhang, Zili
Zhong, Yinmin
Jiang, Yimin
Hu, Hanpeng
Sun, Jianjian
Ge, Zheng
Zhu, Yibo
Jiang, Daxin
Jin, Xin
author_facet Zhang, Zili
Zhong, Yinmin
Jiang, Yimin
Hu, Hanpeng
Sun, Jianjian
Ge, Zheng
Zhu, Yibo
Jiang, Daxin
Jin, Xin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_04275
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DistTrain: Addressing Model and Data Heterogeneity with Disaggregated Training for Multimodal Large Language Models
Zhang, Zili
Zhong, Yinmin
Jiang, Yimin
Hu, Hanpeng
Sun, Jianjian
Ge, Zheng
Zhu, Yibo
Jiang, Daxin
Jin, Xin
Distributed, Parallel, and Cluster Computing
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.
title DistTrain: Addressing Model and Data Heterogeneity with Disaggregated Training for Multimodal Large Language Models
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2408.04275