All glossary terms

Model architecture

Context window

How much text one request can hold, prompt plus reply. It prices the KV cache per user, and longer windows trade seats on the card for longer documents.

The context window is the model-side promise: this many tokens fit in one request, prompt and generated reply together. It is an architecture property, set at training time, not a serving configuration. What it costs the serving layer is direct, because the KV cache that supports the window scales with every token in it: more window means more cache bytes per user at every layer, for every concurrent request the card holds.

The bytes are the pricing. Per user, the cache is cache bytes per token multiplied by the tokens actually resident - so a 4k window and a 32k window differ by eight times the per-user memory, on the same model at the same precision. Since free memory after weights is fixed, the concurrency a card can grant falls in the same proportion, which is why the window a product needs should be sized from the documents it actually serves rather than from the headline the model market quotes.

The honest answer names the trade in seats. A short window with paged, quantized, or architecturally slim cache keeps per-user memory low and concurrency high; a long window buys the ability to answer on long documents and pays per-user memory for every request, busy or not, resident or not. Both are valid products; only one of them has done the per-user arithmetic it is charging.

A worked example

The same 70B-class model at 160 KiB of cache per resident token on a card with 18 GiB free after its weights, serving users whose full request fits the window.

  1. 4k window: 4,096 tokens x 160 KiB = 640 MiB of cache per user.
  2. 32k window: 32,768 tokens x 160 KiB = 5,120 MiB, about 5 GiB of cache per user.
  3. Seats: 18 GiB holds 18 x 1,024 / 640 = about 28 users at 4k, and 18 x 1,024 / 5,120 = about 3 at 32k - the same card, 8x fewer seats.

A 32k window costs 5 GiB of cache per user against 640 MiB at 4k, so the same 18 GiB of card drops from about 28 seats to about 3.

Where this shows up

Related terms