# Prompt caching

Type: Pattern · Live URL: https://chronoscope.hopperlabs.ai/#/prompt-caching

Prompt caching reuses computation for a previously processed prompt prefix.

[Prompt caching in Chronoscope](https://chronoscope.hopperlabs.ai/#/prompt-caching) · [Prompt Cache reuses attention states across prompts](https://arxiv.org/abs/2311.04934) · [OpenAI offers automatic prompt caching in its API](https://openai.com/index/api-prompt-caching/) · [vLLM previews its V1 scheduler and prefix cache](https://vllm.ai/blog/2025-01-27-v1-alpha-release)

## Prompt Cache reuses attention states across prompts

The researchers precomputed attention states for reusable prompt modules and measured the reduction in time spent processing repeated context.

[Prompt caching in Chronoscope](https://chronoscope.hopperlabs.ai/#/prompt-caching) · [Prompt Cache reuses attention states across prompts](https://arxiv.org/abs/2311.04934)

## Timeline

- 2023-11-07 — Prompt Cache reuses attention states across prompts [Prompt Cache reuses attention states across prompts](https://arxiv.org/abs/2311.04934) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2023-prompt-cache-reuses-attention-states-across-prompts)

- 2024-10-01 — OpenAI offers automatic prompt caching in its API [OpenAI offers automatic prompt caching in its API](https://openai.com/index/api-prompt-caching/) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2024-openai-offers-automatic-prompt-caching-in-its-api)

- 2025-01-27 — vLLM previews its V1 scheduler and prefix cache [vLLM previews its V1 scheduler and prefix cache](https://vllm.ai/blog/2025-01-27-v1-alpha-release) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2025-vllm-previews-its-v1-scheduler-and-prefix-cache)

## Related articles

- [AI Engineering](/wiki/ai-engineering/) (covered-in)
- [Model serving](/wiki/model-serving/) (shares-milestones)
- [Continuous batching](/wiki/continuous-batching/) (shares-milestones)
- [DeepSeek](/wiki/deepseek-ai/) (shares-milestones)
