arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06504cs.DC
收藏

LoHan:在消费级GPU上微调100B模型的低成本高性能框架

LoHan: Low-Cost High-Performance Framework to Fine-Tune 100B Model on a Consumer GPU

Changyue Liao, Mo Sun, Zihan Yang, Jun Xie, Kaiqi Chen, Binhang Yuan, Fei Wu, Zeke Wang

AI总结:

本文提出低成本高性能框架LoHan,通过主动梯度卸载和流量感知激活交换机制优化服务器内张量移动,实现单张消费级GPU微调100B以上模型,吞吐量超越基线且成本效益优于DGX-A100集群。

摘要:

如今,AI研究人员越来越热衷于为下游任务微调预训练的LLM,其规模已增长至超过100B参数。微调此类庞大模型的一种方法是聚合多张GPU的显存。然而,对于大多数预算有限且无法购买高端GPU服务器的数据科学家来说,这种方法带来了难以承受的成本。本文专注于在具有有限主存容量的普通服务器上,使用单张消费级GPU进行LLM微调,这对大多数AI研究人员来说是可及的。在这种场景下,现有的基于卸载的方法由于缺乏服务器内部张量移动的整体管理,无法高效地微调LLM。为此,我们提出了LoHan,这是一个低成本、高性能的深度学习训练框架,能够在配备消费级GPU和有限主存容量的普通服务器上高效微调100B规模的模型。其核心思想是将整体卸载流量作为一个优化维度,具体包括:1)主动梯度卸载,以及2)整体流量感知的激活交换机制。实验结果表明:1)LoHan首次在RTX 4090和256 GB主存上微调了175B模型;2)在微调较小的13B模型时,LoHan的吞吐量比最先进的基线方法高出2.32倍;3)在微调175B模型时,LoHan使得廉价的低端消费级GPU比DGX-A100集群具有更高的成本效益。

英文摘要:

Nowadays, AI researchers become more and more interested in fine-tuning a pre-trained LLM, whose size has grown to up to over 100B parameters, for their downstream tasks. One approach to fine-tune such huge models is to aggregate device memory from many GPUs. However, this approach introduces prohibitive costs for most data scientists with a limited budget for high-end GPU servers. In this paper, we focus on LLM fine-tuning on a single consumer-grade GPU in a commodity server with limited main memory capacity, which is accessible to most AI researchers. In such a scenario, existing offloading-based methods fail to fine-tune an LLM efficiently due to a lack of holistic intra-server tensor movement management. To this end, we present LoHan, a low-cost, high-performance deep learning training framework that enables efficient 100B-scale model fine-tuning on a commodity server with a consumer-grade GPU and limited main memory capacity. The key idea is to add holistic offloading traffic as an optimization dimension for 1)active gradient offloading, and 2)holistic traffic-aware activation swapping mechanism. The experimental results show that 1)LoHan is the first to fine-tune a 175B model on an RTX 4090 and 256 GB main memory, 2)LoHan achieves 2.32x throughput than the state-of-the-art baselines when fine-tuning a small 13B model, and 3)LoHan enables a cheap low-end consumer GPU to have higher cost-effectiveness than a DGX-A100 cluster when fine-tuning a 175B model.

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

↑