AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

PagedAttention is a technique introduced by the vLLM project to improve the efficiency of Large Language Model inference. It addresses the fragmentation and overhead issues in managing the KV cache, which stores attention states for generating tokens. By treating the KV cache like virtual memory pages, PagedAttention allows for dynamic allocation and sharing of memory blocks between sequences. This results in significant reductions in memory waste and enables higher batch sizes and throughput without requiring hardware changes.

Summary

PagedAttention is a memory management algorithm that adapts virtual memory paging concepts to optimize the storage and access of Key-Value (KV) caches in transformer models.

Key Concepts

Use Cases