🍁 Proud Canadian — hosted and operated in Canada
White paper The digital supply chain Get the white paper
Agent Libre
← All posts
Infrastructure

What a 1M context actually costs a machine

The limit on long context is almost never the model's capability. It's the memory and bandwidth of the server running it.

A model that advertises a 1M-token context really does support it — GLM 5.2, which we serve, does so natively. But “supports” means a single request goes through. It says nothing about how many long sessions a machine can hold at once, and that is where everything is decided.

On every decoding step, the GPU must re-read the KV cache of every active sequence. Model weights are amortized across the whole batch; the KV cache never is — each session pays for its own. So the server's memory bandwidth divides by the number of active sessions multiplied by their context length.

On a dense attention architecture the effect is brutal: going from 64K to 1M of context multiplies the per-session memory cost by sixteen, and divides the number of sessions the machine can host by the same factor. It isn't that each session becomes slow — it's that the machine holds sixteen times fewer of them.

Sparse attention architectures change the arithmetic. GLM 5.2 uses a mechanism that reuses the same indexer across each group of four layers, sharply reducing per-token compute at long context. Cache storage stays roughly linear — you have to keep it all in order to select from it — but the per-step read no longer does.

The lesson for anyone sizing inference infrastructure: don't derive this number by hand. Modern servers compute it at startup and print it. For us, that measurement — not an extrapolation — is what sets what we guarantee to customers.

Previous Re-reading: the line item nobody looks at Next Throughput or tokens: two ways to buy inference
White paper

Your company has two supply chains

The first one you already know. Materials come in, they are transported, stored, transformed, delivered. Every step has a supplier, a lead time, a unit cost. When the margin tightens, you walk down that chain step by step, and you generally know where to look.

The second one moves information instead of materials. A price request comes in and becomes a quote. An order comes in and becomes a production order, an invoice, a confirmed delivery. A site report becomes a change order, or it does not. This chain runs through every one of your departments and it employs a large share of your people.

A question about your consumption?

We measure your actual consumption over one day, free and with no commitment, and tell you whether a fixed-throughput plan works out in your favour — or not.