PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 3, 20248 citationsOpen Access

Breaking the Memory Wall: A Study of I/O Patterns and GPU Memory Utilization for Hybrid CPU-GPU Offloaded Optimizers

View Full Paper
AMAvinash MauryaJYJie YeMRM. Mustafa Rafique

Key Points

Key points are not available for this paper at this time.

Abstract

Transformers and LLMs have seen rapid adoption in all domains.Their sizes have exploded to hundreds of billions of parameters and keep increasing.Under these circumstances, the training of transformers is slow and often takes in the order of weeks or months.Thanks to 3D model parallelism (data, pipeline, and tensor-level parallelism), the training can scale to a large number of GPUs, which reduces the duration of the training but dramatically increases the cost.Even when a large number of GPUs are available, the aggregated GPU memory is often not enough to hold the full training state (optimizer state, model parameters, and gradients).To compensate, state-of-the-art approaches offload the optimizer state at least partially to the host memory and perform hybrid CPU-GPU computations.Such flexible solutions dramatically reduce the GPU memory utilization, which makes it feasible to run the training on a smaller number of GPUs at the cost of performance penalty.Unfortunately, the challenges and bottlenecks of adopting this strategy are not sufficiently studied by state-of-the-art, which results in poor management of the combined host-GPU memory and poor overlapping between data movements and computations.In this paper, we aim to fill this gap by characterizing the behavior of offloaded training using the DeepSpeed runtime.Specifically, we study the GPU memory utilization over time during each iteration, the activity on the PCIe related to transfers between the host memory and the GPU memory, and the relationship between resource utilization and the steps involved in each iteration.Thanks to this study, we reveal opportunities for future improvements of offloading solutions, which enable greater flexibility to optimize the cost-performance trade-off in the context of transformer and LLM training. CCS CONCEPTS• Computing methodologies → Distributed computing methodologies; • General and reference → Performance; Measurement.Permission to make digital or hard copies of part or all of this work for personal

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Maurya et al. (2024) studied this question.

synapsesocial.com/papers/68e66728b6db6435875f34d2https://doi.org/10.1145/3659995.3660038
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Efficient Memory Management for Large Language Model Serving with PagedAttention2023 · 1,463 citations
  2. 2ZeRO-Offload: Democratizing Billion-Scale Model Training2021 · 61 citations
  3. 3Behavioral Safety and Context Retention of Large Language Models in a Longitudinal ICU Simulation under Offline Conditions2023 · 2,681 citations
  4. 4Reducing Activation Recomputation in Large Transformer Models2022 · 55 citations
  5. 5Switch Transformers: Scaling to Trillion Parameter Models with Simple\n and Efficient Sparsity2021 · 710 citations