MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators (Artifacts)

The training of large language models (LLMs) typically needs costly GPUs, such as NVIDIA A100 or H100. They possess substantial high-bandwidth on-chip memory and rapid interconnects like NVLinks.The exorbitant expenses associated with LLM training pose not just an economic challenge but also a eocietal one, as it inrestricts the ability to train LLMs from scratch to a select few organizations. There is a significant interest in democratizing access to LLM training. This paper explores a potential solution by employing innovative parallel strategies on more affordable accelerators. Budget-friendly options like NVIDIA RTX 4090, while considerably less expensive and comparable in computational power to A100, are hindered by their limited memory capacity and reduced interconnect bandwidth, making the effective training of LLMs challenging. Conventional parallel strategies often result in high communication costs or excessive memory usage. Our paper introduces MEPIPE, a novel approach that includes a slice-level scheduling method for sequence pipeline parallelism. This method minimizes memory consumption without incurring additional communication overhead. Besides, MEPIPE utilizes fine-grained weight gradient computation to reduce idle time and mitigate imbalanced computation among slices. MEPIPE has demonstrated up to $1.68\times$ speedup ($1.35\times$ on average) on clusters equipped with 64 NVIDIA 4090 GPUs when training Llama models of varying sizes. 35\% Model FLOPS Utilization (MFU) is achieved in training Llama 13B model, being $2.5\times$ more cost-effective than A100 clusters.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-02-13
DOI
https://doi.org/10.5281/zenodo.14862956
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators (Artifacts)

Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
article

MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators (Artifacts)

article en

Abstract

The training of large language models (LLMs) typically needs costly GPUs, such as NVIDIA A100 or H100. They possess substantial high-bandwidth on-chip memory and rapid interconnects like NVLinks.The exorbitant expenses associated with LLM training pose not just an economic challenge but also a eocietal one, as it inrestricts the ability to train LLMs from scratch to a select few organizations. There is a significant interest in democratizing access to LLM training. This paper explores a potential solution by employing innovative parallel strategies on more affordable accelerators. Budget-friendly options like NVIDIA RTX 4090, while considerably less expensive and comparable in computational power to A100, are hindered by their limited memory capacity and reduced interconnect bandwidth, making the effective training of LLMs challenging. Conventional parallel strategies often result in high communication costs or excessive memory usage. Our paper introduces MEPIPE, a novel approach that includes a slice-level scheduling method for sequence pipeline parallelism. This method minimizes memory consumption without incurring additional communication overhead. Besides, MEPIPE utilizes fine-grained weight gradient computation to reduce idle time and mitigate imbalanced computation among slices. MEPIPE has demonstrated up to $1.68\times$ speedup ($1.35\times$ on average) on clusters equipped with 64 NVIDIA 4090 GPUs when training Llama models of varying sizes. 35\% Model FLOPS Utilization (MFU) is achieved in training Llama 13B model, being $2.5\times$ more cost-effective than A100 clusters.

Zenodo (CERN European Organization for Nuclear Research)
Tsinghua University (CN)
Industry, innovation and infrastructure
Openalex Percentile: Top 53%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.