Research scope: Documentary analysis with a hypothetical worked example. Sources reviewed 5 December 2026; this is a planning and interpretation guide, not a report of 2027 observations.
A model can fit on an accelerator and still leave too little memory for the conversations a service wants to keep active. Model weights are only one part of the allocation. During generation, a transformer can retain keys and values from earlier tokens so that it does not have to reconstruct that attention state at every step. Longer retained histories increase this cache; simultaneous sessions multiply it.
That distinction changes a capacity decision. A purchasing sheet based only on parameter count can answer a storage question while missing the memory needed to serve a full queue of long conversations. The relevant planning unit is a defined session, with its retained context and cache representation, inside a complete device budget.
What the sources establish
The PagedAttention paper identifies dynamically growing key/value cache memory and inefficient allocation as constraints on language-model serving. It proposes a memory-management method; its reported performance belongs to its experiments and is not a forecast for the example here. [1]
vLLM's optimization documentation describes cache-memory pressure, preemption and recomputation. Hugging Face's cache documentation distinguishes growing dynamic caches from alternatives, including bounded sliding-window behavior and offloaded or quantized storage. These sources explain why architecture and implementation belong in the calculation. They do not establish how many customers an unspecified server can support. [2][3]
DN's earlier laptop requirements article calculated model parameter storage. This article adds a different quantity: the attention state retained for concurrent inference sessions. It does not reuse a model's published parameter count as a proxy for that state.
A transparent cache formula
For a deliberately simple full-attention configuration, count two arrays, keys and values, across every layer, retained token, key/value head and head dimension. Multiply those elements by the assumed bytes per component. This gives a logical tensor-storage estimate before allocator, padding and implementation overhead.
The synthetic architecture has 32 layers, eight key/value heads, a head dimension of 128 and two bytes per component. Its cache uses 2 × 32 × 8 × 128 × 2 = 131,072 bytes per retained token across the layers.
The head count here is the number of key/value heads. Substituting the number of query heads can overstate storage in an architecture that shares key/value heads across query heads. Conversely, assuming grouped attention in a model that does not use it would understate the requirement. Inspect the actual configuration.
One session retaining 8,192 tokens therefore accounts for 1,073,741,824 bytes, exactly one GiB under these assumptions. A session retaining 32,768 tokens accounts for four GiB. The larger context is four times the retained state, even though the model weights are unchanged.
Worked example: one budget, two session lengths
Assume a fictional device budget of 64 GiB. Allocate 24 GiB to weights, eight to runtime and temporary work, and eight to a planning reserve. The remainder is 24 GiB for this simplified cache ledger. These are invented allowances, not measurements or a configuration recommendation.
| Synthetic session class | Retained tokens per session | Cache per session | Sessions fitting 24 GiB | Total cache |
|---|---|---|---|---|
| Short history | 8,192 | 1 GiB | 24 | 24 GiB |
| Long history | 32,768 | 4 GiB | 6 | 24 GiB |
The mixed cohort can also contain four long sessions and eight short sessions: 4 × 4 + 8 × 1 = 24 GiB. That equality is a memory accounting result. It is not evidence that either cohort meets a response-time target or achieves equal throughput.
The capacity ceiling changes as generation extends the retained sequence. Admission based on the prompt alone can leave insufficient room for the intended output. Record whether the session budget includes the prompt, previously generated tokens and an allowed continuation, and how the serving system reserves or acquires those blocks.
Shared storage changes the marginal question
Two sessions with a reusable identical prefix may not require two fully independent physical copies when the implementation supports sharing. The first allocation and the incremental allocation can then differ. Preserve both quantities: logical tokens represented and physical cache blocks allocated.
Sharing is a documented implementation question, not a deduction from similar-looking prose. Prefix identity, cache keys, access isolation and eviction can matter. A procurement forecast should not assume that every recurring company document produces a physical-memory saving. Equally, counting all shared blocks once per user can exaggerate consumption. [1]
A sliding-window layer can stop retaining older positions beyond its window, while other layers in the same architecture may behave differently. Quantization changes byte widths and can introduce scales or other metadata. Offloading moves some storage to another memory tier and introduces transfer work. Replace the simplified formula with the actual layer and representation inventory when those features apply. [3]
The capacity evidence to collect
A useful bounded trial records the exact model revision, attention configuration, cache type, precision, serving-engine version and device allocation. For each request, preserve prompt length, generated length, admission time, completion time and whether it was preempted. Collect observed peak allocation rather than presenting this worksheet as a measurement.
Separate memory failures from slow completion. A configuration can stay within memory while failing the user's deadline. It can also reclaim or recompute state successfully while increasing latency. vLLM's discussion of preemption is a reason to retain those events in the service record, not to assume that a request disappearing from an active queue completed successfully. [2]
Choose a representative mixture of histories before expanding the trial. A short-prompt demonstration is weak evidence for a product that encourages users to keep lengthy research conversations open. Report the mixture and output limits beside any concurrency figure so another reviewer can reconstruct what the number describes.
How this changes a purchase
For an engineering team, the immediate decision is whether to constrain retained context, alter the cache implementation, reduce active sessions or change the memory budget. Each option can affect latency, usability and operating cost differently. This worksheet identifies the memory pressure; it does not choose among those tradeoffs.
For an institutional buyer, ask the supplier to state the workload behind its concurrency promise. Require the model and context distribution, the output allowance and the timing requirement. A number of simultaneous sessions without those definitions is not yet a service-capacity commitment.
The downloadable rows reproduce the short, long and mixed logical-cache scenarios. No model was loaded and no device was benchmarked. The conclusion is bounded but useful: unchanged weights can coexist with a fourfold increase in per-session cache storage, and memory-limited concurrency must be calculated against the conversations the service actually plans to retain.
Use the worked example
Synthetic full-attention logical KV-cache allocations. The two mixed component rows belong to one cohort; bytes exclude implementation overhead and the capacity result is not a throughput measurement.
- Download the synthetic worked example (CSV)
- Download the source and method record (JSON, version 1.0.0)
To check the arithmetic and CSV/JSON agreement locally, save both files beside the Python verification script and run python3 verify.py q15.json. Python 3 is required; no third-party packages are needed. The check does not verify source claims or provider performance.
These are downloadable research records. They do not connect to an account, execute a trade or provide live market data.
Frequently asked questions
Does a model fitting in memory prove useful concurrency?
No. The device also needs cache, runtime and temporary memory, and a memory ceiling does not establish response-time performance.
Which attention head count belongs in the formula?
Use the actual key/value head count for each relevant layer and architecture, not automatically the query-head count.
Are the 24 short sessions a measured server capacity?
No. They are a synthetic logical-cache ceiling under explicit allowances. No model or accelerator was run.
Continue the research
Optional research services and tools
The free example above can be used without buying a product. For a defined team question, the DN Research Desk offers separately agreed documentary briefs, source registers and worked examples. Scope, fee, delivery date and usage terms are agreed before work begins; an enquiry creates no payment obligation.
Commercial disclosure: DN’s own service and any referral relationship are separate from the research method. No provider paid for a favourable finding in this article.
Sources and review scope
Sources reviewed on 5 December 2026. Review dates are distinct from each source’s observation, publication and effective dates.
- Efficient Memory Management for Large Language Model Serving with PagedAttention. The paper identifies dynamically growing KV-cache memory and fragmentation as constraints on serving; no experimental speedup is imported. Evidence: Research paper abstract.
- vLLM: Optimization and tuning. KV-cache allocation competes with other device memory; insufficient cache can cause preemption and recomputation. Evidence: Official implementation documentation.
- Hugging Face Transformers: KV cache strategies. Dynamic caches grow with sequence length; sliding-window layers, offloading and quantized caches change memory tradeoffs. Evidence: Official implementation documentation.
Corrections and limitations
To flag a possible error, use the DN contact route with this article’s URL, the disputed claim and the supporting source. The analysis is educational, not personalised investment, legal or tax advice. Documentation and synthetic examples do not establish realised returns or individual eligibility.




