← Back to article

Equation 2 · Serving a Frontier Model: The KV Cache, Batching, and What a Token Actually Costs

What does this equation mean?

LL

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

the number of layers. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

LL

Symbol L

the number of layers.

Understand this part →

How to interpret it

Read this expression with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

for L layers, nkvn_{\mathrm{kv}} key–value heads, head dimension dheadd_{\mathrm{head}} , sequence length s , batch size b , and p bytes per element. The factor of two counts keys and values.

Read the equation in its article →

Sources cited in the article section

These citations give research context. Read each source to check which claims it supports.

Return to Serving a Frontier Model: The KV Cache, Batching, and What a Token Actually Costs

Browse the mathematical compendium →