Example

Example of a Window-based Cache

A window-based cache retains a fixed number of the most recent key-value pairs. For instance, a cache with a window size of four would store the key-value pairs corresponding to indices i3i-3, i2i-2, i1i-1, and ii. This results in a memory component of size 4x2, as it is composed of four separate key vectors and four separate value vectors.

Image 0

0

1

Updated 2025-10-04

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Computing Sciences