← All parts of this equation

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

multiplication

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

What this part means

Multiply the quantities on either side.

Its job in the formula

Multiply the quantities on either side.

The passage around this formula

The key-value cache is the part of a serving system’s memory footprint that a purchasing decision cannot fix, because it does not exist until a request is running. It grows with every generated token, in proportion to context length, batch size, layer count and head dimension, and its lifetime is exactly the lifetime of the request that owns it — arriving and departing unpredictably, at whatever size that request’s conversation happens to reach. A 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…

Read this part in the article →

Learn the underlying idea

Multiplication scales one quantity by another. A dot, a cross, or adjacent symbols can indicate a product.

Open the illustrated multiplication: combining factors guide →

Sources cited in the article section

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