Efficient LLM Inference with Kcache

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: He, Qiaozhi, Wu, Zhihua
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914773618130944
author He, Qiaozhi
Wu, Zhihua
author_facet He, Qiaozhi
Wu, Zhihua
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_18057
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient LLM Inference with Kcache
He, Qiaozhi
Wu, Zhihua
Computation and Language
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.
title Efficient LLM Inference with Kcache
topic Computation and Language
url https://arxiv.org/abs/2404.18057