# Paged attention

Type: Pattern · Live URL: https://chronoscope.hopperlabs.ai/#/paged-attention

PagedAttention manages the key-value cache of an inference server in blocks so it can allocate memory as requests grow.

[Paged attention in Chronoscope](https://chronoscope.hopperlabs.ai/#/paged-attention) · [The vLLM team introduces a serving engine built on PagedAttention](https://vllm.ai/blog/2023-06-20-vllm) · [vLLM applies paged memory management to model serving](https://arxiv.org/abs/2309.06180) · [NVIDIA documents paged attention in inference optimization](https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/)

## vLLM applies paged memory management to model serving

The vLLM paper split each request's attention cache into blocks that need not occupy contiguous memory. The approach reduced wasted GPU memory and let the server batch more requests.

[Paged attention in Chronoscope](https://chronoscope.hopperlabs.ai/#/paged-attention) · [vLLM applies paged memory management to model serving](https://arxiv.org/abs/2309.06180)

## Timeline

- 2023-06-20 — The vLLM team introduces a serving engine built on PagedAttention [The vLLM team introduces a serving engine built on PagedAttention](https://vllm.ai/blog/2023-06-20-vllm) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2023-the-vllm-team-introduces-a-serving-engine-built-on-pagedattention)

- 2023-09-12 — vLLM applies paged memory management to model serving [vLLM applies paged memory management to model serving](https://arxiv.org/abs/2309.06180) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2023-vllm-pagedattention)

- 2023-11-17 — NVIDIA documents paged attention in inference optimization [NVIDIA documents paged attention in inference optimization](https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2023-nvidia-documents-paged-attention-in-inference-optimization)

## Related articles

- [AI Engineering](/wiki/ai-engineering/) (covered-in)
- [KV caching](/wiki/kv-caching/) (shares-milestones)
- [Model serving](/wiki/model-serving/) (shares-milestones)
- [vLLM](/wiki/vllm/) (shares-milestones)
