arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.10299cs.LGcs.AI
收藏

HW-GPT-Bench:面向语言模型的硬件感知架构基准

HW-GPT-Bench: Hardware-Aware Architecture Benchmark for Language Models

University of Freiburg(弗赖堡大学);Bosch Center for Artificial Intelligence (BCAI)(博世人工智能中心);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分所);ScaDS.AI, Leipzig(莱比锡ScaDS.AI)

Rhea Sanjay Sukthanker, Arber Zela, Benedikt Staffler, Aaron Klein, Lennart Purucker, Joerg K. H. Franke, Frank Hutter

AI总结:

针对大模型硬件指标权衡评估计算成本高的问题,提出硬件感知基准HW-GPT-Bench,通过代理预测、权重共享等技术快速评估多设备下GPT-2家族架构的硬件与性能指标,支持高效多目标优化。

摘要:

语言模型规模不断扩大,亟需从多个维度开展全面分析,以评估延迟、能耗、GPU显存占用与性能等关键硬件指标之间的权衡关系。在特定硬件约束下确定最优模型配置正变得至关重要,但由于需要在多类设备上开展穷尽式训练与评估,计算负载过高,这一目标仍颇具挑战。为解决该问题,我们提出HW-GPT-Bench这一硬件感知基准,它利用代理预测来近似GPT-2家族架构在13种设备上的各类硬件指标,所覆盖的架构参数规模最高达15.5亿。我们的代理模型通过校准后的预测与可靠的不确定性估计,能够准确建模能耗与延迟测量中固有的异方差噪声。在困惑度估计方面,我们采用神经架构搜索(NAS)中的权重共享技术,继承最大规模GPT-2模型的预训练权重。最后,我们仅用数秒就模拟了多种多目标优化算法的优化轨迹,以此验证了HW-GPT-Bench的实用性。

英文摘要:

The increasing size of language models necessitates a thorough analysis across multiple dimensions to assess trade-offs among crucial hardware metrics such as latency, energy consumption, GPU memory usage, and performance. Identifying optimal model configurations under specific hardware constraints is becoming essential but remains challenging due to the computational load of exhaustive training and evaluation on multiple devices. To address this, we introduce HW-GPT-Bench, a hardware-aware benchmark that utilizes surrogate predictions to approximate various hardware metrics across 13 devices of architectures in the GPT-2 family, with architectures containing up to 1.55B parameters. Our surrogates, via calibrated predictions and reliable uncertainty estimates, faithfully model the heteroscedastic noise inherent in the energy and latency measurements. To estimate perplexity, we employ weight-sharing techniques from Neural Architecture Search (NAS), inheriting pretrained weights from the largest GPT-2 model. Finally, we demonstrate the utility of HW-GPT-Bench by simulating optimization trajectories of various multi-objective optimization algorithms in just a few seconds.

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

↑