Short Answer

Calculating KV Cache Size per Token

Consider a Transformer-based model with the following specifications: 12 layers, 8 attention heads per layer, and a key/value vector dimensionality of 64 for each head. When processing a single new token, what is the total number of floating-point values that must be added to the model's entire key-value cache? Show the formula you used for your calculation.

0

1

Updated 2025-10-06

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science