← All parts of this equation

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

Symbol s

ss
ss

What this part means

the sequence length.

Its job in the formula

s is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Where the article explains it

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 passage around this formula

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 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.