Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Feng, Weiqi, Chen, Yangrui, Wang, Shaoyu, Peng, Yanghua, Lin, Haibin, Yu, Minlan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908388303044608
author Feng, Weiqi
Chen, Yangrui
Wang, Shaoyu
Peng, Yanghua
Lin, Haibin
Yu, Minlan
author_facet Feng, Weiqi
Chen, Yangrui
Wang, Shaoyu
Peng, Yanghua
Lin, Haibin
Yu, Minlan
contents Multimodal large language models (MLLMs) have extended the success of large language models (LLMs) to multiple data types, such as image, text and audio, achieving significant performance in various domains, including multimodal translation, visual question answering and content generation. Nonetheless, existing systems are inefficient to train MLLMs due to substantial GPU bubbles caused by the heterogeneous modality models and complex data dependencies in 3D parallelism. This paper proposes Optimus, a distributed MLLM training system that reduces end-to-end MLLM training time. Optimus is based on our principled analysis that scheduling the encoder computation within the LLM bubbles can reduce bubbles in MLLM training. To make scheduling encoder computation possible for all GPUs, Optimus searches the separate parallel plans for encoder and LLM, and adopts a bubble scheduling algorithm to enable exploiting LLM bubbles without breaking the original data dependencies in the MLLM model architecture. We further decompose encoder layer computation into a series of kernels, and analyze the common bubble pattern of 3D parallelism to carefully optimize the sub-millisecond bubble scheduling, minimizing the overall training time. Our experiments in a production cluster show that Optimus accelerates MLLM training by 20.5%-21.3% with ViT-22B and GPT-175B model over 3072 GPUs compared to baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2408_03505
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitation
Feng, Weiqi
Chen, Yangrui
Wang, Shaoyu
Peng, Yanghua
Lin, Haibin
Yu, Minlan
Computation and Language
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
Multimodal large language models (MLLMs) have extended the success of large language models (LLMs) to multiple data types, such as image, text and audio, achieving significant performance in various domains, including multimodal translation, visual question answering and content generation. Nonetheless, existing systems are inefficient to train MLLMs due to substantial GPU bubbles caused by the heterogeneous modality models and complex data dependencies in 3D parallelism. This paper proposes Optimus, a distributed MLLM training system that reduces end-to-end MLLM training time. Optimus is based on our principled analysis that scheduling the encoder computation within the LLM bubbles can reduce bubbles in MLLM training. To make scheduling encoder computation possible for all GPUs, Optimus searches the separate parallel plans for encoder and LLM, and adopts a bubble scheduling algorithm to enable exploiting LLM bubbles without breaking the original data dependencies in the MLLM model architecture. We further decompose encoder layer computation into a series of kernels, and analyze the common bubble pattern of 3D parallelism to carefully optimize the sub-millisecond bubble scheduling, minimizing the overall training time. Our experiments in a production cluster show that Optimus accelerates MLLM training by 20.5%-21.3% with ViT-22B and GPT-175B model over 3072 GPUs compared to baselines.
title Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitation
topic Computation and Language
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2408.03505