PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
August 20, 2024International Journal for Research in Applied Science and Engineering Technology0 citationsOpen Access

Open-AI model Efficient Memory Reduce Management for the Large Language Models (LLMs) Serving with Paged Attention of sharing the KV Cashes

View Full Paper
KKK. Naveen Kumar

Key Points

Key points are not available for this paper at this time.

Abstract

Abstract: High throughput serving of large language models (LLMs) requires batching sufficiently many requests at a time. However, existing systems struggle because the key-value cache (KV cache) memory for each request is huge and grows and shrinks dynamically. When managed inefficiently, this memory can be significantly wasted by fragmentation and redundant duplication, limiting the batch size. To address this problem we proposed a Paged Attention. An alternative algorithm inspired by the classical virtual memory and paging techniques in operating systems. An LLM serving system that achieves (1) near-zero waste in KV cache memory and (2) flexible sharing of KV cache within and across requests to further reduce memory usage. Our evaluations show that LLM improves the throughput of popular LLMs by 2-4× with the same level of latency compared to the state-of-the-art systems, such as Faster Transformer and Orca. The improvement is more pronounced with longer sequences, larger models, and more complex decoding algorithms

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

K. Naveen Kumar (2024) studied this question.

synapsesocial.com/papers/68e5bb23b6db643587552e98https://doi.org/10.22214/ijraset.2024.63985
Ask AI
Helpful
Bookmark
Share
View Full Paper