Tool · memory sizing

KV cache calculator

Will it fit on my GPU? Pick a model, its precision and your GPU's memory: see how much is left for the KV cache, and how many requests of your context length fit at once.

How it counts
per token = 2 × layers × KV heads × head dim × bytes
per request = per token × context + fixed state (linear layers)
cache = GPUs × (memory × utilization − reserve) − weights

Your setup

Weights:

What fits

Fits: 2 at a time
Concurrent requests at 32K
2
Cache capacity
101,542tokens
Per token
64.0 KiB
Per request (32K)
2.1 GiB
Fixed state per request, at any length
146.8 MiB

48 of its 64 layers are linear attention: each keeps a fixed state per request instead of a cache that grows with the context.

The settings are in the address, so a link shares this exact setup. Upper bounds: block rounding and the engine's own overhead come on top.