Enhancing Memory Efficiency in Large Language Model Training Through Chronos-aware Pipeline Parallelism

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Lin, Xinyuan, Li, Chenlu, Huang, Zongle, Wang, Chunyu, Xiao, Bo, Yang, Huazhong, Duan, Shishi, Liu, Yongpan
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911118199357440
author Lin, Xinyuan
Li, Chenlu
Huang, Zongle
Wang, Chunyu
Xiao, Bo
Yang, Huazhong
Duan, Shishi
Liu, Yongpan
author_facet Lin, Xinyuan
Li, Chenlu
Huang, Zongle
Wang, Chunyu
Xiao, Bo
Yang, Huazhong
Duan, Shishi
Liu, Yongpan
contents Larger model sizes and longer sequence lengths have empowered the Large Language Model (LLM) to achieve outstanding performance across various domains. However, this progress brings significant storage capacity challenges for LLM pretraining. High Bandwidth Memory (HBM) is expensive and requires more advanced packaging technologies for capacity expansion, creating an urgent need for memory-efficient scheduling strategies. Yet, prior pipeline parallelism schedules have primarily focused on reducing bubble overhead, often neglecting memory efficiency and lacking compatibility with other memory-efficient strategies. Consequently, these methods struggle to meet the storage demands of storage capacity for next-generation LLM. This work presents ChronosPipe, a Chronos-aware pipeline parallelism for memory-efficient LLM pretraining. The core insight of ChronosPipe is to treat HBM as a fast but small 'cache,' optimizing and exploiting temporal locality within LLM pretraining to enhance HBM utilization. ChronosPipe introduces a pipeline scheduling strategy, Chronos-Pipe, to reduce the extrinsic overhead that disrupts the temporal locality of activations. Additionally, it leverages Chronos-Recomp and Chronos-Offload to efficiently harness the intrinsic temporal locality of activations and weights in Deep Neural Networks. Experiment results show that ChronosPipe can expand the trainable model size by 2.4x while maintaining comparable throughput, achieving 1.5x better than the 1F1B strategy combined with recomputation.
format Preprint
id arxiv_https___arxiv_org_abs_2503_03182
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing Memory Efficiency in Large Language Model Training Through Chronos-aware Pipeline Parallelism
Lin, Xinyuan
Li, Chenlu
Huang, Zongle
Wang, Chunyu
Xiao, Bo
Yang, Huazhong
Duan, Shishi
Liu, Yongpan
Distributed, Parallel, and Cluster Computing
Larger model sizes and longer sequence lengths have empowered the Large Language Model (LLM) to achieve outstanding performance across various domains. However, this progress brings significant storage capacity challenges for LLM pretraining. High Bandwidth Memory (HBM) is expensive and requires more advanced packaging technologies for capacity expansion, creating an urgent need for memory-efficient scheduling strategies. Yet, prior pipeline parallelism schedules have primarily focused on reducing bubble overhead, often neglecting memory efficiency and lacking compatibility with other memory-efficient strategies. Consequently, these methods struggle to meet the storage demands of storage capacity for next-generation LLM. This work presents ChronosPipe, a Chronos-aware pipeline parallelism for memory-efficient LLM pretraining. The core insight of ChronosPipe is to treat HBM as a fast but small 'cache,' optimizing and exploiting temporal locality within LLM pretraining to enhance HBM utilization. ChronosPipe introduces a pipeline scheduling strategy, Chronos-Pipe, to reduce the extrinsic overhead that disrupts the temporal locality of activations. Additionally, it leverages Chronos-Recomp and Chronos-Offload to efficiently harness the intrinsic temporal locality of activations and weights in Deep Neural Networks. Experiment results show that ChronosPipe can expand the trainable model size by 2.4x while maintaining comparable throughput, achieving 1.5x better than the 1F1B strategy combined with recomputation.
title Enhancing Memory Efficiency in Large Language Model Training Through Chronos-aware Pipeline Parallelism
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2503.03182