arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.06664cs.ARcs.LG
收藏

Smart-Infinity:在真实系统上利用近存储处理实现快速大语言模型训练

Smart-Infinity: Fast Large Language Model Training using Near-Storage Processing on a Real System

Seoul National University(首尔大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Yonsei University(延世大学)

Hongsun Jang, Jaeyong Song, Jaewon Jung, Jaeyoung Park, Youngsok Kim, Jinho Lee

AI总结:

本文提出 Smart-Infinity,通过近存储加速器执行参数更新、固定缓冲的数据传输重叠及 GPU 压缩/加速器解压,消除存储卸载训练瓶颈并显著加速,且已集成于 PyTorch。

摘要:

近年来,大语言模型(LLM)的巨大进步主要由参数数量的增长所驱动。这带来了巨大的内存容量需求,仅为满足容量就必须使用数十块 GPU。一种流行的解决方案是存储卸载训练,即将主机内存和存储用作扩展的内存层次结构。然而,这显然要以存储带宽瓶颈为代价,因为与 GPU 设备内存相比,存储设备的带宽要低几个数量级。我们的工作 Smart-Infinity 在真实系统上使用近存储处理设备来解决存储卸载式 LLM 训练中的存储带宽瓶颈。Smart-Infinity 的主要组件是 SmartUpdate,它在定制的近存储加速器上执行参数更新。我们发现,将参数更新移至存储端可消除大部分存储流量。此外,我们提出了一种高效的数据传输处理器结构,以解决 Smart-Infinity 的系统集成问题。该处理器通过复用设备缓冲区,使数据传输能够在固定内存消耗下重叠执行。最后,我们提出加速器辅助的梯度压缩/解压缩,以增强 Smart-Infinity 的可扩展性。当扩展到多个近存储处理设备时,共享通道上的写流量会成为瓶颈。为缓解这一问题,我们在 GPU 上压缩梯度,并在加速器上对其进行解压缩。这通过减少流量提供了进一步加速。结果表明,与基线相比,Smart-Infinity 实现了显著的加速。值得注意的是,Smart-Infinity 是一种即用型方法,已在真实系统上完全集成到 PyTorch 中。我们将开源 Smart-Infinity,以促进其使用。

英文摘要:

The recent huge advance of Large Language Models (LLMs) is mainly driven by the increase in the number of parameters. This has led to substantial memory capacity requirements, necessitating the use of dozens of GPUs just to meet the capacity. One popular solution to this is storage-offloaded training, which uses host memory and storage as an extended memory hierarchy. However, this obviously comes at the cost of storage bandwidth bottleneck because storage devices have orders of magnitude lower bandwidth compared to that of GPU device memories. Our work, Smart-Infinity, addresses the storage bandwidth bottleneck of storage-offloaded LLM training using near-storage processing devices on a real system. The main component of Smart-Infinity is SmartUpdate, which performs parameter updates on custom near-storage accelerators. We identify that moving parameter updates to the storage side removes most of the storage traffic. In addition, we propose an efficient data transfer handler structure to address the system integration issues for Smart-Infinity. The handler allows overlapping data transfers with fixed memory consumption by reusing the device buffer. Lastly, we propose accelerator-assisted gradient compression/decompression to enhance the scalability of Smart-Infinity. When scaling to multiple near-storage processing devices, the write traffic on the shared channel becomes the bottleneck. To alleviate this, we compress the gradients on the GPU and decompress them on the accelerators. It provides further acceleration from reduced traffic. As a result, Smart-Infinity achieves a significant speedup compared to the baseline. Notably, Smart-Infinity is a ready-to-use approach that is fully integrated into PyTorch on a real system. We will open-source Smart-Infinity to facilitate its use.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑