arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.03134cs.ARcs.DCcs.LG
收藏

一种面向大语言模型推理的硬件评估框架

A Hardware Evaluation Framework for Large Language Model Inference

Princeton University(普林斯顿大学)

Hengrui Zhang, August Ning, Rohan Prabhakar, David Wentzlaff

AI总结:

提出 LLMCompass 硬件评估框架,通过自动映射调度和面积成本模型快速准确评估 LLM 推理硬件,并据此发现相比 A100 性能/成本最高提升 3.41 倍的设计。

摘要:

过去一年,大语言模型(LLM)的普及程度不断提高。其前所未有的规模以及随之而来的高昂硬件成本阻碍了更广泛的应用,因此需要高效的硬件设计。由于仅仅运行 LLM 推理就需要大量硬件,评估不同硬件设计成为新的瓶颈。\n 本工作提出 LLMCompass,这是一种面向 LLM 推理工作负载的硬件评估框架。LLMCompass 快速、准确、通用,能够描述和评估不同的硬件设计。LLMCompass 包含一个映射器,用于自动寻找性能最优的映射与调度。它还纳入了一个基于面积的成本模型,以帮助架构师推理其设计选择。与真实硬件相比,LLMCompass 的估计时延在具有不同输入规模的各类算子上平均误差率为 10.4%,对于 LLM 推理的平均误差率为 4.1%。借助 LLMCompass,在商用硬件上模拟运行 GPT-3 175B 推理的 4 节点 NVIDIA A100 GPU 节点可在 16 分钟内完成,其中包括映射器的 26,400 轮参数搜索。\n 在 LLMCompass 的帮助下,本工作得出了架构层面的启示,并探索了新的高性价比硬件设计。通过降低计算能力,或用传统 DRAM 替代高带宽存储器(HBM),这些新设计相比 NVIDIA A100 可实现最高 3.41 倍的性能/成本提升,使其成为推动 LLM 普及的有前景选择。\n LLMCompass 计划完全开源。

英文摘要:

The past year has witnessed the increasing popularity of Large Language Models (LLMs). Their unprecedented scale and associated high hardware cost have impeded their broader adoption, calling for efficient hardware designs. With the large hardware needed to simply run LLM inference, evaluating different hardware designs becomes a new bottleneck. This work introduces LLMCompass, a hardware evaluation framework for LLM inference workloads. LLMCompass is fast, accurate, versatile, and able to describe and evaluate different hardware designs. LLMCompass includes a mapper to automatically find performance-optimal mapping and scheduling. It also incorporates an area-based cost model to help architects reason about their design choices. Compared to real-world hardware, LLMCompass' estimated latency achieves an average 10.4% error rate across various operators with various input sizes and an average 4.1% error rate for LLM inference. With LLMCompass, simulating a 4-NVIDIA A100 GPU node running GPT-3 175B inference can be done within 16 minutes on commodity hardware, including 26,400 rounds of the mapper's parameter search. With the aid of LLMCompass, this work draws architectural implications and explores new cost-effective hardware designs. By reducing the compute capability or replacing High Bandwidth Memory (HBM) with traditional DRAM, these new designs can achieve as much as 3.41x improvement in performance/cost compared to an NVIDIA A100, making them promising choices for democratizing LLMs. LLMCompass is planned to be fully open-source.

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

↑