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

使用Kcache实现高效的LLM推理

Efficient LLM Inference with Kcache

Qiaozhi He, Zhihua Wu

AI总结:

本文提出无需训练的KCache技术替代KV Cache,有效缓解LLM推理内存瓶颈,在保持准确率下将主流模型吞吐量提升40%。

摘要:

大型语言模型(LLMs)对AI应用产生了深远影响,尤其是在长文本理解和生成领域。KV Cache技术是业界最广泛使用的技术之一,它通过缓存先前计算的KV状态来确保高效的序列生成,但也引入了显著的内存开销。我们发现KV Cache并非必需,并提出了一种新颖的KCache技术来缓解LLMs推理过程中的内存瓶颈问题。KCache无需任何训练过程即可直接用于推理。我们的评估表明,在基准下KCache将主流LLMs的吞吐量提升了40%,同时保持准确率。

英文摘要:

Large Language Models(LLMs) have had a profound impact on AI applications, particularly in the domains of long-text comprehension and generation. KV Cache technology is one of the most widely used techniques in the industry. It ensures efficient sequence generation by caching previously computed KV states. However, it also introduces significant memory overhead. We discovered that KV Cache is not necessary and proposed a novel KCache technique to alleviate the memory bottleneck issue during the LLMs inference process. KCache can be used directly for inference without any training process, Our evaluations show that KCache improves the throughput of popular LLMs by 40% with the baseline, while keeping accuracy.

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

↑