← All parts of this equation

Equation 1 · Part 3 · AI Memory Systems and the Bandwidth Wall in Practice: An Advanced Technical Guide

Symbol H

MKV=2⋅L⋅H⋅dh⋅b⋅s⋅pM_{\mathrm{KV}} = 2 \cdot L \cdot H \cdot d_h \cdot b \cdot s \cdot p
HH

What this part means

H is one factor in the product that computes the quantity on the left.

Its job in the formula

H is one factor in the product that computes the quantity on the left.

The passage around this formula

…capacity plan sized for the average context length will be wrong for the tail, and a naive contiguous allocator sized for the tail will waste most of its memory on requests that never reach it. with L transformer layers, H key-value heads, dhd_h head dimension, b batch size, s sequence length and p bytes per stored element, the factor of two counting keys and values separately. Every strategy below is, mechanically, an attempt to shrink one term of this product without shrinking the model’s effective context.

Read this part in the article →

Learn the underlying idea

A variable is a named place for a value. Its letter is a local label: x can mean position in one formula and a data point in another.

Open the illustrated variables: a letter stands for a value guide →

See this notation across published equations →

Sources cited in the article section

These citations provide research context; check each source for the exact claim it supports.