Efficient LLM Inference with Kcache

Qiaozhi He, Zhihua Wu
4/28/2024
cs.CL

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{he2024efficient,
  title  = {Efficient LLM Inference with Kcache},
  author = {Qiaozhi He and Zhihua Wu},
  year   = {2024},
  eprint = {2404.18057},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.18057v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.18057.svg)](https://codeofpaper.com/paper/2404.18057)

Discussion