Originalarbeiterreichbar
Efficient Memory Management for Large Language Model Serving with PagedAttention
Die Arbeit vom 12.09.2023, aus der der Inferenz-Server v
geprüft 10.11.2026Archivfassung (externe Seite, web.archive.org)
Worauf sich diese Seite beruft, wörtlich, abgerufen am 15.09.2026:
the key-value cache (KV cache) memory for each request is huge and grows and shrinks dynamically
bestätigt 10.11.2026flexible sharing of KV cache within and across requests to further reduce memory usage
bestätigt 10.11.2026we build v
bestätigt 10.11.2026LLM, an LLM serving system that achieves (1) near-zero waste in KV cache memory the KV cache of a single token demands 800 KB of space
bestätigt 10.11.2026This sequential generation process makes the workload memory-bound, underutilizing the computation power of GPUs and limiting the serving throughput.
bestätigt 10.11.2026this phase severely underutilizes GPU computation and becomes memory-bound
bestätigt 10.11.2026High throughput serving of large language models (LLMs) requires batching sufficiently many requests at a time.
bestätigt 10.11.2026Because the requests share the same model weights, the overhead of moving weights is amortized across the requests in a batch
bestätigt 10.11.2026After each iteration, completed requests are removed from the batch, and new ones are added.
bestätigt 10.11.2026only 20.4% - 38.2% of the KV cache memory is used to store the actual token states in the existing systems.
bestätigt 10.11.2026one can think of blocks as pages, tokens as bytes, and requests as processes.
bestätigt 10.11.2026with the same level of latency compared to the state-of-the-art systems, such as Faster
bestätigt 10.11.2026Transformer and Orca. fine-grained batching mechanisms, such as cellular batching (Gao et al., 2018) and iteration-level scheduling (Yu et al., 2022), have been proposed
bestätigt 10.11.2026
TRL schickt beim asynchronen Training nur noch den LoRA-Adapter an vLLM, Trainer und Inferenz brauchen keine gemeinsame Maschine mehrContinuous Batching im GlossarKV-Cache im GlossarvLLM im Glossar04 Was ein Modell an Hardware braucht05 Womit ein Modell läuft