面向资源受限平台的生成式AI推理性能的技术解决方案
Technology solutions targeting the performance of gen-AI inference in resource constrained platforms
AI总结:
本文针对生成式AI推理在资源受限平台上的内存压力问题,提出两种技术方案,通过分层屋顶线分析模型评估其在容量和带宽上的性能影响。
摘要:
生成式AI工作负载,特别是语言模型推理,正加剧芯片内外的内存压力。多模态输入如视频流或图像以及下游应用如问答(QA)和大文档分析需要长上下文长度,要求缓存大量前缀标记的键值状态。即使在资源受限设备上进行低度并发推理服务,也会进一步增加内存容量压力和运行时内存管理复杂性。本文通过分层屋顶线分析模型评估两种新兴技术方案在容量和带宽上的性能影响。对于大模型(如13B参数)和上下文长度,研究了高带宽存储(HBS)的性能影响,并概述了实现可接受吞吐量的带宽/延迟需求。对于小模型(如1B参数),评估了 bonded 全局缓冲器内存芯片片的 merits,并提出如何最佳利用它。
英文摘要:
The rise of generative AI workloads, particularly language model inference, is intensifying on/off-chip memory pressure. Multimodal inputs such as video streams or images and downstream applications like Question Answering (QA) and analysis over large documents incur long context lengths, requiring caching of massive Key and Value states of the previous tokens. Even a low degree of concurrent inference serving on resource-constrained devices, like mobiles, can further add to memory capacity pressure and runtime memory management complexity. In this paper, we evaluate the performance implications of two emerging technology solutions to alleviate the memory pressure in terms of both capacity and bandwidth using a hierarchical roofline-based analytical performance model. For large models (e.g., 13B parameters) and context lengths, we investigate the performance implications of High Bandwidth Storage (HBS) and outline bandwidth/latency requirements to achieve an acceptable throughput for interactivity. For small models (e.g., 1B parameters), we evaluate the merit of a bonded global buffer memory chiplet and propose how to best utilize it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。